Skip to content

Commit

Permalink
Add maven-publish plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
lriccardo committed Dec 8, 2021
1 parent 0e9fc57 commit 53ddadd
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions TimelineView/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,36 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'maven-publish'
}


// Because the components are created only during the afterEvaluate phase, you must
// configure your publications using the afterEvaluate() lifecycle method.
afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
// Applies the component for the release build variant.
from components.release

// You can then customize attributes of the publication as shown below.
groupId = 'com.lriccardo.timelineview'
artifactId = 'timelineview'
version = '1.0.0'
}
// Creates a Maven publication called “debug”.
debug(MavenPublication) {
// Applies the component for the debug build variant.
from components.debug

groupId = 'com.lriccardo.timelineview'
artifactId = 'timelineview'
version = '1.0.0'
}
}
}
}

android {
Expand Down

0 comments on commit 53ddadd

Please sign in to comment.