Skip to content

Commit

Permalink
add Maven publication
Browse files Browse the repository at this point in the history
  • Loading branch information
aitsuki committed Sep 25, 2021
1 parent df1e4c8 commit a7cc6c0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ apply plugin: 'kotlin-android'

group='com.github.aitsuki'

repositories {
mavenCentral()
google()
maven { url "https://jitpack.io" }
}

android {
compileSdkVersion 31

Expand All @@ -29,4 +35,18 @@ android {
dependencies {
compileOnly "androidx.recyclerview:recyclerview:$recyclerview_version"
compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}

afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
from components.release
groupId = 'com.github.aitsuki'
artifactId = 'SwipeMenuRecyclerView'
version = '2.0.0'
}
}
}
}

0 comments on commit a7cc6c0

Please sign in to comment.