Archived
1
0
Fork 0
This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
uranos/uranos-server/build.gradle.kts

72 lines
1.8 KiB
Kotlin

plugins {
kotlin("jvm")
kotlin("kapt")
id("com.github.johnrengelman.shadow")
}
group = rootProject.group
version = rootProject.version
repositories {
mavenCentral()
jcenter()
maven("https://jitpack.io")
}
dependencies {
// Kotlin
implementation(KotlinX.coroutines.core)
implementation(KotlinX.coroutines.jdk8) // TODO: What is jdk9?
// Uranos
implementation(project(":uranos-api"))
implementation(project(":uranos-packets"))
implementation(project(":uranos-packet-codecs"))
implementation(project(":uranos-nbt"))
// Logging
implementation("org.slf4j:slf4j-api:_")
implementation("ch.qos.logback:logback-classic:_")
implementation("de.moritzruth:khalk:_")
// Netty
implementation("io.netty:netty-handler:_")
implementation("io.netty:netty-buffer:_")
implementation("io.netty:netty-codec:_")
implementation("io.netty:netty-transport:_")
implementation("io.netty:netty-transport-native-epoll:_")
implementation("io.netty:netty-transport-native-kqueue:_")
// Other
implementation(Square.okHttp3.okHttp)
implementation("com.sksamuel.hoplite:hoplite-core:_")
implementation("com.sksamuel.hoplite:hoplite-yaml:_")
kapt(Square.moshi.kotlinCodegen)
// Testing
testImplementation(Testing.Strikt.core)
testImplementation(Testing.junit.api)
testRuntimeOnly(Testing.junit.engine)
}
tasks {
compileKotlin {
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
}
test {
useJUnitPlatform()
}
shadowJar {
archiveClassifier.set(null as String?)
@Suppress("UnstableApiUsage")
manifest {
this.attributes(
"Main-Class" to "space.uranos.UranosServer",
"Implementation-Version" to project.version
)
}
}
}