diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-03-16 17:24:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-16 17:24:22 +0100 |
commit | 5c7971d8560cacc7efa06fc35eb90080dcaea9a8 (patch) | |
tree | 01047d244376664080b827a39a4ee3c23b9f7d76 /platform/android/java/lib | |
parent | e7d49e6937903cad50635dd92fc9cd19bab94570 (diff) | |
parent | a2bf47de2bfd539f0b50506b4b10095998892559 (diff) |
Merge pull request #59146 from m4gr3d/setup_mavencentral_publishing
Diffstat (limited to 'platform/android/java/lib')
-rw-r--r-- | platform/android/java/lib/build.gradle | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/platform/android/java/lib/build.gradle b/platform/android/java/lib/build.gradle index fbed4ed078..120a40a31d 100644 --- a/platform/android/java/lib/build.gradle +++ b/platform/android/java/lib/build.gradle @@ -1,6 +1,13 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' +ext { + PUBLISH_VERSION = getGodotPublishVersion() + PUBLISH_ARTIFACT_ID = 'godot' +} + +apply from: "../scripts/publish-module.gradle" + dependencies { implementation libraries.kotlinStdLib implementation libraries.androidxFragment @@ -21,6 +28,8 @@ android { manifestPlaceholders = [godotLibraryVersion: getGodotLibraryVersion()] } + namespace = "org.godotengine.godot" + compileOptions { sourceCompatibility versions.javaVersion targetCompatibility versions.javaVersion @@ -111,4 +120,12 @@ android { // Schedule the tasks so the generated libs are present before the aar file is packaged. tasks["merge${buildType}JniLibFolders"].dependsOn taskName } + + // TODO: Enable when issues with AGP 7.1+ are resolved (https://github.com/GodotVR/godot_openxr/issues/187). +// publishing { +// singleVariant("release") { +// withSourcesJar() +// withJavadocJar() +// } +// } } |