-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
69 lines (60 loc) · 2.25 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
buildscript {
repositories {
mavenCentral()
maven {
url projectRepositoriesMavenUrl
}
}
dependencies {
classpath "io.freefair.gradle:lombok-plugin:$gradlePluginLombokVersion"
classpath "com.github.ben-manes:gradle-versions-plugin:$gradlePluginVersionsVersion"
classpath "gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:$licenseGradlePluginVersion"
classpath "org.ajoberstar.grgit:grgit-gradle:$grgitGradlePluginVersion"
classpath "com.diffplug.spotless:spotless-plugin-gradle:$spotlessGradlePluginVersion"
classpath "nl.littlerobots.vcu:plugin:$versionCatalogUpdateVersion"
}
}
apply plugin: "org.ajoberstar.grgit"
apply plugin: "com.github.ben-manes.versions"
apply plugin: "nl.littlerobots.version-catalog-update"
apply from: "gradle/grgit.gradle"
apply from: "gradle/version-catalog-update.gradle"
description = "$rootProject.name"
allprojects {
group = "$groupPackage" as Object
version = "$projectVersion" as Object
}
subprojects {
apply plugin: "java"
apply plugin: "java-library"
apply plugin: "maven-publish"
apply plugin: "signing"
apply plugin: "jacoco"
apply plugin: "com.github.ben-manes.versions"
apply plugin: "com.github.hierynomus.license"
apply plugin: "com.diffplug.spotless"
// import gradle files
apply from: "../gradle/dependencies.gradle"
apply from: "../gradle/formatting.gradle"
apply from: "../gradle/repositories.gradle"
apply from: "../gradle/testing.gradle"
//
java {
sourceCompatibility = "$projectSourceCompatibility" as Object
toolchain {
languageVersion = JavaLanguageVersion.of("$projectSourceCompatibility")
}
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption("html5", true)
}
}
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"
}
}