Skip to content

Commit eedf318

Browse files
authored
Add maven publish version in environment variables (#9)
1 parent 67eef0e commit eedf318

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.idea/gradle.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/publish-module.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ artifacts {
1414
archives androidSourcesJar
1515
}
1616
group = PUBLISH_GROUP_ID
17-
version = PUBLISH_VERSION
17+
version = rootProject.ext["publish_version"]
1818

1919
afterEvaluate {
2020
publishing {
@@ -24,7 +24,7 @@ afterEvaluate {
2424
// we'll set up later
2525
groupId PUBLISH_GROUP_ID
2626
artifactId PUBLISH_ARTIFACT_ID
27-
version PUBLISH_VERSION
27+
version rootProject.ext["publish_version"]
2828

2929
/// Two artifacts, the `aar` (or `jar`) and the sources
3030
if (project.plugins.findPlugin("com.android.library")) {

scripts/publish-root.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ ext["signing.keyId"] = ''
66
ext["signing.password"] = ''
77
ext["signing.key"] = ''
88
ext["snapshot"] = ''
9+
ext["publish_version"] = ''
910

1011
File secretPropsFile = project.rootProject.file('local.properties')
1112

@@ -28,6 +29,7 @@ if (secretPropsFile.exists()) {
2829
ext["signing.password"] = System.getenv('SIGNING_PASSWORD')
2930
ext["signing.key"] = System.getenv('SIGNING_KEY')
3031
ext["snapshot"] = System.getenv('SNAPSHOT')
32+
ext["publish_version"] = System.getenv('PUBLISH_VERSION')
3133
}
3234

3335
// Set up Sonatype repository

showcase/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ plugins {
55

66
ext {
77
PUBLISH_GROUP_ID = 'com.canopas.intro-showcase-view'
8-
PUBLISH_VERSION = '1.0.6'
98
PUBLISH_ARTIFACT_ID = 'introshowcaseview'
109
}
1110

0 commit comments

Comments
 (0)