Skip to content

Commit 4da3a62

Browse files
committed
🔧
[Update] - Maven configuration.
1 parent 6ed0a50 commit 4da3a62

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

build.gradle

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

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

library/build.gradle

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

7-
group = 'com.github.rosuH'
8-
version = '1.1'
7+
group = rootProject.ext.libId
8+
version = rootProject.ext.libVersion
9+
910

1011
android {
1112
compileSdkVersion 30
@@ -53,9 +54,9 @@ afterEvaluate {
5354
from components.release
5455

5556
// You can then customize attributes of the publication as shown below.
56-
groupId = 'com.github.rosuH'
57+
groupId = rootProject.ext.libId
5758
artifactId = 'final'
58-
version = '1.1'
59+
version = rootProject.ext.libVersion
5960
}
6061
}
6162
}

0 commit comments

Comments
 (0)