fyrecc/Symbiote/build.gradle

56 lines
1012 B
Groovy
Raw Normal View History

2022-09-06 22:29:25 +02:00
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
id "org.jetbrains.kotlin.jvm" version "$kotlin_version"
id "com.github.johnrengelman.shadow" version "5.2.0"
}
group = 'cc.fyre.symbiote'
version = '1.0-SNAPSHOT'
description = 'symbiote'
targetCompatibility = '1.8'
sourceCompatibility = '1.8'
shadowJar {
classifier = null
minimize()
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile "redis.clients:jedis:$redis_version"
compile "com.google.code.gson:gson:$gson_version"
compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}
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)
}
}
}