Skip to content

Commit 15d4b81

Browse files
authored
chore: Move version to build.gradle file. (#732)
1 parent 640057c commit 15d4b81

3 files changed

Lines changed: 5 additions & 12 deletions

File tree

.releaserc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ plugins:
66
- - "@google/semantic-release-replace-plugin"
77
- replacements:
88
- files:
9-
- "./gradle.properties"
10-
from: "version=.*"
11-
to: "version=${nextRelease.version}"
9+
- "./build.gradle"
10+
from: "version = .*"
11+
to: "version = ${nextRelease.version}"
1212
- - "@semantic-release/exec"
1313
- prepareCmd: "./gradlew build --warn --stacktrace"
1414
publishCmd: "./gradlew publish --warn --stacktrace"
1515
- - "@semantic-release/git"
1616
- assets:
17-
- "./gradle.properties"
17+
- "./build.gradle"
1818
- "@semantic-release/github"
1919
options:
2020
debug: true

build.gradle

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ apply plugin: 'com.github.sherter.google-java-format'
2828

2929
group = 'com.google.maps'
3030
sourceCompatibility = 1.8
31+
version = '0.18.1'
3132

3233
repositories {
3334
mavenCentral()
@@ -162,12 +163,6 @@ publishing {
162163
version version
163164
from components.java
164165
}
165-
gpr(MavenPublication) {
166-
groupId group
167-
artifactId project.ext.artifactId
168-
version version
169-
from(components.java)
170-
}
171166
}
172167
repositories {
173168
maven {

gradle.properties

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version=0.18.1
2-
31
# variables required to allow build.gradle to parse,
42
# override in ~/.gradle/gradle.properties
53
signing.keyId=

0 commit comments

Comments
 (0)