-
Notifications
You must be signed in to change notification settings - Fork 0
/
maven.gradle
85 lines (72 loc) · 2.48 KB
/
maven.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
buildscript {
repositories {
mavenCentral()
}
dependencies {
// Releasing to Maven Central from Gradle without dealing with
// Nexus UI
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.11.0"
}
}
apply plugin: io.codearte.gradle.nexus.NexusStagingPlugin
// Upload to Sonatype for Maven Central
apply plugin: 'maven'
// Signing required for Sonatype Maven Central Direct Upload
apply plugin: 'signing'
project.ext["signing.keyId"] = '74B2DD02'
project.ext["signing.password"] = System.getenv("GPG_PASSPHRASE") ?: ""
project.ext["signing.secretKeyRingFile"] = file("/tmp/sec.gpg").absolutePath
group = 'com.wtanaka'
project.ext["artifactId"] = 'docopt-kt'
project.ext["websiteUrl"] = 'https://wtanaka.com/'
project.ext["description"] = 'Docopt for Kotlin'
project.ext["githubuser"] = "wtanaka"
project.ext["githubrepo"] = "docopt.kt"
apply from: 'pom.gradle'
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment {
MavenDeployment deployment -> signing.signPom(deployment)
}
repository(url:
"https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: System.getenv('OSSRH_USER'),
password: System.getenv('OSSRH_PASSWORD'))
}
snapshotRepository(url:
"https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: System.getenv('OSSRH_USER'),
password: System.getenv('OSSRH_PASSWORD'))
}
pom.project {
name 'com.wtanaka.beam'
packaging 'jar'
artifactId 'beam'
description 'Apache Beam Utility Code'
url 'https://wtanaka.com/beam'
scm {
connection "scm:git:git://github.com/wtanaka/streaming.git"
developerConnection "scm:git:ssh://github.com:wtanaka/streaming.git"
url "https://github.com/wtanaka/streaming/tree/master"
}
licenses {
license {
name "GNU General Public License, Version 3.0"
url "http://www.gnu.org/licenses/gpl-3.0.html"
distribution "repo"
}
}
developers {
developer {
id "wtanaka"
name "wtanaka.com"
email "wtanaka@yahoo.com"
}
}
}
}
}
}
nexusStaging {
}