Skip to content

Commit 4fe0523

Browse files
build: add gradle deploy config
1 parent 9e3dcd2 commit 4fe0523

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

build.gradle

+56
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
plugins {
2+
id "com.jfrog.bintray" version "1.7"
3+
}
4+
15
apply plugin: 'java'
26
apply plugin: 'maven'
7+
apply plugin: 'maven-publish'
38

49
group 'com.transloadit.sdk'
10+
version = '0.0.1'
511

612
allprojects {
713
repositories {
@@ -10,6 +16,7 @@ allprojects {
1016
}
1117
}
1218

19+
1320
dependencies {
1421
compile 'org.jetbrains:annotations:13.0'
1522
compile 'io.tus.java.client:tus-java-client:0.3.2-pre1'
@@ -19,4 +26,53 @@ dependencies {
1926
compile 'commons-codec:commons-codec:1.9'
2027
testCompile 'junit:junit:4.12'
2128
testCompile 'org.mock-server:mockserver-netty:3.9.17'
29+
}
30+
31+
task sourcesJar(type: Jar, dependsOn: classes) {
32+
classifier = 'sources'
33+
from sourceSets.main.allSource
34+
}
35+
36+
task javadocJar(type: Jar, dependsOn: javadoc) {
37+
classifier = 'javadoc'
38+
from javadoc.destinationDir
39+
}
40+
41+
artifacts {
42+
archives sourcesJar, javadocJar
43+
}
44+
45+
publishing {
46+
publications {
47+
mavenJava(MavenPublication) {
48+
from components.java
49+
groupId 'com.transloadit.sdk'
50+
artifactId 'transloadit'
51+
version '0.0.1'
52+
artifact sourcesJar
53+
artifact javadocJar
54+
}
55+
}
56+
}
57+
58+
bintray {
59+
user = System.getenv('BINTRAY_USER')
60+
key = System.getenv('BINTRAY_KEY')
61+
publications = ['mavenJava']
62+
dryRun = false
63+
pkg {
64+
repo = 'maven'
65+
name = 'transloadit'
66+
userOrg = 'transloadit'
67+
licenses = ['MIT']
68+
vcsUrl = 'https://github.com/transloadit/java-sdk.git'
69+
websiteUrl = 'https://github.com/transloadit/java-sdk'
70+
issueTrackerUrl = 'https://github.com/transloadit/java-sdk/issues'
71+
publicDownloadNumbers = true
72+
version {
73+
name = '0.0.1'
74+
desc = 'Java Client for Transloadit(https://transloadit.com) API services.'
75+
vcsTag = '0.0.1'
76+
}
77+
}
2278
}

0 commit comments

Comments
 (0)