33 lines
629 B
Kotlin
33 lines
629 B
Kotlin
|
|
plugins {
|
|
application
|
|
id("com.gradleup.shadow") version "8.3.6"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("io.netty:netty-all:4.0.23.Final")
|
|
implementation("com.google.guava:guava:17.0")
|
|
implementation("com.google.code.gson:gson:2.2.4")
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(8)
|
|
}
|
|
}
|
|
|
|
application {
|
|
mainClass = "proxy.Proxy"
|
|
tasks.run.get().workingDir = rootProject.file("dev/proxy")
|
|
tasks.run.get().workingDir.mkdirs()
|
|
tasks.run.get().standardInput = System.`in`
|
|
}
|
|
|
|
tasks.shadowJar {
|
|
destinationDirectory = rootProject.file("dev")
|
|
archiveFileName = "vproxy.jar"
|
|
}
|