Skip to content

Commit 26968b6

Browse files
committed
2 parents b05ed6c + 8268aec commit 26968b6

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

build.gradle

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import java.text.SimpleDateFormat
21
import aQute.bnd.gradle.Bundle
32

43
buildscript {
@@ -11,7 +10,7 @@ buildscript {
1110
}
1211
}
1312
plugins {
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'
2423
apply plugin: 'com.jfrog.bintray'
2524
apply 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
3130
task 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+

gradle.properties

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@ org.gradle.daemon=true
55
org.gradle.parallel=true
66
org.gradle.jvmargs=-Dfile.encoding=UTF-8
77

8-
bintray.user=DUMMY_USER
9-
bintray.key=DUMMY_KEY
10-
version = 6.1
8+
version = 6.2

secret2.gpg

Whitespace-only changes.

0 commit comments

Comments
 (0)