Skip to content

Commit 2509b2f

Browse files
committed
Add a debug version for Godot's maven central artifact
1 parent f92f1ce commit 2509b2f

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

platform/android/java/lib/build.gradle

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

66
ext {
7+
DEBUG_PUBLISH_ARTIFACT_ID = 'godot-debug'
78
PUBLISH_ARTIFACT_ID = 'godot'
89
TOOLS_PUBLISH_ARTIFACT_ID = 'godot-tools'
910
}
@@ -184,6 +185,10 @@ android {
184185
}
185186

186187
publishing {
188+
singleVariant("templateDebug") {
189+
withSourcesJar()
190+
withJavadocJar()
191+
}
187192
singleVariant("templateRelease") {
188193
withSourcesJar()
189194
withJavadocJar()

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

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,58 @@ version = PUBLISH_VERSION
77
afterEvaluate {
88
publishing {
99
publications {
10+
templateDebug(MavenPublication) {
11+
from components.templateDebug
12+
13+
// The coordinates of the library, being set from variables that
14+
// we'll set up later
15+
groupId ossrhGroupId
16+
artifactId DEBUG_PUBLISH_ARTIFACT_ID
17+
version PUBLISH_VERSION
18+
19+
// Mostly self-explanatory metadata
20+
pom {
21+
name = DEBUG_PUBLISH_ARTIFACT_ID
22+
description = 'Godot Engine Android Library - (Debug) 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+
developer {
47+
id = 'godotengine'
48+
name = 'Godot Engine contributors'
49+
50+
}
51+
}
52+
53+
// Version control info - if you're using GitHub, follow the
54+
// format as seen here
55+
scm {
56+
connection = 'scm:git:github.com/godotengine/godot.git'
57+
developerConnection = 'scm:git:ssh://github.com/godotengine/godot.git'
58+
url = 'https://github.com/godotengine/godot/tree/master'
59+
}
60+
}
61+
}
1062
templateRelease(MavenPublication) {
1163
from components.templateRelease
1264

0 commit comments

Comments
 (0)