Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Commit 819c1a4

Browse files
committed
change scope of dependend libs to compile
1 parent d23fef6 commit 819c1a4

1 file changed

Lines changed: 30 additions & 30 deletions

File tree

build.gradle

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -128,39 +128,39 @@ publishing {
128128
artifact sourcesJar
129129
artifact javadocJar
130130
}
131-
}
132-
}
133131

134-
//we have to change scope from runtime to compile. especially for Gson-lib.
135-
publishing.publications.all {
136-
pom.withXml {
137-
asNode().dependencies.'*'.findAll() {
138-
it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep ->
139-
dep.name == it.artifactId.text()
132+
all {
133+
//we have to change scope from runtime to compile. especially for Gson-lib.
134+
pom.withXml {
135+
asNode().dependencies.'*'.findAll() {
136+
it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep ->
137+
dep.name == it.artifactId.text()
138+
}
139+
}.each { it.scope*.value = 'compile' }
140140
}
141-
}.each { it.scope*.value = 'compile'}
141+
}
142142
}
143-
}
144143

145-
bintray {
146-
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
147-
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
148-
149-
publications = ['MyPublication']
150-
//configurations = ['archives']
151-
152-
dryRun = false //Whether to run this as dry-run, without deploying
153-
publish = true //If version should be auto published after an upload
154-
155-
pkg {
156-
repo = 'maven'
157-
userOrg = 'sybit-education'
158-
name = 'airtable.java'
159-
licenses = ['MIT License']
160-
vcsUrl = 'https://github.com/Sybit-Education/airtable.java.git'
161-
version {
162-
name = getVersionName()
163-
released = new Date()
144+
bintray {
145+
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
146+
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
147+
148+
publications = ['MyPublication']
149+
//configurations = ['archives']
150+
151+
dryRun = false //Whether to run this as dry-run, without deploying
152+
publish = true //If version should be auto published after an upload
153+
154+
pkg {
155+
repo = 'maven'
156+
userOrg = 'sybit-education'
157+
name = 'airtable.java'
158+
licenses = ['MIT License']
159+
vcsUrl = 'https://github.com/Sybit-Education/airtable.java.git'
160+
version {
161+
name = getVersionName()
162+
released = new Date()
163+
}
164164
}
165165
}
166-
}
166+
}

0 commit comments

Comments
 (0)