Browse Source

Disable artifactoryPublish for projects without artifacts

Rob Winch 12 years ago
parent
commit
102da87080
1 changed files with 4 additions and 0 deletions
  1. 4 0
      build.gradle

+ 4 - 0
build.gradle

@@ -20,6 +20,10 @@ ext.itestProjects = subprojects.findAll { project -> project.name.startsWith('it
 ext.coreModuleProjects = javaProjects - sampleProjects - itestProjects
 ext.aspectjProjects = [project(':spring-security-aspects'), project(':spring-security-samples-aspectj')]
 
+configure(subprojects - coreModuleProjects) {
+    tasks.findByPath("artifactoryPublish")?.enabled = false
+}
+
 configure(javaProjects) {
     apply from: "$rootDir/gradle/javaprojects.gradle"
 }