Skip to content

Commit

Permalink
Merge pull request #944 from mattrjacobs/fix-generated-pom
Browse files Browse the repository at this point in the history
Fix generated pom
  • Loading branch information
mattrjacobs committed Oct 15, 2015
2 parents 5ea48b5 + 55ce102 commit 8ba858a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
18 changes: 16 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
}

plugins {
id 'nebula.netflixoss' version '2.2.5'
id 'nebula.netflixoss' version '3.1.2'
id 'me.champeau.gradle.jmh' version '0.2.0'
}

Expand Down Expand Up @@ -39,11 +39,25 @@ subprojects {
}
}


idea {
module {
// include 'provided' dependencies on the classpath
scopes.COMPILE.plus += [configurations.provided]
}
}

publishing {
publications {
nebula(MavenPublication) {
pom.withXml {
configurations.compile.resolvedConfiguration.firstLevelModuleDependencies.each { dep ->
asNode().dependencies[0].dependency.find {
it.artifactId[0].text() == dep.moduleName &&
it.groupId[0].text() == dep.moduleGroup
}.scope[0].value = 'compile'
}
}
}
}
}
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.7-bin.zip

0 comments on commit 8ba858a

Please sign in to comment.