diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2018-09-11 09:57:00 -0400 |
---|---|---|
committer | Henrik Edin <henrik.edin@mongodb.com> | 2018-09-14 15:29:08 -0400 |
commit | 082ece16ab827e4fbbc714a7bfafd5135e2bbf05 (patch) | |
tree | 67608faedfd6bc4fb1f7c142cfad483a1602e188 | |
parent | 6f0a463deaf890219b4b08172ebaef28df81b470 (diff) | |
download | mongo-082ece16ab827e4fbbc714a7bfafd5135e2bbf05.tar.gz |
SERVER-36722 Added remote bintray repository, just dryRun for now.
-rw-r--r-- | src/mongo/embedded/java/aar/build.gradle | 33 | ||||
-rw-r--r-- | src/mongo/embedded/java/build.gradle | 18 | ||||
-rw-r--r-- | src/mongo/embedded/java/jar/build.gradle | 31 |
3 files changed, 65 insertions, 17 deletions
diff --git a/src/mongo/embedded/java/aar/build.gradle b/src/mongo/embedded/java/aar/build.gradle index cf070bc7faa..02fb1bded4e 100644 --- a/src/mongo/embedded/java/aar/build.gradle +++ b/src/mongo/embedded/java/aar/build.gradle @@ -29,6 +29,7 @@ apply plugin: 'com.android.library' apply plugin: 'digital.wup.android-maven-publish' apply plugin: 'optional-base' +apply plugin: 'com.jfrog.bintray' android { compileSdkVersion 28 @@ -82,20 +83,38 @@ publishing { } } scm { - connection = pomScmConnection - developerConnection = pomScmDevConnection + connection = "scm:" + pomScmConnection + developerConnection = "scm:" + pomScmDevConnection url = pomScmUrl } } } } +} + +bintray { + dryRun = true + //publish = false + + user = System.getenv('BINTRAY_USER') + key = System.getenv('BINTRAY_KEY') - repositories { - maven { - name = 'local' - url = "$buildDir/repo" + publications = ['mavenAar'] + + pkg { + repo = 'MongoDB' + name = "$group:$libraryName-android" + userOrg = 'mongodb' + licenses = [licenseShort] + vcsUrl = pomScmConnection + githubRepo = 'mongodb/mongo' + githubReleaseNotesFile = 'README' + websiteUrl = pomUrl + publicDownloadNumbers = true + + version { + name = getGitVersion() } } } - diff --git a/src/mongo/embedded/java/build.gradle b/src/mongo/embedded/java/build.gradle index 9ece66d51a3..4907fcb0167 100644 --- a/src/mongo/embedded/java/build.gradle +++ b/src/mongo/embedded/java/build.gradle @@ -27,14 +27,15 @@ */ ext.jnaVersion = '4.5.2' -ext.libraryName = 'mongodb-embedded-capi' -ext.pomName = 'MongoDB Embedded Driver C API' -ext.pomDescription = 'The MongoDB Embedded Driver Native' +ext.libraryName = 'embedded-capi' +ext.licenseShort = 'AGPL-3.0' +ext.pomName = 'MongoDB Embedded for Java' +ext.pomDescription = 'The MongoDB Embedded SDK for Java' ext.pomUrl = 'http://www.mongodb.org' -ext.pomLicenseName = 'The Apache License, Version 2.0' -ext.pomLicenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt' -ext.pomScmConnection = 'scm:https://github.com/mongodb/mongo.git' -ext.pomScmDevConnection = 'scm:git@github.com:mongodb/mongo.git' +ext.pomLicenseName = 'GNU Affero General Public License version 3' +ext.pomLicenseUrl = 'http://www.gnu.org/licenses/agpl-3.0.html' +ext.pomScmConnection = 'https://github.com/mongodb/mongo.git' +ext.pomScmDevConnection = 'git@github.com:mongodb/mongo.git' ext.pomScmUrl = 'https://github.com/mongodb/mongo' buildscript { @@ -47,6 +48,7 @@ buildscript { classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:1.12.+' classpath 'com.android.tools.build:gradle:3.1.2' classpath 'digital.wup:android-maven-publish:3.6.2' + classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.+' } } @@ -70,7 +72,7 @@ def getGitVersion() { } allprojects { - group = 'com.mongodb' + group = 'org.mongodb' version = getGitVersion() repositories { diff --git a/src/mongo/embedded/java/jar/build.gradle b/src/mongo/embedded/java/jar/build.gradle index f3d77ff6be6..93a24b654bd 100644 --- a/src/mongo/embedded/java/jar/build.gradle +++ b/src/mongo/embedded/java/jar/build.gradle @@ -30,6 +30,7 @@ apply plugin: 'java-library' apply plugin: 'osgi' apply plugin: 'maven-publish' apply plugin: 'optional-base' +apply plugin: 'com.jfrog.bintray' sourceCompatibility = JavaVersion.VERSION_1_7 targetCompatibility = JavaVersion.VERSION_1_7 @@ -85,8 +86,8 @@ publishing { } } scm { - connection = pomScmConnection - developerConnection = pomScmDevConnection + connection = "scm:" + pomScmConnection + developerConnection = "scm:" + pomScmDevConnection url = pomScmUrl } } @@ -100,3 +101,29 @@ publishing { } } } + +bintray { + dryRun = true + //publish = false + + user = System.getenv('BINTRAY_USER') + key = System.getenv('BINTRAY_KEY') + + publications = ['maven'] + + pkg { + repo = 'MongoDB' + name = "$group:$libraryName" + userOrg = 'mongodb' + licenses = [licenseShort] + vcsUrl = pomScmConnection + githubRepo = 'mongodb/mongo' + githubReleaseNotesFile = 'README' + websiteUrl = pomUrl + publicDownloadNumbers = true + + version { + name = getGitVersion() + } + } +}
\ No newline at end of file |