1- import java.text.SimpleDateFormat
21import aQute.bnd.gradle.Bundle
32
43buildscript {
@@ -11,7 +10,7 @@ buildscript {
1110 }
1211}
1312plugins {
14- id " com.jfrog.bintray" version " 1.7 "
13+ id " com.jfrog.bintray" version " 1.8.4 "
1514 id ' net.researchgate.release' version ' 2.3.4'
1615 id " com.github.hierynomus.license" version " 0.14.0"
1716}
@@ -24,8 +23,8 @@ apply plugin: 'biz.aQute.bnd.builder'
2423apply plugin : ' com.jfrog.bintray'
2524apply plugin : ' maven-publish'
2625
27- def releaseVersion = System . properties. RELEASE_VERSION
28- version = releaseVersion ? releaseVersion : new SimpleDateFormat (' yyyy-MM-dd\' T\' HH-mm-ss' ). format(new Date ())
26+ // def releaseVersion = System.properties.RELEASE_VERSION
27+ // version = releaseVersion ? releaseVersion : new SimpleDateFormat('yyyy-MM-dd\'T\'HH-mm-ss').format(new Date())
2928
3029// custom tasks for creating source/javadoc jars
3130task sourcesJar (type : Jar , dependsOn : classes) {
@@ -143,7 +142,7 @@ publishing {
143142 id ' guy120494'
144143 name ' Guy Smorodinsky'
145144 }
146- developer{
145+ developer {
147146 id ' osher-sade'
148147 name ' Osher Sade'
149148 }
@@ -170,6 +169,13 @@ bintray {
170169 version {
171170 name = project. version
172171 released = new Date ()
172+ mavenCentralSync {
173+ sync = true // [Default: true] Determines whether to sync the version to Maven Central.
174+ user = System . getenv(' OSS_USER' ) ?: project. findProperty(' OSS_USER' ) ?: ' '
175+ password = System . getenv(' OSS_PASS' ) ?: project. findProperty(' OSS_PASS' ) ?: ' '
176+ close = ' 1'
177+ // 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}
@@ -178,3 +184,8 @@ task bundle(type: Bundle) {
178184 from sourceSets. main. output
179185 bndfile = file(' bundle.bnd' )
180186}
187+
188+ task wrapper (type : Wrapper ) {
189+ gradleVersion = ' 2.0'
190+ }
191+
0 commit comments