-
Notifications
You must be signed in to change notification settings - Fork 122
/
build.gradle.kts
78 lines (68 loc) · 2.01 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
plugins {
id("java-library")
id("maven-publish")
id("signing")
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
}
group = "com.skadistats"
version = "3.1.1"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
withSourcesJar()
withJavadocJar()
}
repositories {
mavenCentral()
}
dependencies {
api("com.skadistats:clarity-protobuf:[5.3,6.0)")
api("org.xerial.snappy:snappy-java:1.1.10.4")
api("org.slf4j:slf4j-api:2.0.7")
api("org.atteo.classindex:classindex:3.13")
annotationProcessor("org.atteo.classindex:classindex:3.13")
testImplementation("org.testng:testng:7.8.0")
}
tasks.named<Test>("test") {
useTestNG()
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
pom {
name.set(rootProject.name)
description.set("Clarity is an open source replay parser for Dota 2, CSGO, CS2 and Deadlock written in Java.")
url.set("https://github.com/skadistats/clarity")
licenses {
license {
name.set("BSD style license")
url.set("https://github.com/skadistats/clarity/blob/master/LICENSE")
}
}
developers {
developer {
id.set("spheenik")
name.set("Martin Schrodt")
email.set("github@martin.schrodt.org")
}
}
scm {
connection.set("scm:git:git@github.com:skadistats/clarity.git")
developerConnection.set("scm:git:git@github.com:skadistats/clarity.git")
url.set("https://github.com/skadistats/clarity")
}
}
}
}
}
nexusPublishing {
this.repositories {
sonatype()
}
}
signing {
useGpgCmd()
sign(publishing.publications["mavenJava"])
}