forked from BetterCloud/scim2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
89 lines (71 loc) · 2.1 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
plugins {
id "io.spring.dependency-management" version "1.1.0" apply false
id "com.palantir.git-version" version "3.0.0"
}
group "com.staffbase.scim2"
version gitVersion()
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
allprojects {
apply plugin: "io.spring.dependency-management"
apply plugin: "java-library"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
jcenter()
mavenCentral()
}
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:2.1.3.RELEASE"
}
}
}
subprojects {
apply plugin: "maven-publish"
group = rootProject.group
archivesBaseName = project.name
version = rootProject.version
dependencies {
implementation group: "com.google.guava", name: "guava", version: "20.0"
compileOnly group: "org.projectlombok", name: "lombok", version: "1.18.20"
annotationProcessor group: "org.projectlombok", name: "lombok", version: "1.18.20"
testImplementation "junit:junit"
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier.set("javadoc")
from javadoc
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier.set("sources")
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
java {
withSourcesJar()
withJavadocJar()
}
publishing {
repositories {
maven {
name = "GitHubPackages"
if (System.getenv("PUBLISH_URL")) {
url = uri(System.getenv("PUBLISH_URL"))
credentials {
username = System.getenv("PUBLISH_USERNAME") ?: ""
password = System.getenv("PUBLISH_PASSWORD") ?: ""
}
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}
}
wrapper {
gradleVersion = '7.0'
}