From f2907e643de459568d90d41c18722f4042e87a4e Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Mon, 23 Jan 2017 09:25:55 +0100 Subject: [PATCH] Making clear why I had to write a custom pom.withXml :( --- SpringJava/Gradle/build-BOM-1.0-SNAPSHOT.gradle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SpringJava/Gradle/build-BOM-1.0-SNAPSHOT.gradle b/SpringJava/Gradle/build-BOM-1.0-SNAPSHOT.gradle index 30627b7..f4391ee 100644 --- a/SpringJava/Gradle/build-BOM-1.0-SNAPSHOT.gradle +++ b/SpringJava/Gradle/build-BOM-1.0-SNAPSHOT.gradle @@ -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' } } } -- 2.1.4