Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 21f53d7

Browse files
committed
Added bintray support
1 parent 8f27bc1 commit 21f53d7

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

build.gradle

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
apply plugin: 'java'
2-
apply plugin: 'eclipse'
3-
apply plugin: 'maven-publish'
1+
plugins {
2+
id "java"
3+
id "maven-publish"
4+
id "eclipse"
5+
id "idea"
6+
id "com.jfrog.bintray" version "1.5"
7+
}
48

59
sourceCompatibility = "1.7"
610
targetCompatibility = "1.7"
@@ -36,3 +40,20 @@ publishing {
3640
}
3741
}
3842
}
43+
44+
if (project.hasProperty("myBintrayUser")) {
45+
bintray {
46+
user = myBintrayUser
47+
key = myBintrayKey
48+
publications = ['mainJava']
49+
pkg {
50+
repo = 'maven'
51+
name = project.name
52+
licenses = ['Apache-2.0']
53+
vcsUrl = 'https://github.com/rjrudin/' + project.name + '.git'
54+
version {
55+
name = version
56+
}
57+
}
58+
}
59+
}

0 commit comments

Comments
 (0)