-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
41 lines (33 loc) · 984 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
import com.diffplug.gradle.spotless.SpotlessPlugin
import org.jetbrains.dokka.gradle.DokkaTaskPartial
import org.jetbrains.kotlin.js.translate.context.Namer.kotlin
plugins {
alias(libs.plugins.spotless)
alias(libs.plugins.kotlin)
alias(libs.plugins.dokka)
`maven-publish`
}
allprojects {
group = "net.radstevee.packed"
version = "0.5.1"
apply<SpotlessPlugin>()
apply(plugin = "kotlin")
apply(plugin = "org.jetbrains.dokka")
repositories {
mavenCentral()
maven {
name = "rad_public"
url = uri("https://maven.radsteve.net/public")
credentials {
username = System.getenv("RAD_MAVEN_USER")
password = System.getenv("RAD_MAVEN_TOKEN")
}
}
}
tasks.withType<DokkaTaskPartial>().configureEach {
outputDirectory.set(File(layout.projectDirectory.asFile.parentFile, "build/docs/$name"))
}
}
kotlin {
jvmToolchain(21)
}