Skip to content

Commit

Permalink
Make jarJar configuration not consumable (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Apr 27, 2024
1 parent 54ff0cb commit 993b9c3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ public void createTaskAndConfiguration() {
configuration.getAllDependencies().configureEach(dep ->
this.enable()
);
// jarJar configurations should be resolvable, but ought not to be exposed to consumers;
// as it has attributes, it could conflict with normal exposed configurations
configuration.setCanBeResolved(true);
configuration.setCanBeConsumed(false);

JavaPluginExtension javaPlugin = project.getExtensions().getByType(JavaPluginExtension.class);

Expand Down

0 comments on commit 993b9c3

Please sign in to comment.