-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
77 lines (70 loc) · 2 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
77 lines (70 loc) · 2 KB
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
import com.vanniktech.maven.publish.JavaLibrary
import com.vanniktech.maven.publish.JavadocJar
plugins {
`java-library`
alias(libs.plugins.maven.publish)
signing
}
group = "me.moros"
version = "4.0.0"
java {
toolchain.languageVersion = JavaLanguageVersion.of(21)
}
repositories {
mavenCentral()
}
dependencies {
api(libs.jspecify)
compileOnly(libs.hikari)
}
tasks {
withType<JavaCompile> {
options.compilerArgs.addAll(listOf("-Xlint:unchecked", "-Xlint:deprecation"))
options.encoding = "UTF-8"
}
withType<AbstractArchiveTask> {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
}
jar {
val licenseName = "LICENSE_${rootProject.name.uppercase()}"
from("$rootDir/LICENSE") {
into("META-INF")
rename { licenseName }
}
}
}
mavenPublishing {
pom {
name = project.name
description = "A utility library to easily build and wrap HikariDataSources"
url = "https://github.com/PrimordialMoros/storage"
inceptionYear = "2020"
licenses {
license {
name = "The GNU Affero General Public License, Version 3.0"
url = "https://www.gnu.org/licenses/agpl-3.0.txt"
distribution = "repo"
}
}
developers {
developer {
id = "moros"
name = "Moros"
url = "https://github.com/PrimordialMoros"
}
}
scm {
connection = "scm:git:https://github.com/PrimordialMoros/storage.git"
developerConnection = "scm:git:ssh://git@github.com/PrimordialMoros/storage.git"
url = "https://github.com/PrimordialMoros/storage"
}
issueManagement {
system = "Github"
url = "https://github.com/PrimordialMoros/storage/issues"
}
}
configure(JavaLibrary(JavadocJar.Javadoc(), true))
publishToMavenCentral()
signAllPublications()
}