/
build.gradle.kts
107 lines (95 loc) · 2.79 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
plugins {
`java-library`
`maven-publish`
signing
}
group = "com.github.rschmitt"
version = "1.7.0"
java {
sourceCompatibility = JavaVersion.VERSION_1_8
withSourcesJar()
withJavadocJar()
}
dependencies {
api("org.clojure:clojure:[1.6.0,)")
api("com.github.rschmitt:collider:1.0.0")
api("org.fressian:fressian:0.6.6")
api("org.clojure:data.fressian:1.0.0")
implementation("org.ow2.asm:asm:7.1")
testCompileOnly("org.junit.jupiter:junit-jupiter-api:5.+")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.+")
testImplementation("collection-check:collection-check:0.1.6")
}
tasks.test {
useJUnitPlatform {
excludeTags("benchmark")
}
}
tasks.register<Test>("benchmark") {
useJUnitPlatform {
includeTags("benchmark")
}
}
tasks.javadoc {
(options as StandardJavadocDocletOptions).addStringOption("Xdoclint:none", "-quiet")
options.showFromPublic()
exclude("com/github/rschmitt/dynamicobject/internal/**")
}
val sonatypeUsername: String? by project
val sonatypePassword: String? by project
repositories {
mavenLocal()
mavenCentral()
maven {
url = uri("https://clojars.org/repo")
}
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
}
}
publishing {
repositories {
maven {
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = sonatypeUsername
password = sonatypePassword
}
}
}
publications {
create<MavenPublication>("maven") {
from(components["java"])
pom {
name.set("dynamic-object")
description.set("Lightweight data modeling for Java, powered by Clojure.")
url.set("https://github.com/rschmitt/dynamic-object")
licenses {
license {
name.set("CC0")
url.set("http://creativecommons.org/publicdomain/zero/1.0/")
}
}
developers {
developer {
id.set("rschmitt")
name.set("Ryan Schmitt")
email.set("rschmitt@pobox.com")
}
}
scm {
connection.set("scm:git:git@github.com:rschmitt/dynamic-object.git")
developerConnection.set("scm:git:git@github.com:rschmitt/dynamic-object.git")
url.set("git@github.com:rschmitt/dynamic-object.git")
}
}
}
}
}
signing {
useGpgCmd()
sign(publishing.publications["maven"])
}
tasks.withType(JavaCompile::class) {
options.encoding = "UTF-8"
}