-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
48 lines (38 loc) · 1.02 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
/*
* This file was generated by the Gradle 'init' task.
*
* This is a general purpose Gradle build.
* Learn how to create Gradle builds at https://guides.gradle.org/creating-new-gradle-builds/
*/
subprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'application'
version = '1.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
// java编译的时候缺省状态下会因为中文字符而失败
[compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'
repositories {
mavenLocal()
mavenCentral()
}
jar {
manifest {
attributes("Implementation-Title": "Gradle")
}
}
dependencies {
compile(
'com.bladejava:blade-mvc:2.0.12.ALPHA'
)
testCompile(
"junit:junit:4.12"
)
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}