-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
48 lines (38 loc) · 1.31 KB
/
build.gradle
File metadata and controls
48 lines (38 loc) · 1.31 KB
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 generated file contains a commented-out sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* user guide available at http://gradle.org/docs/2.0/userguide/tutorial_java_projects.html
*/
allprojects {
apply plugin: 'checkstyle'
checkstyle {
configFile = rootProject.file('config/checkstyle/checkstyle.xml')
}
}
subprojects {
apply plugin: 'java'
version = '0.1'
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
tasks.withType(JavaCompile) { task ->
task.options.encoding = 'UTF-8'
}
tasks.withType(Javadoc) { task ->
task.options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
}
dependencies {
compile 'io.netty:netty-all:5.0.0.Alpha1'
compile 'com.google.code.gson:gson:2.2.4'
// Declare the dependency for your favourite test framework you want to use in your tests.
// TestNG is also supported by the Gradle Test task. Just change the
// testCompile dependency to testCompile 'org.testng:testng:6.8.1' and add
// 'test.useTestNG()' to your build script.
// testCompile "junit:junit:4.11"
}
jar {
manifest.attributes provider: 'gradle'
}
}