Skip to content

Commit 554af27

Browse files
committed
try templating off RxAndroid
1 parent f294a6b commit 554af27

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

build.gradle

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ sourceCompatibility = JavaVersion.VERSION_11
2424
targetCompatibility = JavaVersion.VERSION_11
2525

2626

27+
boolean isReleaseBuild = gradle.startParameter.taskNames.contains('bintrayUpload')
28+
version = isReleaseBuild ? VERSION_NAME : "$VERSION_NAME-SNAPSHOT"
29+
logger.info("RxJavaFX using version=$project.version")
30+
31+
2732
def currentOS = org.gradle.internal.os.OperatingSystem.current()
2833
def platform
2934
if (currentOS.isWindows()) {
@@ -47,8 +52,25 @@ dependencies {
4752
testCompile 'org.mockito:mockito-core:1.8.5'
4853
}
4954

55+
task sourcesJar(type: Jar) {
56+
classifier = 'sources'
57+
from sourceSets.main.allSource
58+
}
59+
60+
artifacts {
61+
archives sourcesJar
62+
}
63+
64+
65+
publishing {
66+
publications {
67+
mavenJava(MavenPublication) {
68+
from components.java
69+
artifact sourcesJar
70+
}
71+
}
72+
}
5073

51-
apply from: "$rootDir/gradle/artifacts.gradle"
5274

5375
install {
5476
repositories.mavenInstaller.pom.project {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
GROUP=io.reactivex.rxjava2
2-
VERSION_NAME=2.11.0-RC12
2+
VERSION_NAME=2.11.0-RC13
33
POM_NAME=RxJavaFX
44
POM_PACKAGING=jar
55
POM_DESCRIPTION=RxJavaFX

0 commit comments

Comments
 (0)