-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
60 lines (52 loc) · 1.42 KB
/
build.gradle.kts
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
plugins {
java
jacoco
`maven-publish`
}
group = "com.duncpro"
version = "1.0-SNAPSHOT-13"
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains:annotations:22.0.0")
implementation("net.jcip:jcip-annotations:1.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
tasks.test {
useJUnitPlatform()
}
val jacocoTestReport by tasks.getting(JacocoReport::class) {
classDirectories.setFrom(sourceSets.main.get().output)
sourceDirectories.setFrom(sourceSets.main.get().allSource.srcDirs)
executionData.setFrom(fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec"))
reports {
xml.isEnabled = true
html.isEnabled = false
}
sourceSets {
add(main.get())
}
}
tasks.check {
finalizedBy(jacocoTestReport)
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
repositories {
maven {
url = uri("https://duncpro-personal-618824625980.d.codeartifact.us-east-1.amazonaws.com/maven/duncpro-personal/")
credentials {
username = "aws"
password = System.getenv("CODEARTIFACT_AUTH_TOKEN")
}
}
}
}
java.sourceCompatibility = JavaVersion.VERSION_11
java.targetCompatibility = JavaVersion.VERSION_11