-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle.kts
71 lines (62 loc) · 2 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
63
64
65
66
67
68
69
70
71
import dev.kord.gradle.tools.KordExtension
import dev.kord.gradle.tools.KordGradlePlugin
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin
plugins {
id("org.jetbrains.dokka")
alias(libs.plugins.kotlinx.atomicfu) apply false
alias(libs.plugins.gradle.tools) apply false
}
group = "dev.schlaubi.lavakord"
version = "8.0.0"
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")
maven("https://maven.topi.wtf/releases")
}
}
dependencies {
dokka(projects.core)
dokka(projects.java)
dokka(projects.jda)
dokka(projects.jdaJava)
dokka(projects.kord)
dokka(projects.plugins.lavasearch)
dokka(projects.plugins.lavasrc)
dokka(projects.plugins.lyrics)
dokka(projects.plugins.sponsorblock)
}
subprojects {
afterEvaluate {
apply<KordGradlePlugin>()
configure<KordExtension> {
publicationName = "mavenCentral"
if (jvmTarget.get() <= JvmTarget.JVM_17) {
jvmTarget = JvmTarget.JVM_17
}
}
if (plugins.hasPlugin("org.jetbrains.dokka")) {
dokka {
dokkaSourceSets {
configureEach {
perPackageOption {
matchingRegex = ".*\\.internal.*" // will match all .internal packages and sub-packages
suppress = true
}
}
}
}
}
}
group = rootProject.group
}
// Use system Node.Js on NixOS
if (System.getenv("NIX_PROFILES") != null) {
rootProject.plugins.withType<NodeJsRootPlugin> {
rootProject.the<NodeJsRootExtension>().download = false
}
}