Skip to content

Commit

Permalink
Add maven-publish plugin and update repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
lambiengcode committed May 28, 2024
1 parent 150bd75 commit 97b7886
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'com.android.library'
id 'maven-publish'
}

android {
Expand Down Expand Up @@ -33,7 +34,7 @@ android {
}
externalNativeBuild {
cmake {
path file('../../../CMakeLists.txt')
path file('./CMakeLists.txt')
version '3.18.1'
}
}
Expand All @@ -51,10 +52,23 @@ android {
}
}

repositories {
google()
mavenCentral()
}

dependencies {
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'com.google.android.material:material:1.4.0'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}
}

publishing {
publications {
aar(MavenPublication) {
from components.release
}
}
}

0 comments on commit 97b7886

Please sign in to comment.