-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
93 lines (83 loc) · 2.56 KB
/
build.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
92
plugins {
id 'pl.allegro.tech.build.axion-release' version '1.13.6'
id 'idea'
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
}
scmVersion {
tag {
prefix = ''
versionSeparator = ''
}
ignoreUncommittedChanges = false
}
def base64Decode = { String prop ->
project.findProperty(prop) ?
new String(Base64.getDecoder().decode(project.findProperty(prop).toString())).trim() :
null
}
nexusPublishing {
repositories {
sonatype()
}
}
allprojects {
group = "org.rundeck.cli-toolbelt"
project.version = scmVersion.version
}
subprojects{
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'signing'
java {
withJavadocJar()
withSourcesJar()
}
javadoc {
if (JavaVersion.current().isJava8Compatible()) {
options.addStringOption('Xdoclint:none', '-quiet')
}
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
publishing {
publications {
"${project.name}lib"(MavenPublication) {
from components.java
version = project.version
pom {
name = "Rundeck CLI Toolbelt - ${project.name}"
description = "CLI utility - ${project.name}"
url = 'https://github.com/rundeck/cli-toolbelt'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'gschueler'
name = 'Greg Schueler'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/rundeck/cli-toolbelt.git'
developerConnection = 'scm:git:ssh://github.com/rundeck/cli-toolbelt.git'
url = 'https://github.com/rundeck/cli-toolbelt'
}
}
}
}
}
if(project.hasProperty('signingKey') && project.hasProperty('signingPassword')) {
signing {
useInMemoryPgpKeys(base64Decode("signingKey"), project.signingPassword)
sign(publishing.publications)
}
}
}
repositories {
mavenCentral()
}