-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (50 loc) · 1.26 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
plugins {
id 'org.springframework.boot' version '3.0.1'
id 'io.spring.dependency-management' version '1.1.0' apply false
id 'org.graalvm.buildtools.native' version '0.9.18'
// id 'java'
}
allprojects {
group = 'com.example'
version = '0.0.1-SNAPSHOT'
repositories {
mavenLocal()
mavenCentral()
}
}
subprojects {
ext {
set('springCloudAzureVersion', "5.0.0")
set('springCloudVersion', "2022.0.0")
}
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'org.graalvm.buildtools.native'
apply plugin: 'java'
sourceCompatibility = '17'
dependencyManagement {
imports {
mavenBom "com.azure.spring:spring-cloud-azure-dependencies:${springCloudAzureVersion}"
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
tasks.named('test') {
useJUnitPlatform()
}
tasks.named('processAot') {
systemProperty "debug", "false"
}
tasks.named('nativeCompile') {
}
graalvmNative {
binaries {
main {
buildArgs('-Djava.security.properties=' + file("$rootDir/custom.security").absolutePath)
}
}
}
bootRun {
systemProperty("java.security.properties", file("$rootDir/custom.security").absolutePath)
systemProperty('spring.aot.enabled', 'true')
}
}