-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
51 lines (41 loc) · 1.25 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
import java.nio.charset.StandardCharsets
subprojects {
apply {
plugin("java")
plugin("maven-publish")
}
repositories {
mavenCentral()
}
tasks.withType<JavaCompile> {
options.encoding = StandardCharsets.UTF_8.toString()
}
tasks.withType<Javadoc> {
(options as StandardJavadocDocletOptions).addStringOption("Xdoclint:none", "-quiet")
options.encoding = "UTF-8"
}
configure<JavaPluginExtension> {
withSourcesJar()
withJavadocJar()
}
configure<PublishingExtension> {
publications {
create<MavenPublication>("java") {
groupId = project.property("group_base").toString()
from(components["java"])
}
}
repositories {
maven {
setUrl("https://maven.meteordev.org/${if (version.toString().endsWith("-SNAPSHOT")) "snapshots" else "releases"}")
credentials {
username = System.getenv("MAVEN_METEOR_ALIAS")
password = System.getenv("MAVEN_METEOR_TOKEN")
}
authentication {
create<BasicAuthentication>("basic")
}
}
}
}
}