/
build.gradle
55 lines (48 loc) · 1.45 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.9.22'
id "org.jetbrains.kotlin.kapt" version "1.9.22"
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
group 'one.oktw'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven { url = "https://jitpack.io" }
maven {
name 'papermc'
url 'https://repo.papermc.io/repository/maven-public/'
}
maven {
name 'adventure'
url 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
}
}
dependencies {
kapt 'com.velocitypowered:velocity-api:3.3.0-SNAPSHOT'
compileOnly 'com.velocitypowered:velocity-api:3.3.0-SNAPSHOT'
implementation 'io.fabric8:kubernetes-client:6.9.2'
implementation 'io.fabric8:kubernetes-httpclient-okhttp:6.9.2'
implementation 'com.github.fkorotkov:k8s-kotlin-dsl:3.3.0'
implementation 'io.lettuce:lettuce-core:6.3.0.RELEASE'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-reactive' // lettuce need this
implementation 'one.oktw:galaxy-lib:9a964eaf'
}
compileKotlin {
kotlinOptions.jvmTarget = "17"
}
tasks.withType(AbstractArchiveTask).configureEach {
preserveFileTimestamps = false
reproducibleFileOrder = true
}
shadowJar {
archiveClassifier.set('')
minimize {
exclude(dependency('io.fabric8:kubernetes-client:.*'))
}
exclude '*.aut'
exclude '*.properties'
exclude 'OSGI-INF'
exclude 'schema'
}
jar.enabled = false
build.dependsOn(shadowJar)