Skip to content

Commit

Permalink
fix: publishing shadow artifact closes #269
Browse files Browse the repository at this point in the history
Signed-off-by: Joke de Buhr <joke@xckk.de>
  • Loading branch information
joke committed Nov 7, 2022
1 parent a5cb382 commit 25eb3b1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spock-mockable/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,14 @@ test {
]
}

jar {
classifier 'plain'
}

shadowJar {
relocate 'dagger', 'io.github.joke.spockmockable.shadow.dagger'
relocate 'javax', 'io.github.joke.spockmockable.shadow.javax'
classifier null
minimize()
}

Expand All @@ -71,6 +76,8 @@ publishing {
publications {
spockMockable(MavenPublication) { publication ->
project.shadow.component publication
artifact sourcesJar
artifact javadocJar
}
}
}

0 comments on commit 25eb3b1

Please sign in to comment.