-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (56 loc) · 1.9 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
65
buildscript {
ext {
springBootVersion = '2.7.0'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.9.0'
id 'application'
id "com.github.node-gradle.node" version "3.1.1"
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group = 'com.example'
version = '1.0'
repositories {
mavenCentral()
}
node {
download = true
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-mail'
implementation 'org.mongodb:mongodb-driver-kotlin-coroutine:4.11.0'
implementation 'com.google.firebase:firebase-admin:9.2.0'
implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
implementation 'io.jsonwebtoken:jjwt-impl:0.11.5'
implementation 'io.jsonwebtoken:jjwt-jackson:0.11.5'
runtimeOnly 'org.postgresql:postgresql'
runtimeOnly 'org.webjars:webjars-locator:0.47'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
npmInstall {
onlyIf { !gradle.startParameter.taskNames.contains('bootRun') }
}
tasks.register('buildApp', NodeTask) {
dependsOn 'npmInstall'
script = project.file('node_modules/webpack/bin/webpack.js')
onlyIf { !gradle.startParameter.taskNames.contains('bootRun') }
}
processResources.dependsOn 'buildApp'
clean.delete << file('node_modules')
clean.delete << file ('src/main/resources/public/scripts/')
clean.delete << file ('src/main/resources/public/assets/')
clean.delete << file ('src/main/resources/public/fonts/')