Skip to content

Commit

Permalink
Prototype: Configuring publish before shadowJar uses wrong configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Greg Harris <[email protected]>
  • Loading branch information
gharris1727 authored and Goooler committed Sep 13, 2024
1 parent 3e9b1cd commit 9c944b5
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,6 @@ class PublishingSpec extends PluginSpecification {
shadow 'shadow:b:1.0'
}
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
archiveClassifier = 'my-classifier'
archiveExtension = 'my-ext'
archiveBaseName = 'maven-all'
}
publishing {
publications {
shadow(MavenPublication) { publication ->
Expand All @@ -116,6 +110,12 @@ class PublishingSpec extends PluginSpecification {
}
}
}
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
archiveClassifier = 'my-classifier'
archiveExtension = 'my-ext'
archiveBaseName = 'maven-all'
}
""".stripIndent()

when:
Expand Down

0 comments on commit 9c944b5

Please sign in to comment.