-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
60 lines (50 loc) · 1.35 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_1_8
plugins {
`kotlin-dsl`
alias(libs.plugins.gradle.plugin.publish)
alias(libs.plugins.artifactregistry)
}
group = "dev.kord"
version = "1.9.2"
repositories {
mavenCentral()
}
kotlin {
explicitApi()
compilerOptions {
allWarningsAsErrors = true
jvmTarget = JVM_1_8
freeCompilerArgs.addAll("-Xjdk-release=1.8", "-Xcontext-receivers")
}
}
tasks.withType<JavaCompile>().configureEach {
options.release = 8
}
dependencies {
implementation(libs.kotlin.gradle.plugin)
}
gradlePlugin {
website = "https://github.com/kordlib/gradle-tools"
vcsUrl = "https://github.com/kordlib/gradle-tools.git"
plugins {
create("kordGradleToolsPlugin") {
id = "dev.kord.gradle-tools"
displayName = "Kord Gradle Tools"
description = "Tools for maintaining Kord projects"
implementationClass = "dev.kord.gradle.tools.KordGradlePlugin"
}
}
}
publishing {
repositories {
maven("artifactregistry://europe-west3-maven.pkg.dev/mik-music/kord") {
credentials {
username = "_json_key_base64"
password = System.getenv("GOOGLE_KEY")
}
authentication {
create<BasicAuthentication>("basic")
}
}
}
}