/
build.gradle.kts
76 lines (69 loc) · 2.1 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
plugins {
`java-library`
`maven-publish`
signing
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
vendor.set(JvmVendorSpec.ADOPTIUM)
}
withSourcesJar()
withJavadocJar()
}
group = "me.eigenraven.java8unsupported"
version = "1.0.0"
signing {
useGpgCmd()
sign(configurations.archives.get())
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
signing.sign(this)
artifactId = "java-8-unsupported-shim"
pom {
name.set("Java 8 jdk.unsupported shim")
description.set("A shim jar to put on your compile classpath to work around [JDK-8206937](https://bugs.openjdk.org/browse/JDK-8206937).")
url.set("https://github.com/eigenraven/java8UnsupportedShim")
licenses {
license {
name.set("CC0 1.0 Universal (CC0 1.0) Public Domain Dedication")
url.set("https://creativecommons.org/publicdomain/zero/1.0/")
}
}
developers {
developer {
id.set("eigenraven")
name.set("Raven Szewczyk")
email.set("git@eigenraven.me")
}
}
scm {
connection.set("scm:git:https://github.com/eigenraven/java8UnsupportedShim.git")
developerConnection.set("scm:git:ssh://git@github.com:eigenraven/java8UnsupportedShim.git")
url.set("https://github.com/eigenraven/java8UnsupportedShim")
}
}
}
}
repositories {
/*maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/eigenraven/java8UnsupportedShim")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
}
}*/
maven {
name = "OSSRH"
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = properties.getOrDefault("ossrhUsername", "").toString()
password = properties.getOrDefault("ossrhPassword", "").toString()
}
}
}
}