-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
83 lines (72 loc) · 2.32 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
/*
* Copyright (c) 2019-2023 by David Gerber - https://zapek.com
*
* This file is part of Xeres.
*
* Xeres is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Xeres is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Xeres. If not, see <http://www.gnu.org/licenses/>.
*/
buildscript {
ext {
bouncycastleVersion = "1.80"
apacheCommonsCollectionsVersion = "4.4"
springOpenApiVersion = "2.8.3"
jsoupVersion = "1.18.3"
jsonPatchVersion = "1.13"
zxingVersion = "3.5.3"
appDirsVersion = "1.3.0"
junitVersion = "5.11.4"
archunitVersion = "1.3.0"
}
}
plugins {
id 'org.springframework.boot' version '3.4.2' apply false
id 'org.flywaydb.flyway' version '10.20.0' apply false // Keep the version in sync with spring-boot from time to time
id 'org.panteleyev.jpackageplugin' version '1.6.0' apply false
id 'org.sonarqube' version '6.0.1.5171'
}
// To upgrade Gradle, change the version here, refresh, then run the 'build setup/wrapper' task
wrapper {
gradleVersion = '8.12'
}
// This gives a git-like version for git builds but a proper version
// when the release is built with a tag
def getVersionName = providers.exec {
commandLine("git", "describe", "--tags")
}.standardOutput.asText.get().substring(1).trim()
subprojects {
group = 'io.xeres'
version = "${getVersionName}"
apply plugin: 'java'
apply plugin: 'jacoco'
java {
sourceCompatibility = '21'
}
compileJava {
options.encoding = 'UTF-8'
}
compileTestJava {
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
}
}
sonarqube {
properties {
property "sonar.projectKey", "zapek_Xeres"
property "sonar.organization", "zapek"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.cpd.exclusion", "**/*Mapper.java"
}
}