Skip to content

Commit 97b7886

Browse files
committed
Add maven-publish plugin and update repositories
1 parent 150bd75 commit 97b7886

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

build.gradle

+16-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id 'com.android.library'
3+
id 'maven-publish'
34
}
45

56
android {
@@ -33,7 +34,7 @@ android {
3334
}
3435
externalNativeBuild {
3536
cmake {
36-
path file('../../../CMakeLists.txt')
37+
path file('./CMakeLists.txt')
3738
version '3.18.1'
3839
}
3940
}
@@ -51,10 +52,23 @@ android {
5152
}
5253
}
5354

55+
repositories {
56+
google()
57+
mavenCentral()
58+
}
59+
5460
dependencies {
5561
implementation 'androidx.appcompat:appcompat:1.4.0'
5662
implementation 'com.google.android.material:material:1.4.0'
5763
testImplementation 'junit:junit:4.+'
5864
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
5965
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
60-
}
66+
}
67+
68+
publishing {
69+
publications {
70+
aar(MavenPublication) {
71+
from components.release
72+
}
73+
}
74+
}

0 commit comments

Comments
 (0)