This repository has been archived by the owner on Feb 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
103 lines (81 loc) · 2.46 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.7.10'
id 'groovy'
id 'java'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'maven-publish'
}
//取消-all后缀
shadowJar {
archiveClassifier.set('')
transform(Log4j2PluginsCacheFileTransformer)
mergeServiceFiles()
}
jar {
manifest {
attributes 'Main-Class': 'net.geekmc.turing.Turing',
"Multi-Release": true
}
}
group 'net.geekmc.turing'
version '1.0.0'
publishing {
publications {
myLibrary(MavenPublication) {
// groupId = 'net.geekmc.turing'
// artifactId = 'Turing'
// version = '1.0.7'
from components.java
}
}
repositories {
mavenLocal()
}
}
repositories {
maven { url 'https://repo.spongepowered.org/maven' }
maven { url 'https://www.jitpack.io' }
mavenCentral()
}
dependencies {
// Minestom
implementation('com.github.Minestom:Minestom:-SNAPSHOT') {
exclude group: 'org.tinylog'
}
// kotlin
compileOnly "org.jetbrains.kotlin:kotlin-stdlib:1.7.10"
implementation('org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4')
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.4.0")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0")
//dependency for groovy
implementation 'org.fusesource.jansi:jansi:2.4.0'
// groovy
implementation platform('org.apache.groovy:groovy-all:4.0.1')
// lombok
annotationProcessor 'org.projectlombok:lombok:1.18.22'
implementation 'org.projectlombok:lombok:1.18.22'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.22'
testImplementation 'org.projectlombok:lombok:1.18.22'
// logging
implementation 'org.apache.logging.log4j:log4j-core:2.17.1'
implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.17.1'
// snake-yaml
implementation 'org.yaml:snakeyaml:1.30'
// KStom
// https://github.com/Project-Cepi/KStom
implementation 'com.github.Project-Cepi:KStom:67be3adc9d'
// MiniMessage
implementation "net.kyori:adventure-text-minimessage:4.11.0"
}
test {
useJUnitPlatform()
}
//设置kotlin的编译目标版本
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = "17"
}
}
sourceCompatibility = 17
targetCompatibility = 17