-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
43 lines (33 loc) · 1.08 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
group = 'org.myspringframework'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.eclipse.jetty:jetty-servlet:11.0.24'
implementation 'org.eclipse.jetty:jetty-server:11.0.24'
implementation 'org.eclipse.jetty:jetty-util:11.0.24'
implementation 'ch.qos.logback:logback-classic:1.4.12'
implementation 'net.bytebuddy:byte-buddy:1.15.10'
implementation 'jakarta.servlet:jakarta.servlet-api:6.1.0'
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
tasks.withType(JavaCompile).configureEach {
options.compilerArgs << '-parameters' // 컴파일러에 -parameters 옵션 추가
}
shadowJar {
archiveBaseName.set('myspringboot')
archiveVersion.set('1.0-SNAPSHOT')
archiveClassifier.set('all') // 모든 의존성을 포함한 JAR 생성
}
tasks.build {
dependsOn shadowJar // build 태스크가 shadowJar를 포함하도록 설정
}
test {
useJUnitPlatform()
}