-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
59 lines (44 loc) · 1.67 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
plugins {
id 'application'
id 'groovy'
}
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
configurations {
springBom
annotationProcessor.extendsFrom springBom
compileOnly.extendsFrom springBom
implementation.extendsFrom springBom
testBase.extendsFrom springBom
testImplementation.extendsFrom testBase, implementation
testAnnotationProcessor.extendsFrom annotationProcessor
testCompileOnly.extendsFrom testAnnotationProcessor
}
dependencies {
springBom enforcedPlatform("org.springframework.boot:spring-boot-dependencies:$springBootVersion")
compileOnly group: 'org.projectlombok', name: 'lombok'
annotationProcessor group: 'org.projectlombok', name: 'lombok'
annotationProcessor group: 'org.springframework', name: 'spring-context-indexer'
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web'
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-oauth2-resource-server'
testBase enforcedPlatform(group: 'org.spockframework', name: 'spock-bom', version: spockVersion)
testBase group: 'org.spockframework', name: 'spock-core'
testBase group: 'org.codehaus.groovy', name: 'groovy-json'
testImplementation group: 'com.github.tomakehurst', name: 'wiremock-jre8', version: wiremockVersion
}
application {
mainClass.set('com.github.bademux.spring-oauth2-resourceserver.Application')
}
compileJava {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
run {
enableAssertions = true
args '--spring.profiles.active=local-dev' //use application-local-dev.properties
}
test {
useJUnitPlatform()
}