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 { compile project(':api') implementation name: "BungeeCord" implementation name: "Symbiote" compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.10" compile "org.apache.commons:commons-pool2:2.6.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) } } }