File: build-and-publish-aar-snapshot.sh

package info (click to toggle)
openxr-sdk-source 1.1.47~ds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,804 kB
  • sloc: cpp: 63,078; python: 20,501; xml: 15,759; ansic: 6,418; sh: 910; makefile: 426; ruby: 386
file content (17 lines) | stat: -rwxr-xr-x 509 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash
# Copyright (c) 2020-2021 Collabora, Ltd.
#
# SPDX-License-Identifier: Apache-2.0
set -e
MAINT_SCRIPTS=$(cd "$(dirname "$0")" && pwd)
ROOT=$(cd "$(dirname "$0")" && cd .. && pwd)

# This file tells the build scripts to append -SNAPSHOT to the version.
touch "${ROOT}/SNAPSHOT"

# Build AAR
"${MAINT_SCRIPTS}/build-aar.sh"

# Publish AAR using Gradle
cd "${MAINT_SCRIPTS}/publish-aar"
./gradlew publishMavenPublicationToBuildDirRepository publishMavenPublicationToOSSRH-SnapshotsRepository