Skip to content

Commit 2e8a616

Browse files
committed
Disable artifactoryPublish for projects without artifacts
1 parent 22e333b commit 2e8a616

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ ext.itestProjects = subprojects.findAll { project -> project.name.startsWith('it
2020
ext.coreModuleProjects = javaProjects - sampleProjects - itestProjects
2121
ext.aspectjProjects = [project(':spring-security-aspects'), project(':spring-security-samples-aspectj')]
2222

23+
configure(subprojects - coreModuleProjects) {
24+
tasks.findByPath("artifactoryPublish")?.enabled = false
25+
}
26+
2327
configure(javaProjects) {
2428
apply from: "$rootDir/gradle/javaprojects.gradle"
2529
}

0 commit comments

Comments
 (0)