-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
85 lines (73 loc) · 2.43 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
plugins {
id 'java'
id 'org.springframework.boot' version '3.0.5'
id 'io.spring.dependency-management' version '1.1.0'
id 'com.github.node-gradle.node' version '3.5.1'
}
group = 'lv.bootcamp'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
node {
version = '18.14.2'
download = true
workDir = file("${project.projectDir}/src/main/frontend/nodejs")
npmWorkDir = file("${project.projectDir}/src/main/frontend/npm")
nodeModulesDir = file("${project.projectDir}/src/main/frontend")
}
task npmInstallDependencies(type: NpmTask) {
dependsOn 'npmSetup'
execOverrides {
it.ignoreExitValue = true
it.workingDir = 'src/main/frontend'
}
args = ['install']
}
task npmBuild(type: NpmTask) {
dependsOn 'npmInstallDependencies'
execOverrides {
it.workingDir = 'src/main/frontend'
}
args = ['run', 'build']
}
task copyFrontendToBuild(type: Copy) {
dependsOn 'npmBuild'
from "$projectDir/src/main/frontend/build/"
into "$buildDir/resources/main/static"
}
processResources {
dependsOn 'copyFrontendToBuild'
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'aws.sdk.kotlin:aws-endpoint:0.16.0'
implementation 'software.aws.rds:aws-mysql-jdbc:1.1.4'
testImplementation 'junit:junit:4.13.1'
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'com.mysql:mysql-connector-j'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'com.amazonaws:aws-java-sdk-s3:1.12.429'
implementation platform('com.amazonaws:aws-java-sdk-bom:1.12.429')
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-validation', version: '3.0.5'
implementation group: 'log4j', name: 'log4j', version: '1.2.17'
//JWT
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation group: 'io.jsonwebtoken', name: 'jjwt-api', version: '0.11.5'
runtimeOnly group: 'io.jsonwebtoken', name: 'jjwt-impl', version: '0.11.5'
runtimeOnly group: 'io.jsonwebtoken', name: 'jjwt-jackson', version: '0.11.5'
implementation 'org.springframework.security:spring-security-test'
//docs
implementation group: 'org.springdoc', name: 'springdoc-openapi-starter-webmvc-ui', version: '2.1.0'
}
tasks.named('test') {
useJUnitPlatform()
}