Skip to content

Commit

Permalink
Fix gradle deprecation warning
Browse files Browse the repository at this point in the history
Closes gh-55
  • Loading branch information
sjohnr committed Nov 6, 2024
1 parent 908f52e commit c70e74c
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,12 @@ private Configuration addConfiguration(Project project, String name) {

JavaPluginExtension java = project.getExtensions().getByType(JavaPluginExtension.class);
java.getSourceSets().all((sourceSet) -> {
sourceSet.setCompileClasspath(sourceSet.getCompileClasspath().plus(configuration));
sourceSet.setRuntimeClasspath(sourceSet.getRuntimeClasspath().plus(configuration));
project.getConfigurations()
.getByName(sourceSet.getCompileClasspathConfigurationName())
.extendsFrom(configuration);
project.getConfigurations()
.getByName(sourceSet.getRuntimeClasspathConfigurationName())
.extendsFrom(configuration);
});

return configuration;
Expand Down

0 comments on commit c70e74c

Please sign in to comment.