forked from Next-Squad/Next-Step
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
70 lines (57 loc) · 1.83 KB
/
build.gradle
File metadata and controls
70 lines (57 loc) · 1.83 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
plugins {
id 'java'
id "org.sonarqube" version "3.4.0.2513"
id "jacoco"
}
group 'dev.kukim'
version '1.0.0'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.22.0'
// https://mvnrepository.com/artifact/com.google.guava/guava
implementation group: 'com.google.guava', name: 'guava', version: '31.0.1-jre'
// https://mvnrepository.com/artifact/ch.qos.logback/logback-classic
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.10'
// https://mvnrepository.com/artifact/org.apache.commons/commons-dbcp2
implementation group: 'org.apache.commons', name: 'commons-dbcp2', version: '2.9.0'
// https://mvnrepository.com/artifact/com.h2database/h2
implementation group: 'com.h2database', name: 'h2', version: '2.1.210'
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
task stage(dependsOn: ['build', 'clean'])
build.mustRunAfter clean
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
jar {
manifest {
attributes('Main-Class': 'dev.kukim.WebServer')
}
from {
configurations.runtimeClasspath.collect {
it.isDirectory() ? it : zipTree(it)
}
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
sonarqube {
properties {
property "sonar.projectKey", "ku-kim_Next-Step"
property "sonar.organization", "ku-kim"
property "sonar.host.url", "https://sonarcloud.io"
}
}
// https://docs.diffblue.com/knowledge-base/cli/coverage-report/#how-to-generate-a-jacoco-report-gradle
jacocoTestReport {
dependsOn test
reports {
xml.enabled true // xml 미설정
}
}