Skip to content

Commit a4d4628

Browse files
authored
Merge pull request #196 from yarinvak/bintray-release
Bintray release
2 parents 29e944c + b6d60c4 commit a4d4628

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

build.gradle

Lines changed: 11 additions & 4 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.7"
14+
id "com.jfrog.bintray" version "1.8.4"
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) {
@@ -143,7 +143,7 @@ publishing {
143143
id 'guy120494'
144144
name 'Guy Smorodinsky'
145145
}
146-
developer{
146+
developer {
147147
id 'osher-sade'
148148
name 'Osher Sade'
149149
}
@@ -170,6 +170,13 @@ 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 = System.getenv('OSS_USER') ?: project.findProperty('OSS_USER') ?: ''
176+
password = System.getenv('OSS_PASS') ?: project.findProperty('OSS_PASS') ?: ''
177+
close = '1'
178+
//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.
179+
}
173180
}
174181
}
175182
}

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)