forked from BetterCloud/scim2
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
110 lines (90 loc) · 2.88 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
100
101
102
103
104
105
106
107
108
109
110
buildscript {
ext {
tsbiFrameworkVersion = "3.2"
tsbiBomVersion = "0.0.23"
springBootVersion = "3.3.4"
securityBomVersion = "6.20.0"
checkstyleVersion = "10.3.4"
pmdVersion = "6.55.0"
jacocoVersion = "0.8.11"
spotbugsVersion = "4.8.1"
spotbugsPluginVersion = "4.7.5"
sonarqubePluginVersion = "5.1.0.4882"
// workaround for reckon issue with Java 8
grgitVersion = "5.2.2"
testngVersion = "7.10.2"
jakartaVersion = "6.1.0"
jakartaValidationVersion = "3.1.0"
lombokVersion = "1.18.34"
}
repositories {
gradlePluginPortal()
}
configurations.all {
resolutionStrategy {
cacheDynamicVersionsFor 0, 'seconds'
}
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion"
classpath "gradle.plugin.com.github.spotbugs.snom:spotbugs-gradle-plugin:$spotbugsPluginVersion"
// workaround for reckon issue with Java 8
classpath "org.ajoberstar.grgit:grgit-gradle:$grgitVersion"
}
}
plugins {
id "org.sonarqube" version "$sonarqubePluginVersion"
}
if (!hasProperty('buildTimestamp')) {
ext.buildTimestamp = new Date().format('yyyyMMddHHmmss', TimeZone.getTimeZone('UTC'))
}
configurations.all {
resolutionStrategy {
cacheDynamicVersionsFor 0, 'seconds'
}
exclude group: "log4j", module: "log4j"
exclude group: "org.apache.logging.log4j"
exclude group: "org.slf4j", module: "slf4j-log4j12"
}
subprojects {
group = "org.talend"
apply from: rootProject.file('config/java.gradle')
apply from: rootProject.file('config/publish.gradle')
repositories {
mavenCentral()
maven {
url 'https://artifacts-zl.talend.com/nexus/content/repositories/tpsvc'
credentials {
username nexusUsername
password nexusPassword
}
}
maven {
url 'https://artifacts-zl.talend.com/nexus/content/repositories/releases/'
credentials {
username nexusTalendReleasesUsername
password nexusTalendReleasesPassword
}
}
maven {
url 'https://artifacts-zl.talend.com/nexus/content/repositories/snapshots/'
credentials {
username nexusTalendSnapshotsUsername
password nexusTalendSnapshotsPassword
}
}
maven {
url 'https://artifacts-zl.talend.com/nexus/content/groups/public'
}
}
}
// This task is used by Jenkinsfile
tasks.register('versionInformation') {
doLast {
if (project.hasProperty("version")) {
new File("$projectDir/version.txt").text = "$version"
} else {
throw new GradleException('No version properties')
}
}
}