-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
103 lines (92 loc) · 2.9 KB
/
build.gradle.kts
File metadata and controls
103 lines (92 loc) · 2.9 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
plugins {
id("java-library")
id("maven-publish")
alias(libs.plugins.jreleaser)
}
val title: String by project
val gitName: String by project
val website: String by project
group = "org.pageseeder.diffx"
version = file("version.txt").readText().trim()
description = "A Java library for comparing and identifying differences between XML and text documents."
repositories {
mavenCentral()
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
withJavadocJar()
withSourcesJar()
}
dependencies {
compileOnly(libs.jspecify)
implementation(libs.pso.xmlwriter)
testImplementation(platform(libs.junit.bom))
testImplementation(libs.bundles.junit.testing)
testRuntimeOnly(libs.junit.jupiter.engine)
}
tasks.test {
useJUnitPlatform()
}
tasks.jar {
manifest {
attributes(
"Main-Class" to "org.pageseeder.diffx.Main",
"Implementation-Title" to project.name,
"Implementation-Version" to project.version,
"Implementation-Vendor" to "Allette Systems",
"Specification-Title" to project.description,
"Specification-Version" to project.version,
"Specification-Vendor" to "Allette Systems"
)
}
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
groupId = group.toString()
pom {
name.set(title)
description.set(project.description)
url.set(website)
licenses {
license {
name.set("The Apache Software License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
organization {
name.set("Allette Systems")
url.set("https://www.allette.com.au")
}
scm {
url.set("git@github.com:pageseeder/${gitName}.git")
connection.set("scm:git:git@github.com:pageseeder/${gitName}.git")
developerConnection.set("scm:git:git@github.com:pageseeder/${gitName}.git")
}
developers {
developer {
name.set("Christophe Lauret")
email.set("clauret@weborganic.com")
}
developer {
name.set("Philip Rutherford")
email.set("philipr@weborganic.com")
}
}
}
}
}
repositories {
maven {
url = layout.buildDirectory.dir("staging-deploy").get().asFile.toURI()
}
}
}
jreleaser {
configFile.set(file("jreleaser.toml"))
}