-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle.kts
47 lines (42 loc) · 1.21 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import util.file
import util.maybeFile
plugins {
kotlin("jvm") version "1.7.10"
id("daymxn-plugin")
id("com.daymxn.kwiki") version "0.9.16"
id("maven-publish")
`java-library`
}
kWiki {
wikiTitle.set("kHTML")
wikiDescription.set("HTML5 DSL written in pure Kotlin!")
wikiWebsite.set("https://khtml.daymxn.com")
wikiSourceDirectory.set(project.file("wiki"))
outputDirectory.set(project.rootDir.file("docs"))
}
group = "com.daymxn"
version = "1.0.0"
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "11"
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/daymxn/kHTML")
credentials {
username = project.findProperty("gpr.user")?.toString() ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key")?.toString() ?: System.getenv("TOKEN")
}
}
}
publications {
register<MavenPublication>("kHTML") {
from(components["java"])
pom {
url.set("https://maven.pkg.github.com/daymxn/kHTML")
}
}
}
}