Skip to content

Commit

Permalink
Remove bintray plugin (#7544)
Browse files Browse the repository at this point in the history
  • Loading branch information
clementetb authored Aug 17, 2021
1 parent 03c2792 commit 0bd5d2e
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 20 deletions.
1 change: 0 additions & 1 deletion dependencies.list
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ KOTLIN_COROUTINES=1.3.9
gradle=6.8.3
ndkVersion=22.0.7026061
BUILD_INFO_EXTRACTOR_GRADLE=4.17.0
GRADLE_BINTRAY_PLUGIN=1.8.5
GRADLE_NEXUS_PLUGIN=1.0.0
CMAKE=3.18.4

Expand Down
1 change: 0 additions & 1 deletion gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ buildscript {
}
dependencies {
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:${properties.get('BUILD_INFO_EXTRACTOR_GRADLE')}"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:${properties.get('GRADLE_BINTRAY_PLUGIN')}"
classpath "io.github.gradle-nexus:publish-plugin:${properties.get("GRADLE_NEXUS_PLUGIN")}"
}
}
Expand Down
1 change: 0 additions & 1 deletion realm-annotations/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ buildscript {
}
dependencies {
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:${properties.get('BUILD_INFO_EXTRACTOR_GRADLE')}"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:${properties.get('GRADLE_BINTRAY_PLUGIN')}"
classpath "io.github.gradle-nexus:publish-plugin:${properties.get("GRADLE_NEXUS_PLUGIN")}"
}
}
Expand Down
1 change: 0 additions & 1 deletion realm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ buildscript {
classpath 'com.github.skhatri:gradle-s3-plugin:1.0.4'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.2'
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:${projectDependencies.get('BUILD_INFO_EXTRACTOR_GRADLE')}"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:${projectDependencies.get('GRADLE_BINTRAY_PLUGIN')}"
classpath "io.realm:realm-transformer:${file('../version.txt').text.trim()}"
classpath "io.realm:realm-library-build-transformer:${file('../version.txt').text.trim()}"
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.13'
Expand Down
2 changes: 1 addition & 1 deletion tools/publish_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# 1. Check that version in version.txt matches git tag which indicate a release.
# 2. Check that the changelog has a correct set date.
# 3. Build Javadoc
# 4. Upload all artifacts to Bintray without releasing them.
# 4. Upload all artifacts to Maven Central without releasing them.
# 5. Verify that all artifacts have been uploaded, then release all of them at once.
# 6. Upload native debug symobols and update latest version number on S3.
# 7. Upload Javadoc to MongoDB Realm S3 bucket.
Expand Down
31 changes: 17 additions & 14 deletions tools/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ check_env() {
exit -1
fi

# Check BinTray credentials
if ! grep "bintrayUser=realm" "$HOME/.gradle/gradle.properties" > /dev/null ; then
echo "'bintrayUser' is not set in the '$HOME/.gradle/gradle.properties'."
# Check Maven Central credentials
if ! grep "ossrhUsername=realm" "$HOME/.gradle/gradle.properties" > /dev/null ; then
echo "'ossrhUsername' is not set in the '$HOME/.gradle/gradle.properties'."
exit -1
fi

if ! grep "bintrayKey=.*" "$HOME/.gradle/gradle.properties" > /dev/null; then
echo "'bintrayKey' is not set in the '$HOME/.gradle/gradle.properties'."
if ! grep "ossrhPassword=.*" "$HOME/.gradle/gradle.properties" > /dev/null; then
echo "'ossrhPassword' is not set in the '$HOME/.gradle/gradle.properties'."
exit -1
fi

Expand Down Expand Up @@ -168,18 +168,21 @@ build() {
(cd examples && ./gradlew clean uninstallAll && ./gradlew monkeyDebug)
}

upload_to_bintray() {
echo "Uploading artifacts to Bintray..."
# Upload to bintray
./gradlew bintrayUpload
upload_to_maven_central() {
echo "Uploading artifacts to Maven Central..."
# Upload to maven central
./gradlew mavenCentralUpload

echo "Done."
echo "1. Log into BinTray(https://bintray.com) with the Realm account;"
echo "2. Goto https://bintray.com/realm/maven and check if there are 16 artifacts to publish."
echo "3. Press 'Publish'."
echo "1. Login into Sonatype console, you can find the credentials in Realm's LastPass account."
echo "2. There should be 4 stagging repositories in the console, select them all and click the Close menu option. It will take some time to process the action. Screenshot for close"
echo "3. After ~5min the repos would be closed, select them all and click the Release menu option. Screenshot for release"
echo "4. A confirmation prompt will show, select the automatically drop option and confirm. Screenshot for confirmation"
echo "5. Done! After some time you would be able to search for them."

while true
do
read -r -p "Have you published 16 artifacts on Bintray? Type 'Yes' to continue... " input
read -r -p "Have you published 16 artifacts on Maven central? Type 'Yes' to continue... " input

case "$input" in
[yY][eE][sS])
Expand Down Expand Up @@ -261,7 +264,7 @@ publish_javadoc() {
check_env
prepare_branch
build
upload_to_bintray
upload_to_maven_central
publish_distribution
push_release
publish_javadoc
2 changes: 1 addition & 1 deletion tools/unroll_stacktrace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Usage: $0 ( <buildid> | <flavor> <version> <abi> ) <stacktrace>
- buildid: realm java build id
- flavor: base, objectServer
- version: version number on Bintray
- version: version number on Maven Central
- abi: armeabi, armeabi-v7a, arm64-v8a, x86, x86_64, mips
- stacktrace: absolute or relative path to file with dump information
Expand Down

0 comments on commit 0bd5d2e

Please sign in to comment.