-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle.kts
83 lines (72 loc) · 1.91 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
repositories {
mavenCentral()
}
plugins {
`java-library`
`maven-publish`
signing
id("net.researchgate.release") version "2.8.1"
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
}
group = "org.connectbot"
val gitHubUrl = "https://github.com/connectbot/simplesocks"
java {
withJavadocJar()
withSourcesJar()
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
dependencies {
testCompile("junit:junit:4.13.2")
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
pom {
name.set("simplesocks")
description.set("A simple SOCKS library used in ConnectBot.")
url.set(gitHubUrl)
licenses {
license {
name.set("Apache 2.0")
url.set("https://apache.org/licenses/LICENSE-2.0")
}
}
developers {
developer {
name.set("Kenny Root")
email.set("[email protected]")
}
}
scm {
connection.set("${gitHubUrl}.git")
developerConnection.set("${gitHubUrl}.git")
url.set(gitHubUrl)
}
}
}
}
}
signing {
setRequired({
gradle.taskGraph.hasTask("publish")
})
sign(publishing.publications["mavenJava"])
}
nexusPublishing {
repositories {
sonatype()
}
}