-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
51 lines (42 loc) · 1.84 KB
/
build.gradle
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
import java.text.SimpleDateFormat
plugins {
id 'application'
id 'com.github.johnrengelman.shadow' version "${shadowVersion}"
id 'net.kyori.blossom' version "${blossomVersion}"
}
compileJava {
version = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
sourceCompatibility = JavaVersion.VERSION_21
}
mainClassName = 'eu.koboo.minestom.Launch'
dependencies {
compileOnly "net.minestom:minestom-snapshots:${minestomVersion}"
compileOnly "org.jetbrains:annotations:${annotationsVersion}"
compileOnly "me.carleslc.Simple-YAML:Simple-Yaml:${yamlVersion}"
implementation "org.tinylog:slf4j-tinylog:${tinylogVersion}"
implementation "org.tinylog:tinylog-impl:${tinylogVersion}"
implementation "org.fusesource.jansi:jansi:${jansiVersion}"
implementation "org.jline:jline:${jlineVersion}"
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
implementation project(":server-api")
}
shadowJar {
manifest {
attributes(
'Main-Class': mainClassName,
'Implementation-Title': rootProject.name,
'Implementation-Version': rootProject.version,
'Build-Timestamp': new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date()),
'Created-By': "Gradle ${gradle.gradleVersion}",
'Build-Jdk': "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
'Build-OS': "${System.properties['os.name']} ${System.properties['os.arch']} ${System.properties['os.version']}"
)
}
}
blossom {
replaceToken 'PROJECT_NAME', rootProject.name
replaceToken 'PROJECT_VERSION', rootProject.version
replaceToken 'DEP_MINESTOM_VERSION', "${minestomVersion}"
}