diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-10 00:21:51 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-10 00:29:38 -0600 |
commit | 5d342ee1abd347193632dc6f4b00c68189a74d89 (patch) | |
tree | 7ae5e030ed253c90840c66ec930bd5a579affdac /tunnel | |
parent | 697d13139740e5e4f043776f944167792b5ff5ed (diff) |
tunnel: upload aar to bintray
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tunnel')
-rw-r--r-- | tunnel/build.gradle | 2 | ||||
-rw-r--r-- | tunnel/publish.gradle | 65 |
2 files changed, 67 insertions, 0 deletions
diff --git a/tunnel/build.gradle b/tunnel/build.gradle index 63585bf7..728b6fb2 100644 --- a/tunnel/build.gradle +++ b/tunnel/build.gradle @@ -29,3 +29,5 @@ dependencies { implementation "com.jakewharton.threetenabp:threetenabp:$threetenabpVersion" implementation "net.i2p.crypto:eddsa:$eddsaVersion" } + +apply from: "publish.gradle" diff --git a/tunnel/publish.gradle b/tunnel/publish.gradle new file mode 100644 index 00000000..7cb4048c --- /dev/null +++ b/tunnel/publish.gradle @@ -0,0 +1,65 @@ +apply plugin: 'com.github.dcendents.android-maven' +apply plugin: 'com.jfrog.bintray' + +version wireguardVersionName +group 'com.wireguard.android' + +install { + repositories.mavenInstaller { + pom.project { + name 'WireGuard Tunnel Library' + description 'Embeddable tunnel library for WireGuard for Android' + url 'https://www.wireguard.com/' + + packaging 'aar' + groupId 'com.wireguard.android' + artifactId 'tunnel' + version wireguardVersionName + + licenses { + license { + name 'The Apache Software License, Version 2.0' + url 'http://www.apache.org/licenses/LICENSE-2.0.txt' + distribution 'repo' + } + } + scm { + connection 'scm:git:https://git.zx2c4.com/wireguard-android' + url 'https://git.zx2c4.com/wireguard-android' + } + organization { + name 'WireGuard' + url 'https://www.wireguard.com/' + } + } + } +} + +bintray { + user = hasProperty('BINTRAY_USER') ? getProperty('BINTRAY_USER') : System.getenv('BINTRAY_USER') + key = hasProperty('BINTRAY_KEY') ? getProperty('BINTRAY_KEY') : System.getenv('BINTRAY_KEY') + + configurations = [ 'archives' ] + + pkg { + repo = 'wireguard-android' + name = 'wireguard-android' + userOrg = 'wireguard' + licenses = [ 'Apache-2.0' ] + vcsUrl = 'https://git.zx2c4.com/wireguard-android' + publish = true + + version { + name = wireguardVersionName + } + } +} + +task sourcesJar(type: Jar) { + from android.sourceSets.main.java.srcDirs + archiveClassifier = 'sources' +} + +artifacts { + archives sourcesJar +} |