Skip to content

Commit af527c3

Browse files
committed
publish-aar: Publish source jar as well as binary aar
Also remove unneeded line.
1 parent ef255eb commit af527c3

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

maintainer-scripts/publish-aar/build.gradle.kts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,22 @@ signing {
2626
}
2727
}
2828

29+
val loaderAar = file(File(root, "openxr_loader_for_android-${version}.aar"))
30+
val loaderSourcesJar = file(File(root, "openxr_loader_for_android-${version}-sources.jar"))
31+
2932
publishing {
3033
publications {
3134
create<MavenPublication>("maven") {
35+
3236
artifactId = "openxr_loader_for_android"
33-
afterEvaluate {
34-
artifact(file(File(root, "openxr_loader_for_android-${version}.aar")))
37+
artifact(loaderAar) {
38+
extension = "aar"
39+
}
40+
artifact(loaderSourcesJar) {
41+
extension = "jar"
42+
classifier = "sources"
3543
}
44+
3645
pom {
3746
name.set("OpenXR Loader for Android")
3847
description.set("The AAR for the OpenXR Loader as used on Android.")
@@ -50,7 +59,6 @@ publishing {
5059
}
5160
developers {
5261
developer {
53-
id.set("openxr-speceditor")
5462
name.set("The Khronos Group, Inc. OpenXR Working Group")
5563
email.set("openxr-speceditor AT khronos DOT org")
5664
url.set("https://khronos.org/openxr")
@@ -72,10 +80,6 @@ publishing {
7280
name = "BuildDir"
7381
url = uri(layout.buildDirectory.dir("repo"))
7482
}
75-
maven {
76-
name = "GitHubPackages"
77-
url = uri("https://maven.pkg.github.com/KhronosGroup/OpenXR-SDK-Source")
78-
}
7983
maven {
8084
name = "OSSRH"
8185
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")

0 commit comments

Comments
 (0)