-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
55 lines (46 loc) · 1.24 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
@file:Suppress("SpellCheckingInspection")
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.9.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
`maven-publish`
}
group = "cn.taskeren"
version = "1.0.0"
repositories {
mavenCentral()
}
dependencies {
api("com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.13.4")
api("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.4")
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
}
tasks.jar {
manifest {
attributes(
"Main-Class" to "cn.taskeren.explode3.parser.cli.MainKt"
)
}
}
publishing {
repositories {
maven {
name = "GithubPackages"
url = uri("https://maven.pkg.github.com/Taskeren/explode3-chart-parser")
credentials {
username = project.findProperty("gpr.username")?.toString() ?: System.getenv("GPR_USERNAME")
password = project.findProperty("gpr.password")?.toString() ?: System.getenv("GPR_PASSWORD")
}
}
}
publications {
register<MavenPublication>("gpr") {
from(components["java"])
}
}
}