Skip to content

Commit 7450c54

Browse files
authored
Merge pull request #294 from rpavlik/auto-release-aar
Auto release aar
2 parents 08ae73e + d81a32e commit 7450c54

5 files changed

Lines changed: 15 additions & 21 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+
}
293 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

maintainer-scripts/publish-aar/gradlew.bat

Lines changed: 3 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)