Making clear why I had to write a custom pom.withXml :(
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Mon, 23 Jan 2017 08:25:55 +0000 (09:25 +0100)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Mon, 23 Jan 2017 08:47:19 +0000 (09:47 +0100)
SpringJava/Gradle/build-BOM-1.0-SNAPSHOT.gradle

index 30627b7..f4391ee 100644 (file)
@@ -101,6 +101,7 @@ subprojects {
                     classifier 'javadoc'
                 }
 
+                // By default, Maven scope will be runtime. We want scope compile :/
                 pom.withXml {
                     asNode().dependencies.'*'.findAll() {
                         it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep ->
@@ -120,9 +121,9 @@ subprojects {
                 }
 
                 if(project.version.endsWith('-SNAPSHOT')) {
-                    url 'http://artifactory:8888/artifactory/libs-snapshot-local'
+                    url 'http://artifactory/artifactory/libs-snapshot-local'
                 } else {
-                    url 'http://artifactory:8888/artifactory/libs-release-local'
+                    url 'http://artifactory/artifactory/libs-release-local'
                 }
             }
         }