-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
72 lines (63 loc) · 2.59 KB
/
build.gradle
File metadata and controls
72 lines (63 loc) · 2.59 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
allprojects {
apply plugin: 'idea'
group 'com.techzealot'
version '1.0-SNAPSHOT'
repositories {
mavenLocal()
mavenCentral()
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'groovy'
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
//全局依赖版本声明
ext {
hppcVersion = '0.9.0'
lombokVersion = '1.18.20'
spockReportsVersion = '2.0-groovy-3.0'
groovyVersion = '3.0.7'
}
dependencies {
compileOnly "org.projectlombok:lombok:$lombokVersion"
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
testCompileOnly "org.projectlombok:lombok:$lombokVersion"
testAnnotationProcessor "org.projectlombok:lombok:$lombokVersion"
// mandatory dependencies for using Spock
implementation "org.codehaus.groovy:groovy:$groovyVersion"
testImplementation platform("org.spockframework:spock-bom:2.0-M4-groovy-3.0")
testImplementation "org.spockframework:spock-core"
//testCompile "org.spockframework:spock-junit4" // you can remove this if your code does not rely on old JUnit 4 rules
// optional dependencies for using Spock
testImplementation "org.hamcrest:hamcrest-core:2.2" // only necessary if Hamcrest matchers are used
testImplementation "net.bytebuddy:byte-buddy:1.10.10" // allows mocking of classes (in addition to interfaces)
testImplementation "org.objenesis:objenesis:3.1"
// allows mocking of classes without default constructor (together with ByteBuddy or CGLIB)
// you can use testRuntimeClasspath if you don't want to use spock-report-specific features in your Specs
testImplementation("com.athaydes:spock-reports:$spockReportsVersion") {
transitive = false // this avoids affecting your version of Groovy/Spock
}
//spock report dependencies
implementation "org.codehaus.groovy:groovy-xml:$groovyVersion"
implementation "org.codehaus.groovy:groovy-json:$groovyVersion"
implementation "org.codehaus.groovy:groovy-templates:$groovyVersion"
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-logging', version: '2.4.6'
implementation group: 'commons-io', name: 'commons-io', version: '2.10.0'
}
test {
useJUnitPlatform()
}
task cleanLogs(type: Delete) {
delete 'logs'
}
}