-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
56 lines (45 loc) · 1.3 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.gradle.api.JavaVersion.VERSION_21
plugins {
java
alias(libs.plugins.shadow)
}
allprojects {
apply(plugin = "java-library")
group = "de.ole101.translator"
version = "1.0-SNAPSHOT"
description = "A Minestom server implementation with an automatic chat translator for Minecraft"
repositories {
mavenCentral()
maven("https://oss.sonatype.org/content/groups/public/")
maven("https://jitpack.io")
}
dependencies {
annotationProcessor(rootProject.libs.bundles.utils)
implementation(rootProject.libs.bundles.utils)
}
tasks.withType<JavaCompile>().configureEach {
sourceCompatibility = VERSION_21.toString()
targetCompatibility = VERSION_21.toString()
options.encoding = "UTF-8"
}
}
dependencies {
implementation(project(":base"))
implementation(project(":api"))
implementation(project(":common"))
}
tasks {
test {
useJUnitPlatform()
}
named<Jar>("jar") {
archiveFileName.set("${project.name}-${project.version}.jar")
}
named<ShadowJar>("shadowJar") {
archiveFileName.set("${project.name}-${project.version}-all.jar")
}
build {
dependsOn(named("shadowJar"))
}
}