-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
95 lines (79 loc) · 2.58 KB
/
build.gradle
File metadata and controls
95 lines (79 loc) · 2.58 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
plugins {
id 'java'
id 'org.springframework.boot' version '3.1.2'
id 'io.spring.dependency-management' version '1.1.2'
}
group = '42nomad'
version = '0.0.1-SNAPSHOT'
task copyYml(type: Copy) {
from './backend_private'
include '*.yml'
into './src/main/resources'
}
task copyJwt(type: Copy) {
from './backend_private/jwt'
into './src/main/java/nomad/backend/global/jwt'
// into '/home/ec2-user/apps/backend/src/main/java/nomad/backend/global/jwt'
// ec2 상대경로 확인 필요
}
task copyConfig(type: Copy) {
from './backend_private/config'
into './src/main/java/nomad/backend/global/config'
// into '/home/ec2-user/apps/backend/src/main/java/nomad/backend/global/config'
}
task copyAdmin(type: Copy) {
from './backend_private'
include 'AdminApiController.java'
into './src/main/java/nomad/backend/admin'
// into '/home/ec2-user/apps/backend/src/main/java/nomad/backend/admin'
}
task customBuild(dependsOn: [ copyYml,copyJwt, copyConfig, copyAdmin], type: GradleBuild) {
tasks = ['build']
}
// 해당 명령어가 제대로 작동을 안함.
// gradle에서 직접 BEfore build를 설정해주면 되는데 해결책을 마련해야 할 것 같음
//tasks.build.dependsOn(copyYml, copyJwt, copyConfig, copyAdmin)
java {
sourceCompatibility = '17'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
bootJar{
archivesBaseName = 'backend'
archiveFileName = 'backend.jar'
archiveVersion = "0.0.0"
}
jar {
enabled = false
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation group: 'org.mariadb.jdbc', name: 'mariadb-java-client', version: '2.4.1'
implementation 'com.auth0:java-jwt:4.4.0'
implementation 'org.springframework.boot:spring-boot-starter-mail'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
implementation "com.slack.api:bolt:1.18.0"
implementation "com.slack.api:bolt-servlet:1.18.0"
implementation "com.slack.api:bolt-jetty:1.18.0"
implementation 'org.jsoup:jsoup:1.16.1'
}
test {
exclude '**/*'
}
tasks.named('test') {
useJUnitPlatform()
}