-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
46 lines (39 loc) · 945 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
44
45
46
plugins{
java
id("com.github.johnrengelman.shadow")
kotlin("jvm") apply false
idea
}
allprojects{
group = "io.github.eddiediamondfire"
version = "dev-SNAPSHOT"
repositories{
mavenCentral()
flatDir {
dirs("libraries")
}
}
}
subprojects{
apply(plugin="java")
}
apply(plugin="java")
val kotlinVersion = project.properties["kotlinVersion"]
dependencies{
implementation("org.jetbrains.kotlin:kotlin-stdlib:${kotlinVersion}")
implementation(project(":bukkit"))
implementation(project(":api"))
}
java{
toolchain{
languageVersion.set(JavaLanguageVersion.of(16))
}
}
val projectName: String = rootProject.name
val projectVersion: String = project.version as String
tasks{
named<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJar"){
archiveBaseName.set(projectName)
archiveVersion.set(projectVersion)
}
}