-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
43 lines (34 loc) · 973 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
// fuck it.
// crab in the code. 🦀
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
group = "dev.koding.launcher"
version = "1.0-SNAPSHOT"
plugins {
id("com.github.johnrengelman.shadow") version "7.1.0"
kotlin("plugin.serialization") version "1.5.31"
kotlin("jvm") version "1.6.0"
`maven-publish`
java
}
allprojects {
apply(plugin = "maven-publish")
apply(plugin = "java")
apply(plugin = "kotlin")
apply(plugin = "org.jetbrains.kotlin.plugin.serialization")
apply(plugin = "com.github.johnrengelman.shadow")
group = rootProject.group
version = rootProject.version
repositories {
mavenCentral()
}
dependencies {
api(kotlin("stdlib"))
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = freeCompilerArgs + arrayOf("-Xopt-in=kotlin.RequiresOptIn")
}
}
tasks["build"].dependsOn("shadowJar")
}