forked from kordlib/kord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
49 lines (37 loc) · 998 Bytes
/
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
import org.ajoberstar.gradle.git.publish.GitPublishExtension
plugins {
kotlin("jvm")
kotlin("plugin.serialization")
id("org.jetbrains.kotlinx.binary-compatibility-validator") version "0.6.0"
id("org.jetbrains.dokka")
id("org.ajoberstar.git-publish") version "2.1.3"
signing
`maven-publish`
id("io.codearte.nexus-staging") version "0.22.0"
}
repositories {
mavenCentral()
}
group = Library.group
version = Library.version
tasks {
val dokkaOutputDir = "${rootProject.projectDir}/dokka"
clean {
delete(dokkaOutputDir)
}
dokkaHtmlMultiModule.configure {
dependsOn(clean)
outputDirectory.set(file(dokkaOutputDir))
}
gitPublishReset {
dependsOn(dokkaHtmlMultimodule)
}
}
configure<GitPublishExtension> {
repoUri.set("https://github.com/kordlib/kord.git")
branch.set("gh-pages")
contents {
from(project.projectDir.resolve("dokka"))
}
commitMessage.set("Update Docs")
}