Skip to content

Commit 052bf34

Browse files
authored
Workaround for publication not working (#6591)
1 parent a7c7e7b commit 052bf34

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

libraries/apollo-gradle-plugin-tasks/build.gradle.kts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler
2+
13
plugins {
24
id("org.jetbrains.kotlin.jvm")
35
id("com.gradleup.gratatouille.tasks")
@@ -20,6 +22,20 @@ dependencies {
2022

2123
gratatouille {
2224
codeGeneration {
25+
/**
26+
* Workaround for https://github.com/GradleUp/gratatouille/pull/52
27+
*/
28+
configurations.configureEach {
29+
if (name == "gratatouilleApiElements") {
30+
artifacts.configureEach {
31+
this as ConfigurablePublishArtifact
32+
if (extension.isNullOrEmpty()) {
33+
extension = "zip"
34+
}
35+
}
36+
}
37+
}
2338
classLoaderIsolation()
2439
}
25-
}
40+
}
41+

0 commit comments

Comments
 (0)