forked from spotbugs/spotbugs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaven.gradle
91 lines (83 loc) · 2.72 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
86
87
88
89
90
91
apply plugin: 'maven'
apply plugin: 'signing'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT") && /* for Eclipse plugin */ !version.contains("-SNAPSHOT.")
signing {
required { isReleaseVersion && gradle.taskGraph.hasTask(":${project.name}:uploadArchives") }
sign configurations.archives
}
tasks.withType(Sign) {
onlyIf { isReleaseVersion }
}
uploadArchives {
repositories {
mavenDeployer {
def username = project.hasProperty('ossrhUsername') ? ossrhUsername : "Unknown user"
def password = project.hasProperty('ossrhPassword') ? ossrhPassword : "Unknown password"
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: username, password: password)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: username, password: password)
}
pom.project {
url 'https://spotbugs.github.io/'
scm {
connection 'scm:git:[email protected]:spotbugs/spotbugs.git'
developerConnection 'scm:git:[email protected]:spotbugs/spotbugs.git'
url 'https://github.com/spotbugs/spotbugs/'
}
licenses {
license {
name 'GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1'
url 'https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html'
}
}
developers {
developer {
id 'jsotuyod'
name 'Juan Martín Sotuyo Dodero'
url 'https://github.com/jsotuyod'
timezone '-3'
}
developer {
id 'mebigfatguy'
name 'Dave Brosius'
email '[email protected]'
url 'http://www.jroller.com/dbrosius/'
timezone '-5'
}
developer {
id 'henrik242'
url 'https://github.com/henrik242'
}
developer {
id 'KengoTODA'
name 'Kengo TODA'
email '[email protected]'
url 'https://github.com/KengoTODA/'
timezone '+8'
}
developer {
id 'iloveeclipse'
name 'Andrey Loskutov'
email '[email protected]'
url 'https://plus.google.com/+AndreyLoskutov'
timezone '+2'
}
developer {
id 'ThrawnCA'
url 'https://github.com/ThrawnCA'
}
developer {
id 'sewe'
name 'Andreas Sewe'
email '[email protected]'
url 'https://github.com/sewe'
timezone '+1'
}
}
}
}
}
}