-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle
More file actions
47 lines (38 loc) · 1.17 KB
/
build.gradle
File metadata and controls
47 lines (38 loc) · 1.17 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
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '8.0.0'
}
group = 'org.example'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
application {
mainClass = 'com.infinityiterators.bookwms.EntryPoint'
}
dependencies {
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.assertj:assertj-core:3.25.3'
implementation 'mysql:mysql-connector-java:8.0.28'
implementation 'org.mybatis:mybatis:3.5.16'
compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
testCompileOnly 'org.projectlombok:lombok:1.18.30'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.30'
}
test {
useJUnitPlatform()
}
jar {
finalizedBy shadowJar
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes(
'Main-Class': 'com.infinityiterators.bookwms.EntryPoint'
)
}
// from configurations.runtime.collect { zipTree(it) }
from configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect() { zipTree(it)}
}