Skip to content

Commit 19700da

Browse files
committed
Add maven publishing configuration for Godot tools
The Godot Android library on MavenCentral is a `template` build; this updated configuration adds a new 'Godot Tools' publishing artifact, allowing developers access to the `editor` build of the Godot Android library.
1 parent e585e6a commit 19700da

File tree

3 files changed

+56
-3
lines changed

3 files changed

+56
-3
lines changed

platform/android/java/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def templateExcludedBuildTask() {
7979
// We exclude these gradle tasks so we can run the scons command manually.
8080
def excludedTasks = []
8181
if (excludeSconsBuildTasks()) {
82-
logger.lifecycle("Excluding Android studio build tasks")
82+
logger.info("Excluding Android studio build tasks")
8383
for (String flavor : supportedFlavors) {
8484
String[] supportedBuildTypes = supportedFlavorsBuildTypes[flavor]
8585
for (String buildType : supportedBuildTypes) {
@@ -206,7 +206,7 @@ def generateBuildTasks(String flavor = "template", String edition = "standard",
206206
}
207207
}
208208
} else {
209-
logger.lifecycle("No native shared libs for target $target. Skipping build.")
209+
logger.info("No native shared libs for target $target. Skipping build.")
210210
}
211211
}
212212

platform/android/java/lib/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ plugins {
55

66
ext {
77
PUBLISH_ARTIFACT_ID = 'godot'
8+
TOOLS_PUBLISH_ARTIFACT_ID = 'godot-tools'
89
}
910

1011
apply from: "../scripts/publish-module.gradle"
@@ -185,5 +186,9 @@ android {
185186
withSourcesJar()
186187
withJavadocJar()
187188
}
189+
singleVariant("editorRelease") {
190+
withSourcesJar()
191+
withJavadocJar()
192+
}
188193
}
189194
}

platform/android/java/scripts/publish-module.gradle

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,55 @@ afterEvaluate {
1919
// Mostly self-explanatory metadata
2020
pom {
2121
name = PUBLISH_ARTIFACT_ID
22-
description = 'Godot Engine Android Library'
22+
description = 'Godot Engine Android Library - Template Build'
23+
url = 'https://godotengine.org/'
24+
licenses {
25+
license {
26+
name = 'MIT License'
27+
url = 'https://github.com/godotengine/godot/blob/master/LICENSE.txt'
28+
}
29+
}
30+
developers {
31+
developer {
32+
id = 'm4gr3d'
33+
name = 'Fredia Huya-Kouadio'
34+
35+
}
36+
developer {
37+
id = 'reduz'
38+
name = 'Juan Linietsky'
39+
40+
}
41+
developer {
42+
id = 'akien-mga'
43+
name = 'Rémi Verschelde'
44+
45+
}
46+
// Add all other devs here...
47+
}
48+
49+
// Version control info - if you're using GitHub, follow the
50+
// format as seen here
51+
scm {
52+
connection = 'scm:git:github.com/godotengine/godot.git'
53+
developerConnection = 'scm:git:ssh://github.com/godotengine/godot.git'
54+
url = 'https://github.com/godotengine/godot/tree/master'
55+
}
56+
}
57+
}
58+
toolsRelease(MavenPublication) {
59+
from components.editorRelease
60+
61+
// The coordinates of the library, being set from variables that
62+
// we'll set up later
63+
groupId ossrhGroupId
64+
artifactId TOOLS_PUBLISH_ARTIFACT_ID
65+
version PUBLISH_VERSION
66+
67+
// Mostly self-explanatory metadata
68+
pom {
69+
name = TOOLS_PUBLISH_ARTIFACT_ID
70+
description = 'Godot Engine Tools Android Library - Editor Build'
2371
url = 'https://godotengine.org/'
2472
licenses {
2573
license {

0 commit comments

Comments
 (0)