-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy path_build.gradle_
116 lines (93 loc) · 3.93 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/*
step 1 : Tasks - application - npm-Install ( node, npm / needs to install using before. )
step 2 : Tasks - application - bootRun or any type of running u want.
*/
plugins {
id 'org.springframework.boot' version '2.4.5'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id "com.moowork.node" version "1.3.1" // npm plugin
}
repositories {
mavenCentral()
gradlePluginPortal() // https://plugins.gradle.org/m2/
}
group = 'com.studyolle'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = JavaVersion.VERSION_11
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa' // chk
implementation 'org.springframework.boot:spring-boot-starter-validation' // chk, req
implementation 'org.springframework.boot:spring-boot-starter-data-rest' //
implementation 'org.springframework.boot:spring-boot-starter-mail' // chk
implementation 'org.springframework.boot:spring-boot-starter-web' // chk
// implementation 'org.springframework.boot:spring-boot-starter-hateoas' //
implementation 'org.springframework.boot:spring-boot-starter-security' // chk∂
implementation 'org.springframework.security:spring-security-test' // chk , req for testing.
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' // chk
implementation group: 'org.thymeleaf.extras', name: 'thymeleaf-extras-springsecurity5', version: '3.0.4.RELEASE'
// chk, req for spring 5 security
implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:2.5.3' // chk, req
// lombok
compile group: 'org.projectlombok', name: 'lombok'
annotationProcessor 'org.projectlombok:lombok' // lombok
implementation group: 'org.modelmapper', name: 'modelmapper', version: '2.4.2'
// db
developmentOnly 'org.springframework.boot:spring-boot-devtools' // devtools 이용시 h2 console 이용
runtimeOnly 'com.h2database:h2'
runtimeOnly 'mysql:mysql-connector-java'
runtimeOnly 'org.postgresql:postgresql'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
// query dsl
implementation 'com.querydsl:querydsl-core:4.4.0'
implementation 'com.querydsl:querydsl-jpa:4.4.0'
annotationProcessor 'com.querydsl:querydsl-apt:4.1.4:jpa' // querydsl JPAAnnotationProcessor
// querydsl JPAAnnotationProcessor을 사용
annotationProcessor 'jakarta.persistence:jakarta.persistence-api'
annotationProcessor 'jakarta.annotation:jakarta.annotation-api'
// npm
implementation "com.moowork.gradle:gradle-node-plugin:1.3.1"
// test
testImplementation 'org.springframework.boot:spring-boot-starter-test' // chk
testCompile group: 'org.projectlombok', name: 'lombok'
testAnnotationProcessor 'org.projectlombok:lombok' // lombok
testImplementation group: 'org.testcontainers', name: 'postgresql', version: '1.15.3'
testImplementation group: 'com.tngtech.archunit', name: 'archunit-junit5-api', version: '0.18.0'
testImplementation group: 'org.testcontainers', name: 'junit-jupiter', version: '1.15.3'
}
def generated = 'generated'
sourceSets {
main {
java {
srcDirs += generated
//exclude '**/uncompilable/**'
}
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
apply plugin: "com.moowork.node"
// npm using on gradle project
tasks.register("npm-Install") {
group = "application"
description = "Installs dependencies from package.json"
tasks.appNpmInstall.exec();
}
task appNpmInstall(type: NpmTask) {
// src/main/resources/static
description = "Installs dependencies from package.json"
workingDir = file("/src/main/resources/static")
args = ['install']
}
test {
useJUnitPlatform()
}
clean.doLast {
file(generated).deleteDir()
}