/
build.gradle
37 lines (32 loc) · 1.06 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
plugins {
id 'java'
id 'scala'
id 'idea'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '6.0.0' // '5.2.0'
}
compileJava.options.encoding = 'UTF-8' // ''ISO-8859-1'
compileJava.options.compilerArgs += ["-Xlint:unchecked"]
compileJava.options.compilerArgs += ["-Xlint:deprecation"]
group = 'job-io'
version = '0.1'
tasks.withType(JavaCompile) {
if (JavaVersion.current() != project.targetCompatibility) {
// throw new GradleException(
println "+------ Warning: Java version (JAVA_HOME) possible mismatch -----\n" +
"| In task $name ($project.name), the java version used ${JavaVersion.current()} is not the expected version ${project.targetCompatibility}.\n" +
"+----------------------------------------------------------------"
// )
} else {
println ">> From task $name (in $project.name), using java version ${JavaVersion.current()} "
}
options.encoding = 'UTF-8'
}
dependencies {
implementation project(':common-utils')
implementation project(':core')
}
repositories {
mavenCentral()
mavenLocal()
}