-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
104 lines (87 loc) · 2.63 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
import com.jfrog.bintray.gradle.BintrayExtension
plugins {
java
`java-library`
id("org.checkerframework") version "0.5.9"
`maven-publish`
id("com.jfrog.bintray") version "1.8.5"
}
group = "com.proximyst"
version = "0.7.0"
repositories {
mavenCentral()
jcenter()
}
dependencies {
testImplementation("junit:junit:4.13")
}
java {
withSourcesJar()
withJavadocJar()
}
tasks {
compileJava {
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
targetCompatibility = sourceCompatibility
}
compileTestJava {
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
targetCompatibility = sourceCompatibility
}
javadoc {
val opt = options as StandardJavadocDocletOptions
opt.addStringOption("Xdoclint:none", "-quiet")
opt.encoding("UTF-8")
opt.charSet("UTF-8")
opt.source("8")
opt.links("https://docs.oracle.com/javase/8/docs/api/")
}
}
if (System.getenv("BINTRAY_USER") != null) {
bintray {
user = System.getenv("BINTRAY_USER")
key = System.getenv("BINTRAY_KEY")
publish = true
override = true
setPublications("maven")
pkg(delegateClosureOf<BintrayExtension.PackageConfig> {
repo = "sewer"
name = "sewer"
userOrg = "proximyst"
setLicenses("LGPL-3.0")
vcsUrl = "https://github.com/Proximyst/sewer"
version(delegateClosureOf<BintrayExtension.VersionConfig> {
name = "${rootProject.version}"
})
})
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = "${rootProject.group}"
artifactId = rootProject.name
version = "${rootProject.version}"
from(components["java"])
pom {
licenses {
license {
name.set("GNU Lesser Public License, Version 3.0")
url.set("https://www.gnu.org/licenses/lgpl-3.0.html")
distribution.set("repo")
}
}
developers {
developer {
id.set("Proximyst")
name.set("Mariell Hoversholm")
email.set("[email protected]")
}
}
scm {
url.set("https://github.com/Proximyst/sewer")
}
}
}
}
}
}