Skip to content

Commit

Permalink
Make jdk download repo not consumable (#60875)
Browse files Browse the repository at this point in the history
- fixes #60860
  • Loading branch information
breskeby authored Aug 10, 2020
1 parent 64bb082 commit e03993d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public void apply(Project project) {

NamedDomainObjectContainer<Jdk> jdksContainer = project.container(Jdk.class, name -> {
Configuration configuration = project.getConfigurations().create("jdk_" + name);
configuration.setCanBeConsumed(false);
configuration.getAttributes().attribute(ArtifactAttributes.ARTIFACT_FORMAT, ArtifactTypeDefinition.DIRECTORY_TYPE);
Jdk jdk = new Jdk(name, configuration, project.getObjects());
configuration.defaultDependencies(dependencies -> {
Expand Down

0 comments on commit e03993d

Please sign in to comment.