-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
104 lines (84 loc) · 3.07 KB
/
build.gradle
File metadata and controls
104 lines (84 loc) · 3.07 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
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
buildscript { //쿼리DSL 추가
ext {
queryDslVersion="5.0.0"
}
}
plugins {
id 'java'
id 'war'
id 'org.springframework.boot' version '2.7.17'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
}
group = 'com.kosta'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '11'
}
springBoot {
mainClass = 'com.kosta.readdam.MyAppApplication'
}
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/snapshot' }
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'
implementation 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
implementation "org.apache.tomcat.embed:tomcat-embed-jasper"
implementation "jakarta.servlet:jakarta.servlet-api"
implementation "jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api"
implementation "org.glassfish.web:jakarta.servlet.jsp.jstl"
implementation 'org.springframework.boot:spring-boot-starter-validation'
// https://mvnrepository.com/artifact/com.auth0/java-jwt
implementation("com.auth0:java-jwt:3.19.2")
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-oauth2-client
implementation("org.springframework.boot:spring-boot-starter-oauth2-client")
//쿼리DSL 추가
implementation "com.querydsl:querydsl-jpa:${queryDslVersion}"
implementation "com.querydsl:querydsl-apt:${queryDslVersion}:jpa"
annotationProcessor "jakarta.annotation:jakarta.annotation-api"
annotationProcessor "jakarta.persistence:jakarta.persistence-api"
//파이어베이스 추가
implementation 'com.google.firebase:firebase-admin:9.2.0'
//크롤링용 jsoup
implementation 'org.jsoup:jsoup:1.17.2'
}
war {
version = "1.0"
}
tasks.named('test') {
useJUnitPlatform()
}
//쿼리DSL 추가 빌드시작
def querydslDir = "$buildDir/generated/querydsl"
sourceSets {
main.java.srcDir querydslDir
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
querydsl.extendsFrom compileClasspath
}
tasks.register("compileQuerydsl", JavaCompile) {
group = "build"
description = "Compile QueryDSL Q-type sources"
classpath = sourceSets.main.runtimeClasspath
source = sourceSets.main.allJava
destinationDirectory.set(file(querydslDir))
options.annotationProcessorGeneratedSourcesDirectory = file(querydslDir)
options.annotationProcessorPath = configurations.querydsl
}
//쿼리DSL 추가 빌드끝