-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
55 lines (46 loc) · 1.09 KB
/
build.gradle.kts
File metadata and controls
55 lines (46 loc) · 1.09 KB
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
plugins {
`maven-publish`
kotlin("jvm") version "2.0.20"
}
group = "me.aroze"
version = "1.0.5"
repositories {
mavenCentral()
}
dependencies {
api("com.github.ajalt.colormath:colormath:3.6.0")
}
tasks.test {
useJUnitPlatform()
}
java {
withJavadocJar()
withSourcesJar()
}
kotlin {
jvmToolchain(21)
}
tasks.javadoc {
if (JavaVersion.current().isJava9Compatible) {
(options as StandardJavadocDocletOptions).addBooleanOption("html5", true)
}
}
publishing {
repositories {
maven {
url = uri("https://repo.aroze.me/repository/public/")
credentials {
username = findProperty("repo.aroze.username") as String? ?: System.getenv("REPO_USER")
password = findProperty("repo.aroze.password") as String? ?: System.getenv("REPO_PASS")
}
}
}
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
groupId = "me.aroze"
artifactId = "color-names"
version = "${rootProject.version}"
}
}
}