fyrecc/Engine/api/build.gradle

51 lines
1.0 KiB
Groovy
Raw Permalink Normal View History

2022-09-06 22:29:25 +02:00
plugins {
id "org.jetbrains.kotlin.jvm" version "1.5.0"
id "com.github.johnrengelman.shadow" version "5.2.0"
id "com.gorylenko.gradle-git-properties" version "2.2.2"
}
targetCompatibility = '1.8'
sourceCompatibility = '1.8'
shadowJar {
classifier = null
minimize()
archiveName = "engine-" + this.name + "-" + this.version + ".jar"
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile "com.google.code.gson:gson:2.8.5"
compile "cc.fyre.symbiote:symbiote:1.0-SNAPSHOT"
compile "org.mongodb:mongo-java-driver:3.10.2"
compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.0"
}
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)
}
}
}