-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathmaven-publish.gradle
More file actions
52 lines (46 loc) · 1.43 KB
/
maven-publish.gradle
File metadata and controls
52 lines (46 loc) · 1.43 KB
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
group = rootProject.group
version = rootProject.version
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = project.name
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = project.name
description = project.description
url = scmHttpsUrl
licenses {
license {
name = "The Apache Software License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution = "repo"
}
}
developers {
developer {
id = 'commercetools'
name = 'commercetools Professional Services'
url = 'https://github.com/commercetools'
email = 'ps-dev@commercetools.com'
}
}
scm {
connection = "scm:git:$scmHttpsUrl"
developerConnection = "scm:git:$scmSshUrl"
url = "$scmProjectUrl"
}
}
}
}
}
signing {
useGpgCmd()
sign publishing.publications.mavenJava
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}