Skip to content

Commit e03993d

Browse files
authored
Make jdk download repo not consumable (#60875)
- fixes #60860
1 parent 64bb082 commit e03993d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

buildSrc/src/main/java/org/elasticsearch/gradle/JdkDownloadPlugin.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public void apply(Project project) {
5555

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

0 commit comments

Comments
 (0)