-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
86 lines (80 loc) · 2.62 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
78
79
80
81
82
83
84
85
86
plugins {
id("java-library")
id("maven-publish")
}
apply {
group = "org.teacon"
version = "1.0.0"
}
java {
toolchain.languageVersion = JavaLanguageVersion.of(11)
}
repositories {
mavenCentral()
}
dependencies {
compileOnly("com.github.spotbugs:spotbugs-annotations:4.8.6")
testImplementation(platform("org.junit:junit-bom:5.9.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks {
withType<JavaCompile> {
options.encoding = "UTF-8"
}
test {
useJUnitPlatform()
}
processResources.get().apply {
from(file("LICENSE")) { into("META-INF/") }
}
jar.get().manifest.attributes(
mapOf(
"Specification-Title" to "content-disposition",
"Specification-Version" to "${project.version}",
"Specification-Vendor" to "teacon.org",
"Implementation-Title" to "content-disposition",
"Implementation-Version" to "${project.version}",
"Implementation-Vendor" to "teacon.org",
)
)
}
publishing {
publications.create<MavenPublication>("mavenJava") {
groupId = "org.teacon"
version = "${project.version}"
artifactId = "content-disposition"
pom {
name = ("ContentDisposition")
url = "https://github.com/teaconmc/content-disposition"
description = "Java implementation of parsing and constructing content-disposition (RFC6266) header values"
licenses {
license {
name = "GNU Lesser General Public License, Version 3.0"
url = "https://www.gnu.org/licenses/lgpl-3.0.txt"
}
}
developers {
developer {
id = "teaconmc"
name = "TeaConMC"
email = "contact@teacon.org"
}
developer {
id = "ustc-zzzz"
name = "Yanbing Zhao"
email = "zzzz.mail.ustc@gmail.com"
}
}
issueManagement {
system = "GitHub Issues"
url = "https://github.com/teaconmc/content-disposition/issues"
}
scm {
url = "https://github.com/teacon/content-disposition"
connection = "scm:git:git://github.com/teacon/content-disposition.git"
developerConnection = "scm:git:ssh://github.com/teacon/content-disposition.git"
}
}
artifact(tasks.jar)
}
}