-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (56 loc) · 2.01 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.6.3'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'groovy'
id 'org.springframework.experimental.aot' version '0.11.2'
//id 'org.springdocspringdoc-openapi-maven-plugin' version '0.2'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
repositories {
maven { url 'https://repo.spring.io/release' }
mavenCentral()
}
ext {
set('groovy.version', "3.0.6")
set('springBootAdminVersion', "2.6.2")
set('openAPIVersion', "1.6.7")
set('serverPort', "9090")
}
dependencies {
//implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-data-r2dbc'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.codehaus.groovy:groovy'
implementation 'commons-cli:commons-cli:1.5.0'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'de.codecentric:spring-boot-admin-starter-server'
implementation 'org.springframework.experimental:spring-native:0.11.2'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'io.r2dbc:r2dbc-h2'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'io.projectreactor:reactor-test'
implementation 'javax.json:javax.json-api'
implementation 'org.apache.johnzon:johnzon-core'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr353'
implementation "org.springdoc:springdoc-openapi-ui:${openAPIVersion}"
}
dependencyManagement {
imports {
mavenBom "de.codecentric:spring-boot-admin-dependencies:${springBootAdminVersion}"
}
}
tasks.named('test') {
useJUnitPlatform()
}
tasks.named('bootBuildImage') {
builder = 'paketobuildpacks/builder:tiny'
environment = ['BP_NATIVE_IMAGE': 'true']
}
/*tasks.named('generateOpenApi') {
apiDocsUrl = "http://localhost:${serverPort}/v3/api-docs"
outputFileName = 'openapi.json'
outputDir = "${project.build.directory}"
}*/