-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
43 lines (32 loc) · 944 Bytes
/
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
plugins {
id 'java'
id 'org.springframework.boot' version '3.2.0-M1'
id 'io.spring.dependency-management' version '1.1.2'
id 'com.bmuschko.docker-spring-boot-application' version '9.4.0'
}
group = 'allteranius.demo'
version = '0.0.2'
java {
sourceCompatibility = '21'
}
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'com.h2database:h2'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
tasks.named('test') {
useJUnitPlatform()
}
docker {
springBootApplication {
baseImage = 'openjdk:21-jdk'
ports = [9090, 8080]
images = ['drone:0.0.2', 'drone:latest']
jvmArgs = ['-Dspring.profiles.active=production', '-Xmx2048m']
}
}