-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
59 lines (49 loc) · 1.47 KB
/
build.gradle
File metadata and controls
59 lines (49 loc) · 1.47 KB
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 'org.springframework.boot' version '4.0.3'
id 'io.spring.dependency-management' version '1.1.7'
id 'java'
id 'com.github.node-gradle.node' version '7.1.0'
}
group = 'io.bootify'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
bootRun {
environment SPRING_PROFILES_ACTIVE: environment.SPRING_PROFILES_ACTIVE ?: 'local'
}
repositories {
mavenCentral()
}
dependencies {
implementation('org.springframework.boot:spring-boot-starter-web')
implementation('org.springframework.boot:spring-boot-starter-validation')
implementation('org.springframework.boot:spring-boot-starter-data-jpa')
implementation('org.hibernate.orm:hibernate-community-dialects')
runtimeOnly('org.hsqldb:hsqldb')
implementation('io.github.wimdeblauwe:error-handling-spring-boot-starter:5.1.0')
testImplementation('org.springframework.boot:spring-boot-starter-test')
}
node {
download.set(true)
version.set('24.13.1')
}
tasks.register('npmRunBuild', NpmTask) {
args = ['run', 'build']
dependsOn npmInstall
inputs.files(fileTree('node_modules'))
inputs.files(fileTree('src/main/webapp'))
inputs.file('.env')
inputs.file('package.json')
inputs.file('tsconfig.json')
inputs.file('webpack.config.js')
outputs.dir(layout.buildDirectory.dir('resources/main/static'))
}
processResources {
dependsOn npmRunBuild
}
tasks.withType(Test) {
useJUnitPlatform()
}