Skip to content

Commit

Permalink
Add shadow plugin
Browse files Browse the repository at this point in the history
Closes gh-7
  • Loading branch information
sjohnr committed Jan 24, 2024
1 parent 6b70ffd commit dcfb376
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
15 changes: 13 additions & 2 deletions core/spring-security-release-tools-core.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
plugins {
id "io.spring.convention.spring-module"
id "com.github.johnrengelman.shadow" version "8.1.1"
}

configurations.testImplementation {
extendsFrom configurations.compileOnly
}

dependencies {
management platform(project(":dependencies"))
implementation project(":github-api")
implementation project(":sagan-api")
compileOnly project(":github-api")
compileOnly project(":sagan-api")

testImplementation "org.junit.jupiter:junit-jupiter-api"
testImplementation "org.junit.jupiter:junit-jupiter-params"
testImplementation "org.junit.jupiter:junit-jupiter-engine"
testImplementation "org.assertj:assertj-core"
testImplementation "org.mockito:mockito-core"
}

shadowJar {
archiveClassifier = ""
configurations = [project.configurations.compileClasspath]
relocate "com.fasterxml", "shaded.com.fasterxml"
}
8 changes: 6 additions & 2 deletions release-plugin/spring-security-release-plugin.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ artifactory {
}
}

configurations.testImplementation {
extendsFrom configurations.compileOnly
}

dependencies {
management platform(project(":dependencies"))
implementation project(":github-api")
implementation project(":sagan-api")
compileOnly project(":github-api")
compileOnly project(":sagan-api")
implementation project(":spring-security-release-tools-core")

testImplementation "org.junit.jupiter:junit-jupiter-api"
Expand Down

0 comments on commit dcfb376

Please sign in to comment.