-
Notifications
You must be signed in to change notification settings - Fork 1
/
release.gradle
66 lines (56 loc) · 1.78 KB
/
release.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
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
dokka {
outputFormat = 'javadoc'
outputDirectory = javadoc.destinationDir
}
task javadocJar(type: Jar, dependsOn: dokka) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
signing {
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUser, password: ossrhPassword)
}
pom.project {
name project.name
description project.description
packaging 'jar'
url 'https://github.com/lukasniemeier-zalando/log4j2-json-layout'
scm {
connection 'scm:git:[email protected]:lukasniemeier-zalando/log4j2-json-layout.git'
developerConnection 'scm:git:[email protected]:lukasniemeier-zalando/log4j2-json-layout.git'
url 'https://github.com/lukasniemeier-zalando/log4j2-json-layout'
}
licenses {
license {
name 'The MIT License (MIT)'
url 'http://opensource.org/licenses/MIT'
}
}
developers {
developer {
name = 'Lukas Niemeier'
email = '[email protected]'
}
}
}
}
}
}
nexusStaging {
username = ossrhUser
password = ossrhPassword
}