forked from BetterCloud/scim2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
99 lines (83 loc) · 2.77 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
94
95
96
97
98
99
plugins {
id "io.spring.dependency-management" version "1.1.6" apply false
}
group "com.bettercloud"
version "1.0.6-custom"
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
allprojects {
apply plugin: "io.spring.dependency-management"
apply plugin: "maven-publish"
apply plugin: "java-library"
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
repositories {
mavenCentral()
}
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:3.3.5"
}
}
}
subprojects {
apply plugin: "signing"
group = rootProject.group
archivesBaseName = project.name
version = rootProject.version
dependencies {
implementation group: "com.google.guava", name: "guava", version: "$guava_version"
implementation 'org.springframework.boot:spring-boot-starter-validation'
compileOnly group: "org.projectlombok", name: "lombok"
annotationProcessor group: "org.projectlombok", name: "lombok"
testImplementation "junit:junit"
}
java {
withSourcesJar()
withJavadocJar()
}
signing {
required { isReleaseVersion && gradle.taskGraph.hasTask("publications") }
sign configurations.archives
}
publishing {
def nexusUser = hasProperty('NEXUS_CREDS_USR') ? nexusUsername : System.getenv('NEXUS_CREDS_USR')
def nexusPassword = hasProperty('NEXUS_CREDS_PSW') ? nexusPassword : System.getenv('NEXUS_CREDS_PSW')
def nexusUrl = hasProperty('NEXUS_URL') ? nexusUrl : System.getenv('NEXUS_URL')
repositories {
maven {
url = nexusUrl
credentials {
username = nexusUser
password = nexusPassword
}
}
}
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = 'SCIM 2.0 SDK for Spring'
packaging "jar"
description = 'SCIM 2.0 SDK for Spring'
url = 'https://github.com/BetterCloud/scim2'
licenses {
license {
name = 'MIT'
url = 'https://github.com/BetterCloud/scim2/blob/master/README.md'
}
}
developers {
developer {
id = 'daniel-lynch'
name = 'Daniel Lynch'
email = '[email protected]'
}
}
}
}
}
}
}
wrapper {
gradleVersion = '7.5'
}