Skip to content

Commit

Permalink
change scope of dependend libs to compile
Browse files Browse the repository at this point in the history
  • Loading branch information
stritti committed Apr 13, 2017
1 parent d23fef6 commit 819c1a4
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -128,39 +128,39 @@ publishing {
artifact sourcesJar
artifact javadocJar
}
}
}

//we have to change scope from runtime to compile. especially for Gson-lib.
publishing.publications.all {
pom.withXml {
asNode().dependencies.'*'.findAll() {
it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep ->
dep.name == it.artifactId.text()
all {
//we have to change scope from runtime to compile. especially for Gson-lib.
pom.withXml {
asNode().dependencies.'*'.findAll() {
it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep ->
dep.name == it.artifactId.text()
}
}.each { it.scope*.value = 'compile' }
}
}.each { it.scope*.value = 'compile'}
}
}
}

bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')

publications = ['MyPublication']
//configurations = ['archives']

dryRun = false //Whether to run this as dry-run, without deploying
publish = true //If version should be auto published after an upload

pkg {
repo = 'maven'
userOrg = 'sybit-education'
name = 'airtable.java'
licenses = ['MIT License']
vcsUrl = 'https://github.com/Sybit-Education/airtable.java.git'
version {
name = getVersionName()
released = new Date()
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')

publications = ['MyPublication']
//configurations = ['archives']

dryRun = false //Whether to run this as dry-run, without deploying
publish = true //If version should be auto published after an upload

pkg {
repo = 'maven'
userOrg = 'sybit-education'
name = 'airtable.java'
licenses = ['MIT License']
vcsUrl = 'https://github.com/Sybit-Education/airtable.java.git'
version {
name = getVersionName()
released = new Date()
}
}
}
}
}

0 comments on commit 819c1a4

Please sign in to comment.