-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
113 lines (103 loc) · 4.66 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
plugins {
id 'org.springframework.boot' version '2.7.1'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
group = 'com.narang'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
// https://mvnrepository.com/artifact/com.google.code.findbugs/jsr305
implementation 'com.google.code.findbugs:jsr305:3.0.2'
// warning error 해결 방안 https://simple-ing.tistory.com/48 참조
// https://mvnrepository.com/artifact/org.glassfish.jaxb/jaxb-runtime
// java 11 버전 이상은 에러 발생하기 때문에 추가
implementation group: 'org.glassfish.jaxb', name: 'jaxb-runtime', version: '4.0.0'
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
implementation 'org.springframework.boot:spring-boot-starter-security'
// https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-api
implementation group: 'io.jsonwebtoken', name: 'jjwt-api', version: '0.11.5'
// https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-impl
runtimeOnly group: 'io.jsonwebtoken', name: 'jjwt-impl', version: '0.11.5'
// https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-jackson
runtimeOnly group: 'io.jsonwebtoken', name: 'jjwt-jackson', version: '0.11.5'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.13.3'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
// https://mvnrepository.com/artifact/commons-io/commons-io
implementation group: 'commons-io', name: 'commons-io', version: '2.11.0'
// https://mvnrepository.com/artifact/commons-fileupload/commons-fileupload
implementation group: 'commons-fileupload', name: 'commons-fileupload', version: '1.4'
// LocalDateTime
// https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-jsr310
implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: '2.13.3'
}
//def frontendDir = "$projectDir/src/main/frontend"
//
//sourceSets {
// main {
// resources {
// srcDirs = ["$projectDir/src/main/resources"]
// }
// }
//}
//
//processResources { dependsOn "copyReactBuildFiles" }
//
//task installReact(type: Exec) {
// workingDir "$frontendDir"
// inputs.dir "$frontendDir"
// group = BasePlugin.BUILD_GROUP
// if (System.getProperty('os.name').toLowerCase(Locale.ROOT).contains('windows')) {
// commandLine "npm.cmd", "audit", "fix"
// commandLine 'npm.cmd', 'install'
// } else {
// commandLine "npm", "audit", "fix" commandLine 'npm', 'install'
// }
//}
//
//task buildReact(type: Exec) {
// dependsOn "installReact"
// workingDir "$frontendDir"
// inputs.dir "$frontendDir"
// group = BasePlugin.BUILD_GROUP
// if (System.getProperty('os.name').toLowerCase(Locale.ROOT).contains('windows')) {
// commandLine "npm.cmd", "run-script", "build"
// } else {
// commandLine "npm", "run-script", "build"
// }
//}
//
//task copyReactBuildFiles(type: Copy) {
// dependsOn "buildReact"
// from "$frontendDir/build"
// into "$projectDir/src/main/resources/static"
//}
tasks.named('test') {
useJUnitPlatform()
}
// https://perfectacle.github.io/2017/09/23/Spring-boot-gradle-profile/
// https://stackoverflow.com/questions/40792069/conditional-logic-in-gradle-build-to-only-execute-certain-code-when-a-specific-t
// https://blog.naver.com/PostView.nhn?blogId=sharplee7&logNo=221413629068
// https://title-developer.tistory.com/11
// https://stackoverflow.com/questions/66214555/gradle-sync-failed-removecontententry-removed-content-entry-url-still-ex
// https://youtrack.jetbrains.com/issue/IDEA-279183
// gradle annotation 지운 파일이 존재한다고 에러 날 때 .idea 파일 날려버리고 다시 인텔리를 켠다.
// 그래도 안되면 C:\Users\user-pc\AppData\Local\JetBrains\IdeaIE2022.1\external_build_system 폴더를 날린다.
// 다시 켠다.
// https://jjunii486.tistory.com/219 프로퍼티 설정
// 시간 검색 mongodb https://stackoverflow.com/questions/10311061/spring-data-mongodb-date-between