-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle.kts
77 lines (67 loc) · 2.03 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
plugins {
id("java-library")
id("maven-publish")
id("signing")
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
}
group = "com.skadistats"
version = "5.4"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
withSourcesJar()
withJavadocJar()
}
// TODO: this still does not suppress the messages, but seems to ignore errors on publishing
tasks.withType<Javadoc> {
options {
this as StandardJavadocDocletOptions
addStringOption("Xdoclint:all,-missing")
}
}
repositories {
mavenCentral()
}
dependencies {
api("it.unimi.dsi:fastutil-core:8.5.12")
}
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 and CSGO 1 and 2 written in Java. This JAR contains the protobuf classes for clarity.")
url.set("https://github.com/skadistats/clarity-protobuf")
licenses {
license {
name.set("BSD style license")
url.set("https://github.com/skadistats/clarity-protobuf/blob/master/LICENSE")
}
}
developers {
developer {
id.set("spheenik")
name.set("Martin Schrodt")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:[email protected]:skadistats/clarity-protobuf.git")
developerConnection.set("scm:git:[email protected]:skadistats/clarity-protobuf.git")
url.set("https://github.com/skadistats/clarity-protobuf")
}
}
}
}
}
nexusPublishing {
this.repositories {
sonatype()
}
}
signing {
useGpgCmd()
sign(publishing.publications["mavenJava"])
}