Skip to content

Commit 4ae1d5e

Browse files
committed
update build.gradle to support maven central upload
1 parent 0615b5c commit 4ae1d5e

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

android/sdl_android/build.gradle

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
1-
apply plugin: 'com.android.library'
1+
buildscript {
2+
repositories {
3+
mavenCentral()
4+
}
5+
dependencies {
6+
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
7+
}
8+
}
9+
10+
plugins {
11+
id "com.android.library"
12+
id "com.vanniktech.maven.publish" version "0.34.0"
13+
}
14+
15+
mavenPublishing {
16+
publishToMavenCentral()
17+
signAllPublications()
18+
}
219

320
android {
421
compileSdkVersion 36
@@ -66,15 +83,3 @@ dependencies {
6683
androidTestImplementation 'androidx.test.espresso:espresso-core:3.7.0'
6784
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.7.0'
6885
}
69-
70-
buildscript {
71-
repositories {
72-
mavenCentral()
73-
}
74-
dependencies {
75-
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
76-
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.34.0'
77-
}
78-
}
79-
80-
apply plugin: "com.vanniktech.maven.publish"

0 commit comments

Comments
 (0)