File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -179,27 +179,27 @@ subprojects {
179
179
}
180
180
181
181
artifactory {
182
- contextUrl = ' https ://oss.jfrog.org'
182
+ contextUrl = ' http ://oss.jfrog.org'
183
183
publish {
184
184
repository {
185
- repoKey = ' oss-snapshot-local'
186
-
187
- username = System . env. BINTRAY_USER ?: System . getProperty(' BINTRAY_USER' )
188
- password = System . env. BINTRAY_PASS ?: System . getProperty(' BINTRAY_PASS' )
189
-
190
- maven = true
185
+ if (project. version. endsWith(" -SNAPSHOT" )) {
186
+ repoKey = ' oss-snapshot-local'
187
+ } else {
188
+ repoKey = ' oss-release-local'
189
+ }
190
+ username = System . env. BINTRAY_USER ?: project. findProperty(' BINTRAY_USER' ) ?: ' '
191
+ password = System . env. BINTRAY_PASS ?: project. findProperty(' BINTRAY_PASS' ) ?: ' '
191
192
}
192
193
defaults {
193
- publications ' maven '
194
+ publications( ' mainProjectPublication ' )
194
195
publishArtifacts = true
195
196
publishPom = true
196
197
}
197
198
}
198
199
resolve {
199
- repository {
200
- repoKey = ' jcenter'
201
- }
200
+ repoKey = ' oss-snapshot-local'
202
201
}
202
+ clientConfig. info. setBuildNumber(System . getProperty(' build.number' ))
203
203
}
204
204
}
205
205
}
You can’t perform that action at this time.
0 commit comments