Skip to content

Commit 485e485

Browse files
committed
license
1 parent f17d34a commit 485e485

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

build.gradle

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ buildscript {
1111
}
1212
}
1313
plugins {
14-
id "com.jfrog.bintray" version "1.+"
14+
id "com.jfrog.bintray" version "1.7"
1515
id 'net.researchgate.release' version '2.3.4'
1616
id "com.github.hierynomus.license" version "0.14.0"
1717
}
@@ -24,8 +24,8 @@ apply plugin: 'biz.aQute.bnd.builder'
2424
apply plugin: 'com.jfrog.bintray'
2525
apply plugin: 'maven-publish'
2626

27-
def releaseVersion = System.properties.RELEASE_VERSION
28-
version = releaseVersion ? releaseVersion : new SimpleDateFormat('yyyy-MM-dd\'T\'HH-mm-ss').format(new Date())
27+
//def releaseVersion = System.properties.RELEASE_VERSION
28+
//version = releaseVersion ? releaseVersion : new SimpleDateFormat('yyyy-MM-dd\'T\'HH-mm-ss').format(new Date())
2929

3030
// custom tasks for creating source/javadoc jars
3131
task sourcesJar(type: Jar, dependsOn: classes) {
@@ -157,8 +157,8 @@ publishing {
157157
afterReleaseBuild.dependsOn bintrayUpload
158158

159159
bintray {
160-
user = property('user') ?: System.getenv('BINTRAY_USER') ?: project.findProperty('BINTRAY_USER') ?: ''
161-
key = property('key') ?: System.getenv('BINTRAY_KEY') ?: project.findProperty('BINTRAY_KEY') ?: ''
160+
user = System.getenv('BINTRAY_USER') ?: project.findProperty('BINTRAY_USER') ?: ''
161+
key = System.getenv('BINTRAY_KEY') ?: project.findProperty('BINTRAY_KEY') ?: ''
162162
publications = ['maven']
163163
publish = true
164164
pkg {
@@ -170,6 +170,12 @@ bintray {
170170
version {
171171
name = project.version
172172
released = new Date()
173+
mavenCentralSync {
174+
sync = true //[Default: true] Determines whether to sync the version to Maven Central.
175+
user = mavenUser
176+
password = mavenPass
177+
close = '1' //Optional property. By default the staging repository is closed and artifacts are released to Maven Central. You can optionally turn this behaviour off (by puting 0 as value) and release the version manually.
178+
}
173179
}
174180
}
175181
}

0 commit comments

Comments
 (0)