63 lines
1.1 KiB
Groovy
63 lines
1.1 KiB
Groovy
|
|
|
|
/*
|
|
* This file was generated by the Gradle 'init' task.
|
|
*/
|
|
|
|
plugins {
|
|
id "org.jetbrains.kotlin.jvm" version "1.5.10"
|
|
id "com.github.johnrengelman.shadow" version "5.2.0"
|
|
}
|
|
|
|
targetCompatibility = '1.8'
|
|
sourceCompatibility = '1.8'
|
|
|
|
shadowJar {
|
|
classifier = null
|
|
minimize()
|
|
archiveName = "venom-" + this.name + "-" + this.version + ".jar"
|
|
}
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
|
|
flatDir {
|
|
dirs 'libs'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation name: "Symbiote"
|
|
|
|
compile "com.squareup.okhttp:okhttp:2.7.5"
|
|
compile "com.google.code.gson:gson:2.8.5"
|
|
compile "redis.clients:jedis:3.5.1"
|
|
|
|
compileOnly 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.10'
|
|
compile "org.mongodb:mongo-java-driver:3.10.2"
|
|
}
|
|
|
|
apply plugin: "kotlin"
|
|
apply plugin: 'maven-publish'
|
|
|
|
compileKotlin {
|
|
kotlinOptions.jvmTarget = '1.8'
|
|
}
|
|
|
|
sourceSets {
|
|
main.java.srcDirs += 'src/main/kotlin/'
|
|
}
|
|
|
|
tasks.withType(JavaCompile) {
|
|
options.encoding = 'UTF-8'
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
shadow(MavenPublication) { publication ->
|
|
project.shadow.component(publication)
|
|
}
|
|
}
|
|
}
|