fyrecc/Engine/game/build.gradle
2022-09-06 21:29:25 +01:00

51 lines
1011 B
Groovy

plugins {
id "org.jetbrains.kotlin.jvm" version "1.5.0"
id "com.github.johnrengelman.shadow" version "5.2.0"
}
targetCompatibility = '1.8'
sourceCompatibility = '1.8'
shadowJar {
classifier = null
minimize()
archiveName = "engine-" + this.name + "-" + this.version + ".jar"
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile project(":api")
compileOnly 'com.comphenix.protocol:ProtocolLib:4.4.0'
compileOnly "net.frozenorb:qLib:LATEST"
compileOnly 'cc.fyre:spigot-server:1.7.10-R0.1-SNAPSHOT'
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)
}
}
}