-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
50 lines (39 loc) · 1.14 KB
/
build.gradle
File metadata and controls
50 lines (39 loc) · 1.14 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
49
50
plugins {
id 'java'
id 'application'
id 'io.freefair.aspectj.post-compile-weaving' version '5.3.0'
id 'io.freefair.lombok' version '5.3.0'
}
group 'com.ansonliao'
version '1.0-SNAPSHOT'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
mainClassName = 'example.MyApp'
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.aspectj', name: 'aspectjrt', version: '1.9.6'
testCompile group: 'org.testng', name: 'testng', version: '7.4.0'
}
test {
useTestNG() {
reports.html.enabled = true
def dir = System.getProperty('testngReportOutput')
outputDirectory = dir ? file(dir) : file('build/testng-output')
reports.html.setDestination(outputDirectory)
}
testLogging {
events 'PASSED', 'FAILED', 'SKIPPED'
showStandardStreams = true
}
}
task runMyTestMainApp(type: JavaExec) {
classpath(sourceSets.main.runtimeClasspath, sourceSets.test.runtimeClasspath)
main = 'example.MyTestMainApp'
args 'hello', 'world'
}
aspectj {
version = '1.9.6'
}