Skip to content

Commit dc02fb9

Browse files
committed
Test compatGradleArtifactTransform
This reverts commit 169bd19.
1 parent 169bd19 commit dc02fb9

File tree

15 files changed

+70
-379
lines changed

15 files changed

+70
-379
lines changed

.github/workflows/ci.yml

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
java-version: ${{ matrix.java }}
2424
- uses: gradle/actions/setup-gradle@v4
2525
- run: ./gradlew build
26-
- run: cd reproduction-gradle-shadow-artifact-transform && ./gradlew build
2726

2827
publish-snapshot:
2928
needs: build

build-logic/src/main/kotlin/shadow.convention.publish.gradle.kts

+23
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,29 @@ tasks.publishPlugins {
4141
notCompatibleWithConfigurationCache("https://github.com/gradle/gradle/issues/21283")
4242
}
4343

44+
configurations {
45+
listOf(
46+
apiElements,
47+
runtimeElements,
48+
named("javadocElements"),
49+
named("sourcesElements"),
50+
).forEach {
51+
it.configure {
52+
outgoing {
53+
// Main/current capability
54+
capability("com.gradleup.shadow:shadow-gradle-plugin:$version")
55+
56+
// Historical capabilities
57+
capability("io.github.goooler.shadow:shadow-gradle-plugin:$version")
58+
capability("com.github.johnrengelman:shadow:$version")
59+
capability("gradle.plugin.com.github.jengelman.gradle.plugins:shadow:$version")
60+
capability("gradle.plugin.com.github.johnrengelman:shadow:$version")
61+
capability("com.github.jengelman.gradle.plugins:shadow:$version")
62+
}
63+
}
64+
}
65+
}
66+
4467
publishing.publications.withType<MavenPublication>().configureEach {
4568
// We don't care about capabilities being unmappable to Maven
4669
suppressPomMetadataWarningsFor("apiElements")

reproduction-gradle-shadow-artifact-transform/app/src/main/java/com/company/Main.java

-8
This file was deleted.
Binary file not shown.

reproduction-gradle-shadow-artifact-transform/gradle/wrapper/gradle-wrapper.properties

-7
This file was deleted.

reproduction-gradle-shadow-artifact-transform/gradlew

-251
This file was deleted.

0 commit comments

Comments
 (0)