This repository has been archived by the owner on Jan 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
82 lines (67 loc) · 2.22 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
buildscript {
Properties versionProps = new Properties()
versionProps.load((InputStream) project.file("${projectDir}/versions.properties").newDataInputStream())
ext { versions = versionProps }
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.elasticsearch.gradle:build-tools:${versionProps.elasticsearch}"
classpath "gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.15.0"
}
}
configure(allprojects) { p ->
apply plugin: 'java'
apply plugin: 'idea'
group 'com.github.papahigh.phonetic'
version '1.0-SNAPSHOT'
def commonCompilerArgs =
["-Xlint:serial", "-Xlint:cast", "-Xlint:classfile", "-Xlint:dep-ann",
"-Xlint:divzero", "-Xlint:empty", "-Xlint:finally", "-Xlint:overrides",
"-Xlint:path", "-Xlint:static", "-Xlint:try", "-Xlint:-options"]
compileJava.options*.compilerArgs = commonCompilerArgs +
["-Xlint:varargs", "-Xlint:fallthrough", "-Xlint:processing", "-Xlint:rawtypes",
"-Xlint:deprecation", "-Xlint:unchecked", "-Werror"]
compileTestJava.options*.compilerArgs = commonCompilerArgs +
["-Xlint:-varargs", "-Xlint:-fallthrough", "-Xlint:-rawtypes",
"-Xlint:-deprecation", "-Xlint:-unchecked", "-Xlint:-processing"]
compileJava {
options.encoding = 'UTF-8'
}
compileTestJava {
options.encoding = 'UTF-8'
}
java {
disableAutoTargetJvm()
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
}
configure(allprojects - project(':benchmark')) {
apply plugin: "com.github.hierynomus.license"
license {
header = rootProject.file("HEADER.txt")
ext.year = Calendar.getInstance().get(Calendar.YEAR)
ext.developer = 'Nikolay Papakha'
ignoreFailures false
strictCheck true
mapping {
java = 'SLASHSTAR_STYLE'
}
excludes([
"**/*.txt",
"**/*.csv",
"**/*.properties",
"**/*.xml",
"**/*.yml"
])
}
}