-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
55 lines (46 loc) · 1.15 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
plugins {
id 'java-library'
id 'maven-publish'
alias(libs.plugins.lombok)
}
// > gradle clean test publishToMavenLocal
// https://docs.gradle.org/current/userguide/publishing_maven.html
publishing {
publications {
maven(MavenPublication) {
groupId = 'org.fp024.util'
artifactId = "${project.name}"
version = '2.0.0-SNAPSHOT'
from components.java
}
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of("${javaVersion}")
}
}
compileJava.options.encoding = "${projectEncoding}"
compileTestJava.options.encoding = "${projectEncoding}"
repositories {
mavenCentral()
}
dependencies {
implementation (libs.spring.vault.core.v2)
testImplementation (libs.log4j.slf4j2.impl)
testImplementation (libs.junit.jupiter)
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
testImplementation (libs.assertj.core)
}
tasks.named('test') {
// Use JUnit Platform for unit tests.
/*
터미널에서 테스트 클래스 실행 예시
> gradlew test --tests *AddUserMainTest.testAddUser
*/
useJUnitPlatform()
testLogging {
outputs.upToDateWhen { false }
showStandardStreams = true
}
}