Skip to content

Commit 9d0b212

Browse files
committed
🔧
[Update] - Maven configuration.
1 parent 8c76638 commit 9d0b212

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,9 @@ allprojects {
2323

2424
task clean(type: Delete) {
2525
delete rootProject.buildDir
26+
}
27+
28+
ext {
29+
libVersion = '1.0.1'
30+
libId = 'com.github.rosuH'
2631
}

library/build.gradle

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ plugins {
55
id 'maven-publish'
66
}
77

8-
group = 'com.github.rosuH'
9-
version = '1.1'
8+
9+
10+
group = rootProject.ext.libId
11+
version = rootProject.ext.libVersion
1012

1113
android {
1214
compileSdkVersion 29
@@ -53,9 +55,9 @@ afterEvaluate {
5355
from components.release
5456

5557
// You can then customize attributes of the publication as shown below.
56-
groupId = 'com.github.rosuH'
58+
groupId = rootProject.ext.libId
5759
artifactId = 'final'
58-
version = '1.1'
60+
version = rootProject.ext.libVersion
5961
}
6062
}
6163
}

0 commit comments

Comments
 (0)