Commit 53ddadd 1 parent 0e9fc57 commit 53ddadd Copy full SHA for 53ddadd
File tree 1 file changed +30
-0
lines changed
1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id ' com.android.library'
3
3
id ' kotlin-android'
4
+ id ' maven-publish'
5
+ }
6
+
7
+
8
+ // Because the components are created only during the afterEvaluate phase, you must
9
+ // configure your publications using the afterEvaluate() lifecycle method.
10
+ afterEvaluate {
11
+ publishing {
12
+ publications {
13
+ // Creates a Maven publication called "release".
14
+ release(MavenPublication ) {
15
+ // Applies the component for the release build variant.
16
+ from components. release
17
+
18
+ // You can then customize attributes of the publication as shown below.
19
+ groupId = ' com.lriccardo.timelineview'
20
+ artifactId = ' timelineview'
21
+ version = ' 1.0.0'
22
+ }
23
+ // Creates a Maven publication called “debug”.
24
+ debug(MavenPublication ) {
25
+ // Applies the component for the debug build variant.
26
+ from components. debug
27
+
28
+ groupId = ' com.lriccardo.timelineview'
29
+ artifactId = ' timelineview'
30
+ version = ' 1.0.0'
31
+ }
32
+ }
33
+ }
4
34
}
5
35
6
36
android {
You can’t perform that action at this time.
0 commit comments