-
Notifications
You must be signed in to change notification settings - Fork 104
/
Copy pathbuild.gradle
60 lines (50 loc) · 1.53 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
project.ext.isReleaseVersion = !"${stubbyProjectVersion}".endsWith("SNAPSHOT")
buildscript {
repositories {
mavenLocal()
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
dependencies {
// From v6.14.0 (inc.) Java 8 support is dropped
classpath("com.diffplug.spotless:spotless-plugin-gradle:6.13.0")
}
}
apply plugin: "java-library"
apply plugin: "maven-publish"
apply plugin: "signing"
apply plugin: "idea"
apply plugin: "eclipse"
apply plugin: "jacoco"
apply plugin: "jvm-test-suite"
defaultTasks 'clean', 'test', 'integrationTest', 'functionalTest', 'build'
description = 'Gradle configuration for stubby4j'
compileJava {
options.encoding = 'UTF-8'
options.compilerArgs << '-parameters' << '-Xlint:deprecation'
}
compileTestJava {
options.encoding = 'UTF-8'
}
javadoc {
if (JavaVersion.current().isJava8Compatible()) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
repositories {
mavenLocal()
mavenCentral()
}
apply from: "$rootDir/conf/gradle/dependencies.gradle"
apply from: "$rootDir/conf/gradle/ide.gradle"
apply from: "$rootDir/conf/gradle/tests.gradle"
apply from: "$rootDir/conf/gradle/jacoco.gradle"
apply from: "$rootDir/conf/gradle/artifacts.gradle"
apply from: "$rootDir/conf/gradle/sonatype.gradle"
// Disabling the Spotless plugin on Ci due to its v6.13.0 incompatability with JDK 21
if (!project.hasProperty("ciRun")) {
apply from: "$rootDir/conf/gradle/spotless.gradle"
}