This repository has been archived by the owner on Oct 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle
65 lines (58 loc) · 2.29 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
plugins {
id "java-library"
id "maven-publish"
id "signing"
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
}
group = "com.wire"
version = System.getenv("version")
def Properties properties = new Properties()
properties.load(project.rootProject.file("local.properties").newDataInputStream())
nexusPublishing {
repositories {
sonatype {
username = properties.getProperty("sonatype.username") ?: System.getenv("SONATYPE_USERNAME")
password = properties.getProperty("sonatype.password") ?: System.getenv("SONATYPE_PASSWORD")
}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact "android/dist/cryptobox-android.aar"
artifact source: "android/dist/cryptobox-android-javadoc.jar", classifier: 'javadoc'
artifact source: "android/dist/cryptobox-android-sources.jar", classifier: 'sources'
pom {
name.set("cryptobox-android")
description.set("Wire - Cryptobox JNI bindings for Android")
url.set("https://github.com/wireapp/cryptobox-jni")
licenses {
license {
name.set("GPL-3.0")
url.set("https://opensource.org/licenses/GPL-3.0")
}
}
developers {
developer {
id.set("svenwire")
name.set("Sven Jost")
email.set("[email protected]")
organization.set("Wire Swiss GmbH")
}
}
scm {
connection.set("scm:git:git://github.com/wireapp/cryptobox-jni")
developerConnection.set("scm:git:git://github.com/wireapp/cryptobox-jni")
url.set("https://github.com/wireapp/cryptobox-jni")
}
}
}
}
}
signing {
def signingKeyFile = properties.getProperty("signingKeyFile") ?: System.getenv("PGP_PRIVATE_KEY_FILE")
def signingKey = new File(signingKeyFile).text
def signingPassword = properties.getProperty("signingPassword") ?: System.getenv("PGP_PASSPHRASE")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
}