-
Notifications
You must be signed in to change notification settings - Fork 2
/
publishing.gradle
57 lines (53 loc) · 2.1 KB
/
publishing.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
publishing {
publications {
release(MavenPublication) {
from components.java
pom {
name = 'axon-crypto-shredding'
description = 'Crypto shredding for the Axon event log and saga store.'
url = 'https://github.com/everest-engineering/axon-crypto-shredding-extension'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'everest-engineering'
name = 'EverestEngineering'
email = '[email protected]'
}
}
scm {
connection = 'https://github.com/everest-engineering/axon-crypto-shredding-extension.git'
developerConnection = 'https://github.com/everest-engineering/axon-crypto-shredding-extension.git'
url = 'https://github.com/everest-engineering/axon-crypto-shredding-extension'
}
}
}
}
repositories {
maven {
name = "MavenCentral"
def ossrhUsername = System.getenv('OSSRH_USERNAME')
def ossrhPassword = System.getenv('OSSRH_PASSWORD')
def releasesRepoUrl = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
def snapshotsRepoUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
url = version.contains('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username = "${ossrhUsername}"
password = "${ossrhPassword}"
}
}
}
}
signing {
def signingPassword = System.getenv('SIGNING_PASSWORD')
def signingKey = System.getenv('SIGNING_KEY')
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.release
}
javadoc {
options.addBooleanOption('html5', true)
}