Skip to content

Commit c6c1133

Browse files
committed
Minor publishing changes
1 parent e4370d1 commit c6c1133

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

build.gradle.kts

+19-4
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ publishing {
9494
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
9595
}
9696
}
97+
scm {
98+
url.set("https://github.com/ReactiveX/RxKotlin.git")
99+
}
97100
}
98101

99102
publications {
@@ -102,8 +105,6 @@ publishing {
102105
version = "${project.version}-SNAPSHOT"
103106

104107
from(components["java"])
105-
artifact(sourcesJar)
106-
artifact(javadocJar)
107108

108109
pom.initPom()
109110
}
@@ -121,8 +122,8 @@ publishing {
121122
}
122123

123124
bintray {
124-
user = project.findProperty("bintray.user") as? String
125-
key = project.findProperty("bintray.key") as? String
125+
user = project.findProperty("bintrayUser") as? String
126+
key = project.findProperty("bintrayKey") as? String
126127

127128
val isRelease = project.findProperty("release") == "true"
128129

@@ -138,11 +139,25 @@ bintray {
138139
repo = "RxJava"
139140
name = "RxKotlin"
140141
setLicenses("Apache-2.0")
142+
setLabels("reactivex", "rxjava", "rxkotlin")
143+
websiteUrl = "https://github.com/ReactiveX/RxKotlin"
144+
issueTrackerUrl = "https://github.com/ReactiveX/RxKotlin/issues"
141145
vcsUrl = "https://github.com/ReactiveX/RxKotlin.git"
142146

143147
with(version) {
144148
name = project.version.toString()
145149
vcsTag = project.version.toString()
150+
151+
with(gpg){
152+
sign = true
153+
}
154+
155+
with(mavenCentralSync) {
156+
sync = true
157+
user = project.findProperty("sonatypeUsername") as? String
158+
password = project.findProperty("sonatypePassword") as? String
159+
close = "1"
160+
}
146161
}
147162
}
148163
}

gradle/buildViaTravis.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
66
./gradlew build
77
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
88
echo -e 'Build Branch with Snapshot => Branch ['$TRAVIS_BRANCH']'
9-
./gradlew -Prelease.travisci=true -Pbintray.user="${bintrayUser}" -Pbintray.key="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" \
10-
build bintrayUpload --stacktrace
9+
./gradlew build
10+
echo -e 'To publish snapshot version to your local maven repo, execute: ./gradlew clean build publishSnapshotPublicationToMavenLocal'
1111
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ]; then
1212
echo -e 'Build Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
13-
./gradlew -Prelease.travisci=true -Pbintray.user="${bintrayUser}" -Pbintray.key="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" \
13+
./gradlew -Prelease.travisci=true -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" \
1414
-Prelease=true build bintrayUpload --stacktrace
1515
else
1616
echo -e 'WARN: Should not be here => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG'] Pull Request ['$TRAVIS_PULL_REQUEST']'

0 commit comments

Comments
 (0)