-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
61 lines (52 loc) · 1.44 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
buildscript {
repositories {
mavenLocal()
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
dependencies {
classpath("de.undercouch:gradle-download-task:5.5.0")
// 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: "jvm-test-suite"
apply plugin: "idea"
apply plugin: "eclipse"
apply plugin: "jacoco"
defaultTasks 'clean', 'test', 'build'
description = 'Gradle configuration for Solr Lucene Analyzer Sudachi'
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')
}
}
java {
toolchain {
// https://issues.apache.org/jira/browse/LUCENE-8738 Min version is JDK 11
languageVersion = JavaLanguageVersion.of(11)
}
}
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://maven.restlet.talend.com"
}
}
apply from: "$rootDir/conf/gradle/dependencies.gradle"
apply from: "$rootDir/conf/gradle/tests.gradle"
apply from: "$rootDir/conf/gradle/sudachi.gradle"
apply from: "$rootDir/conf/gradle/spotless.gradle"
apply from: "$rootDir/conf/gradle/artifacts.gradle"