-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
30 lines (27 loc) · 973 Bytes
/
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
plugins {
id 'org.springframework.boot' version '1.5.9.RELEASE'
}
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.testng', name: 'testng', version: '6.11'
compile('org.springframework.boot:spring-boot-starter-aop')
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework:spring-aspects')
compile('com.h2database:h2')
compile group: 'org.springframework', name: 'spring-agent', version: '2.5.6'
testCompile('org.springframework.boot:spring-boot-starter-test')
}
test {
useTestNG() {
useDefaultListeners = true
testName "UnitTest"
suiteName "UnitTestSuite"
}
File springAgent = configurations.compile.filter { f -> f.name.matches("spring-agent.*\\.jar") }.iterator().next();
if (!springAgent.exists())
throw new Exception("Missing spring-agent.jar");
jvmArgs += "-javaagent:" + springAgent.absolutePath;
}