-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
49 lines (43 loc) · 1.29 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
buildscript {
repositories {
maven {
url projectRepositoriesMavenUrl
}
}
}
plugins {
id 'idea'
id 'jacoco'
id 'java'
id 'java-library'
id 'maven-publish'
id 'signing'
alias(libs.plugins.gradle.izpack.plugin)
alias(libs.plugins.gradle.versions.plugin)
alias(libs.plugins.grgit.gradle)
alias(libs.plugins.license.gradle.plugin)
alias(libs.plugins.lombok.plugin)
alias(libs.plugins.spotless.plugin.gradle)
alias(libs.plugins.version.catalog.update)
}
group = "$groupPackage" as Object
version = "$projectVersion" as Object
description = "$rootProject.name"
// import gradle files
apply from: "gradle/apply-gradle-files.gradle"
java {
sourceCompatibility = "$projectSourceCompatibility" as Object
toolchain {
languageVersion = JavaLanguageVersion.of("$projectSourceCompatibility")
}
}
tasks.withType(JavaCompile).configureEach { javaCompiler ->
options.encoding = "UTF-8"
// uncomment the next line for build with compiler argument -Xlint:deprecation
options.compilerArgs << "-Xlint:deprecation"
// uncomment the next line for build with compiler argument -Xlint:unchecked
// options.compilerArgs << "-Xlint:unchecked"
}
tasks.named("test") {
it.mustRunAfter(tasks.named("jar"))
}