-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
93 lines (83 loc) · 2.57 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
93
plugins {
id 'java'
id 'signing'
id 'maven-publish'
id 'io.github.gradle-nexus.publish-plugin' version "1.3.0"
}
group = 'org.rundeck'
archivesBaseName = 'rundeck-data-models'
version = '1.0.6'
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
repositories {
mavenCentral()
}
dependencies {
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
nexusPublishing {
repositories {
sonatype {
username = findProperty('sonatypeUsername')
password = findProperty('sonatypePassword')
}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = 'Rundeck Data Models'
description = 'Data models for persistent Rundeck data'
url = 'https://rundeck.org'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'sjoyner'
name = 'Stephen Joyner'
email = 'sjoyner@pagerduty.com'
}
}
scm {
connection = 'scm:git:git://github.com/rundeck/rundeck-data-models.git'
developerConnection = 'scm:git:ssh://github.com/rundeck/rundeck-data-models.git'
url = 'https://github.com/rundeck/rundeck-data-models'
}
}
}
}
repositories {
maven {
def releasesRepoUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
def snapshotsRepoUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username findProperty('sonatypeUsername')
password findProperty('sonatypePassword')
}
}
}
}
if(findProperty("signing.keyId") != null && findProperty("signing.password") != null) {
signing {
sign(publishing.publications)
}
}
java {
withJavadocJar()
withSourcesJar()
}
test {
useJUnitPlatform()
}