File tree Expand file tree Collapse file tree 3 files changed +112
-6
lines changed
errorhandler-matchers/retrofit-rx-matcher Expand file tree Collapse file tree 3 files changed +112
-6
lines changed Original file line number Diff line number Diff line change 11group ' com.workable'
2- version ' 1.0.0 '
2+ version ' 1.0.1-alpha3 '
33
44apply plugin : ' java'
5+ apply plugin : ' maven-publish'
56
67sourceCompatibility = 1.7
78
@@ -12,3 +13,28 @@ repositories {
1213dependencies {
1314 testCompile group : ' junit' , name : ' junit' , version : ' 4.11'
1415}
16+
17+ publishing {
18+ publications {
19+ mavenJava(MavenPublication ) {
20+ groupId ' com.workable'
21+ artifactId ' parent'
22+ version ' 1.0.1-alpha3'
23+ }
24+ }
25+
26+ repositories {
27+ maven {
28+ url " ./dist"
29+ }
30+ }
31+ }
32+
33+
34+ Properties localProps = new Properties ()
35+
36+ try {
37+ localProps. load(project. file(' local.properties' ). newDataInputStream())
38+ } catch (Exception ex) {
39+ logger. warn(' local.properties file is missing' )
40+ }
Original file line number Diff line number Diff line change 1+ buildscript {
2+ repositories {
3+ jcenter()
4+ }
5+ }
6+
7+ plugins {
8+ id " com.jfrog.bintray" version " 1.7"
9+ }
10+
111group ' com.workable'
2- version ' 1.0.0 '
12+ version ' 1.0.1-alpha3 '
313
414apply plugin : ' java'
15+ apply plugin : ' maven-publish'
516
617sourceCompatibility = 1.7
718
@@ -16,3 +27,72 @@ dependencies {
1627 compile project(' :errorhandler' )
1728 compile ' com.squareup.retrofit2:adapter-rxjava:2.1.0'
1829}
30+
31+ task sourceJar (type : Jar ) {
32+ from sourceSets. main. allJava
33+ }
34+
35+ task javadocJar (type : Jar ) {
36+ classifier = ' javadoc'
37+ from javadoc
38+ }
39+
40+ publishing {
41+ publications {
42+ mavenJava(MavenPublication ) {
43+ groupId ' com.workable'
44+ artifactId ' retrofit-rx-matcher'
45+ version ' 1.0.1-alpha3'
46+
47+ from components. java
48+
49+ artifact sourceJar {
50+ classifier " sources"
51+ }
52+
53+ artifact javadocJar {
54+ classifier " javadoc"
55+ }
56+ }
57+ }
58+
59+ repositories {
60+ maven {
61+ url " ./dist"
62+ }
63+ }
64+ }
65+
66+
67+ Properties localProps = new Properties ()
68+
69+ try {
70+ localProps. load(project. file(' ../../local.properties' ). newDataInputStream())
71+ } catch (Exception ex) {
72+ logger. warn(' local.properties file is missing' )
73+ }
74+
75+ bintray {
76+ user = localProps. getProperty(' bintrayUser' )
77+ key = localProps. getProperty(' bintrayApiKey' )
78+ publications = [' mavenJava' ]
79+ pkg {
80+ repo = ' maven'
81+ name = ' ErrorHandler'
82+ desc = ' Error handling library for Android and Java'
83+ userOrg = " workable"
84+ licenses = [' MIT' ]
85+ vcsUrl = ' https://github.com/Workable/java-error-handler'
86+ labels = [' java' , ' error handler' , ' errors' , ' android' ]
87+ publicDownloadNumbers = true
88+ version {
89+ name = ' 1.0.1-alpha3'
90+
91+ desc = ' Error handling library for Android and Java'
92+ vcsTag = ' v1.0.0'
93+ gpg {
94+ sign = true // Determines whether to GPG sign the files. The default is false
95+ }
96+ }
97+ }
98+ }
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ plugins {
99}
1010
1111group ' com.workable'
12- version ' 1.0.1'
12+ version ' 1.0.1-alpha3 '
1313
1414apply plugin : ' java'
1515apply plugin : ' maven-publish'
@@ -46,7 +46,7 @@ publishing {
4646 mavenJava(MavenPublication ) {
4747 groupId ' com.workable'
4848 artifactId ' error-handler'
49- version ' 1.0.1'
49+ version ' 1.0.1-alpha3 '
5050
5151 from components. java
5252
@@ -90,10 +90,10 @@ bintray {
9090 labels = [' java' , ' error handler' , ' errors' , ' android' ]
9191 publicDownloadNumbers = true
9292 version {
93- name = ' 1.0.1'
93+ name = ' 1.0.1-alpha3 '
9494
9595 desc = ' Error handling library for Android and Java'
96- vcsTag = ' v1.0.1 '
96+ vcsTag = ' v1.0.0 '
9797 gpg {
9898 sign = true // Determines whether to GPG sign the files. The default is false
9999 }
You can’t perform that action at this time.
0 commit comments