Summary: Trying to dust off the build setup and make it work again with a modern Android Studio / JVM. Removing all JCenter setup, too, as this is no longer supported. Pull Request resolved: https://github.com/facebook/yoga/pull/1084 Test Plan: `./gradlew :yoga-layout:assembleDebug` works already. Looking if CI here likes this. Reviewed By: mweststrate Differential Revision: D28602272 Pulled By: passy fbshipit-source-id: 0cb86f548cc6366ccefcc92c185d6e7772e75547
22 lines
603 B
Bash
Executable File
22 lines
603 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Deploy a SNAPSHOT JAR after every successful CI run To Sonatype.
|
|
|
|
#
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the LICENSE
|
|
# file in the root directory of this source tree.
|
|
#
|
|
|
|
set -e
|
|
|
|
BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
|
|
IS_SNAPSHOT="$(grep 'VERSION_NAME=[0-9\.]\+-SNAPSHOT' "$BASEDIR/gradle.properties")"
|
|
|
|
if [ "$IS_SNAPSHOT" == "" ]; then
|
|
echo >&2 "Skipping build. Given build doesn't appear to be a SNAPSHOT release."
|
|
else
|
|
env TERMINAL=dumb "$BASEDIR/gradlew" publish
|
|
fi
|