Skip to content

Commit b4c0c76

Browse files
committed
Avoid transitive releaseDep, remove pmd from pico
1 parent e2dfecc commit b4c0c76

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

build.gradle.kts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ idea {
3232
configure(subprojects) {
3333
apply(plugin = "idea")
3434
apply(plugin = "java")
35-
apply(plugin = "pmd")
3635

3736
idea {
3837
module {
@@ -41,6 +40,10 @@ configure(subprojects) {
4140
}
4241
}
4342

43+
configure(subprojects - project(":saros.picocontainer")) {
44+
apply(plugin = "pmd")
45+
}
46+
4447
/*
4548
* Workaround: Applying the shadow plugin in picocontainer
4649
* leads to an error that says that "Project.afterEvaluate" cannot
@@ -69,10 +72,11 @@ configure(projectsToConfigure) {
6972
}
7073

7174
configurations {
72-
val testing by creating // used to reference the testJar
73-
val testConfig by creating // contains test dependencies that are used by all java subprojects
74-
val releaseDep by creating // contains all dependencies which has to be included into the release jar/zip
75-
releaseDep.isTransitive = true // avoid that the whole dependency tree is released
75+
create("testing") // used to reference the testJar
76+
create("testConfig") // contains test dependencies that are used by all java subprojects
77+
create("releaseDep") { // contains all dependencies which has to be included into the release jar/zip
78+
isTransitive = false // avoid that the whole dependency tree is released
79+
}
7680
}
7781

7882
configure<PmdExtension> {

0 commit comments

Comments
 (0)