Skip to content

Commit

Permalink
Make new utilities not completely bypass capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Aug 12, 2024
1 parent 47be513 commit dd61abe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,13 @@ public void on(SourceSet sourceSet) {
final SourceSetInheritanceExtension sourceSetInheritanceExtension = target.getExtensions().getByType(SourceSetInheritanceExtension.class);
sourceSetInheritanceExtension.from(sourceSet);

target.setCompileClasspath(
target.getCompileClasspath().plus(
sourceSet.getOutput()
)
project.getDependencies().add(
target.getCompileClasspathConfigurationName(),
sourceSet.getOutput()
);
target.setRuntimeClasspath(
target.getRuntimeClasspath().plus(
sourceSet.getOutput()
)
project.getDependencies().add(
target.getRuntimeClasspathConfigurationName(),
sourceSet.getOutput()
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,11 @@ public void from(SourceSet sourceSet) {
);
}

target.setCompileClasspath(
target.getCompileClasspath().plus(
sourceSet.getCompileClasspath()
)
project.getConfigurations().getByName(target.getCompileClasspathConfigurationName()).extendsFrom(
project.getConfigurations().getByName(sourceSet.getCompileClasspathConfigurationName())
);
target.setRuntimeClasspath(
target.getRuntimeClasspath().plus(
sourceSet.getRuntimeClasspath()
)
project.getConfigurations().getByName(target.getRuntimeClasspathConfigurationName()).extendsFrom(
project.getConfigurations().getByName(sourceSet.getRuntimeClasspathConfigurationName())
);
}
}

0 comments on commit dd61abe

Please sign in to comment.