Skip to content

Commit ac79464

Browse files
committed
Finish triggering the publication of MavenCentral artifacts.
1 parent 08ae73e commit ac79464

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

maintainer-scripts/build-and-publish-aar-mavencentral.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# Copyright (c) 2020-2021 Collabora, Ltd.
2+
# Copyright (c) 2020-2022 Collabora, Ltd.
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
set -e
@@ -15,3 +15,6 @@ rm -f "${ROOT}/SNAPSHOT"
1515
# Publish AAR using Gradle
1616
cd "${MAINT_SCRIPTS}/publish-aar"
1717
./gradlew publishMavenPublicationToBuildDirRepository publishMavenPublicationToOSSRHRepository
18+
19+
# Need to explicitly "close and release" it then
20+
./gradlew closeAndReleaseRepository

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
// Copyright 2021, Collabora, Ltd.
1+
// Copyright 2021-2022, Collabora, Ltd.
22
// SPDX-License-Identifier: BSL-1.0
33
plugins {
44
id("maven-publish")
55
signing
6+
id("io.codearte.nexus-staging").version("0.30.0")
67
}
78

89
// These next few lines are just to make the version match the OpenXR release.
@@ -94,3 +95,8 @@ publishing {
9495
}
9596
}
9697
}
98+
nexusStaging {
99+
serverUrl = "https://s01.oss.sonatype.org/service/local/"
100+
username = System.getenv("OSSRH_USER") ?: return@nexusStaging
101+
password = System.getenv("OSSRH_PASSWORD") ?: return@nexusStaging
102+
}

0 commit comments

Comments
 (0)