Skip to content

Commit 2f4815d

Browse files
3.x: Move Gradle properties into gradle.properties file (ReactiveX#7260)
* Move Gradle properties into gradle.properties file Moved version, group, and description into gradle.properties file. Removed POM_ARTIFACT property as the 'name' property in the settings file is used when building the POM. Removed 'release.scope' property as it does not appear to be used. Removed VERSION_NAME property and references to it, in favor of 'version' property. * Replace POM_ARTIFACT_ID in gradle.properties Added POM_ARTIFACT_ID=rxjava in gradle.properties file
1 parent 0a9b09e commit 2f4815d

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

build.gradle

+2-6
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,11 @@ if (releaseTag != null && !releaseTag.isEmpty()) {
2727
if (releaseTag.startsWith("v")) {
2828
releaseTag = releaseTag.substring(1)
2929
}
30-
project.setProperty("VERSION_NAME" , releaseTag)
30+
project.version = releaseTag
3131

32-
logger.info("Releasing with version: {}", version)
32+
logger.lifecycle("Releasing with version: " + project.version)
3333
}
3434

35-
group = "io.reactivex.rxjava3"
36-
version = project.properties["VERSION_NAME"]
37-
description = "RxJava: Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM."
38-
3935
repositories {
4036
mavenCentral()
4137
}

gradle.properties

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
release.scope=patch
2-
VERSION_NAME=3.0.0-SNAPSHOT
1+
group=io.reactivex.rxjava3
2+
version=3.0.0-SNAPSHOT
3+
description=RxJava: Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM.
34

4-
GROUP=io.reactivex.rxjava3
55
POM_ARTIFACT_ID=rxjava
66
POM_NAME=RxJava
77
POM_PACKAGING=jar

0 commit comments

Comments
 (0)