File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ sourceCompatibility = JavaVersion.VERSION_11
2424targetCompatibility = 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+
2732def currentOS = org.gradle.internal.os.OperatingSystem . current()
2833def platform
2934if (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
5375install {
5476 repositories. mavenInstaller. pom. project {
Original file line number Diff line number Diff line change 11GROUP =io.reactivex.rxjava2
2- VERSION_NAME =2.11.0-RC12
2+ VERSION_NAME =2.11.0-RC13
33POM_NAME =RxJavaFX
44POM_PACKAGING =jar
55POM_DESCRIPTION =RxJavaFX
You can’t perform that action at this time.
0 commit comments