diff --git a/dependencies.list b/dependencies.list index c2da970e9e..cb3a75f5a3 100644 --- a/dependencies.list +++ b/dependencies.list @@ -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 diff --git a/gradle-plugin/build.gradle b/gradle-plugin/build.gradle index fab2b184d4..b038c15b8a 100644 --- a/gradle-plugin/build.gradle +++ b/gradle-plugin/build.gradle @@ -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")}" } } diff --git a/realm-annotations/build.gradle b/realm-annotations/build.gradle index f5be51cbee..d600e4a0f4 100644 --- a/realm-annotations/build.gradle +++ b/realm-annotations/build.gradle @@ -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")}" } } diff --git a/realm/build.gradle b/realm/build.gradle index 09a1a5b108..7a828a81f3 100644 --- a/realm/build.gradle +++ b/realm/build.gradle @@ -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' diff --git a/tools/publish_release.sh b/tools/publish_release.sh index 5658eae3fc..3d37e97b18 100644 --- a/tools/publish_release.sh +++ b/tools/publish_release.sh @@ -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. diff --git a/tools/release.sh b/tools/release.sh index 5d38989bb5..d9574d8bd8 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -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 @@ -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]) @@ -261,7 +264,7 @@ publish_javadoc() { check_env prepare_branch build -upload_to_bintray +upload_to_maven_central publish_distribution push_release publish_javadoc diff --git a/tools/unroll_stacktrace.sh b/tools/unroll_stacktrace.sh index 85c782e3af..8db8d1046c 100755 --- a/tools/unroll_stacktrace.sh +++ b/tools/unroll_stacktrace.sh @@ -18,7 +18,7 @@ Usage: $0 ( | ) - 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