forked from kordlib/Lavalink.kt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
62 lines (51 loc) · 1.43 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
import org.ajoberstar.gradle.git.publish.GitPublishExtension
import org.jetbrains.dokka.gradle.DokkaTask
plugins {
id("org.jetbrains.dokka")
alias(libs.plugins.kotlinx.atomicfu) apply false
alias(libs.plugins.git.publish)
}
group = "dev.schlaubi.lavakord"
version = "main-SNAPSHOT"
allprojects {
repositories {
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven")
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://maven.topi.wtf/snapshots")
}
}
tasks {
dokkaHtmlMultiModule {
outputDirectory = rootProject.file("docs")
}
gitPublishCopy {
dependsOn(dokkaHtmlMultiModule)
}
}
configure<GitPublishExtension> {
repoUri = "https://github.com/DRSchlaubi/lavakord.git"
branch = "gh-pages"
contents {
from(file("docs"))
from(file("CNAME"))
}
commitMessage = "Update Docs"
}
subprojects {
version = libraryVersion
group = rootProject.group
tasks {
withType<DokkaTask>().configureEach {
dokkaSourceSets {
configureEach {
includeNonPublic = false
perPackageOption {
matchingRegex = ".*\\.internal.*" // will match all .internal packages and sub-packages
suppress = true
}
}
}
}
}
}