@@ -8,6 +8,7 @@ Repository for testing build from jitpack.io
8
8
This Is Latest Release
9
9
10
10
$version_release = 1.1.0
11
+ $version_dcendents = 2.1
11
12
12
13
What's New??
13
14
@@ -45,15 +46,22 @@ What's New??
45
46
jdk:
46
47
- openjdk11
47
48
48
- ### Step 2. Add maven-publish on plugins
49
+ ### Step 2. Add root build.gradle buildscript dependencies (This Step For Multiple Module / Library)
50
+
51
+ dependencies {
52
+ ...
53
+ classpath 'com.github.dcendents:android-maven-gradle-plugin:$version_dcendents'
54
+ }
55
+
56
+ ### Step 3. Add maven-publish on plugins
49
57
50
58
plugins {
51
59
id 'com.android.library'
52
60
...
53
61
id 'maven-publish'
54
62
}
55
63
56
- ### Step 3 . Add publish code library on build.gradle library module
64
+ ### Step 4 . Add publish code library on build.gradle library module
57
65
58
66
afterEvaluate {
59
67
publishing {
@@ -65,13 +73,15 @@ What's New??
65
73
// Applies the component for the release build variant.
66
74
from components.release
67
75
68
- // Library Package Name
69
- groupId = 'com.frogobox.sample'
76
+ // Library Package Name (Example : "com.frogobox.androidfirstlib")
77
+ // NOTE : Different GroupId For Each Library / Module, So That Each Library Is Not Overwritten
78
+ groupId = $projectFirstLibraryId
70
79
71
- // Github Repository Name
72
- artifactId = 'jitpack-library-test'
80
+ // Library Name / Module Name (Example : "androidfirstlib")
81
+ // NOTE : Different ArtifactId For Each Library / Module, So That Each Library Is Not Overwritten
82
+ artifactId = $firstLibrary
73
83
74
- // Version Library Name
84
+ // Version Library Name (Example : "1.0.0")
75
85
version = "$projectVersionName"
76
86
77
87
}
0 commit comments