Skip to content

Commit 53ddadd

Browse files
committed
Add maven-publish plugin
1 parent 0e9fc57 commit 53ddadd

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

TimelineView/build.gradle

+30
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,36 @@
11
plugins {
22
id 'com.android.library'
33
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+
}
434
}
535

636
android {

0 commit comments

Comments
 (0)