-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (52 loc) · 1.75 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
plugins {
id 'org.springframework.boot' version '2.1.2.RELEASE'
id 'java'
//id 'net.ltgt.apt' version '0.10'
}
apply plugin: 'io.spring.dependency-management'
group = 'rja.tesco'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
repositories {
mavenCentral()
maven { url 'https://projectlombok.org/edge-releases' }
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-webflux'
//implementation('org.projectlombok:lombok:1.18.6')
testImplementation 'org.springframework.boot:spring-boot-starter-test'
//Comment out the above and uncomment below to get Gradle builds to work
// testImplementation 'org.springframework:spring-test'
// testImplementation 'org.springframework.boot:spring-boot-test'
// testImplementation 'org.springframework.boot:spring-boot-test-autoconfigure'
// testImplementation 'io.projectreactor:reactor-test'
// testImplementation 'junit:junit:4.12'
// testImplementation 'org.assertj:assertj-core'
// testImplementation 'org.mockito:mockito-core'
compileOnly "org.projectlombok:lombok:edge-SNAPSHOT"
testCompileOnly "org.projectlombok:lombok:edge-SNAPSHOT"
annotationProcessor "org.projectlombok:lombok:edge-SNAPSHOT"
testAnnotationProcessor "org.projectlombok:lombok:edge-SNAPSHOT"
}
ext.moduleName = 'rja.tesco.price.main'
compileJava {
inputs.property("moduleName", moduleName)
doFirst {
options.compilerArgs = [
'--module-path', classpath.asPath,
]
classpath = files()
}
}
compileTestJava {
inputs.property("moduleName", moduleName)
doFirst {
options.compilerArgs = [
'--module-path', classpath.asPath,
'--add-modules', 'junit',
'--add-reads', "$moduleName=junit",
'--patch-module', "$moduleName=" + files(sourceSets.test.java.srcDirs).asPath,
]
classpath = files()
}
}