Skip to content

Commit

Permalink
Fix POM
Browse files Browse the repository at this point in the history
  • Loading branch information
pron committed Dec 23, 2014
1 parent b87cacb commit 1963f25
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,6 @@ subprojects {
// User and Password are taken from ~/.gradle/gradle.properties
authentication(userName: project.sonatypeUsername, password: project.sonatypePassword)
}
pom.whenConfigured {
it.dependencies.removeAll { dep ->
dep.artifactId.startsWith('jsr166e') ||
dep.artifactId.startsWith('high-scale-lib') ||
dep.artifactId.startsWith('HdrHistogram') ||
(dep.groupId == 'co.paralleluniverse' && dep.artifactId.startsWith('quasar-core'))
}
}
pom.project {
name project.name
packaging 'jar'
Expand Down Expand Up @@ -371,6 +363,19 @@ project (':quasar-core') {
signArchives.dependsOn shadowJar
uploadArchives.dependsOn shadowJar

def installer = install.repositories.mavenInstaller
def deployer = uploadArchives.repositories.mavenDeployer

[installer, deployer]*.pom*.whenConfigured {
it.dependencies.removeAll { dep ->
dep.artifactId.startsWith('jsr166e') ||
dep.artifactId.startsWith('high-scale-lib') ||
dep.artifactId.startsWith('HdrHistogram') ||
dep.groupId == 'org.ow2.asm' ||
(dep.groupId == 'co.paralleluniverse' && dep.artifactId.startsWith('quasar-core'))
}
}

if (System.properties['java.version'].startsWith('1.8') ) {
artifacts {
archives jar
Expand Down

0 comments on commit 1963f25

Please sign in to comment.