fyrecc/Shitty HCF/build.gradle
disclearing 40b186170b HCF
2022-09-06 21:35:47 +01:00

81 lines
1.9 KiB
Groovy

plugins {
id "org.jetbrains.kotlin.kapt" version "$kotlin_version" apply true
id "org.jetbrains.kotlin.jvm" version "$kotlin_version"
id "com.github.johnrengelman.shadow" version "$shadow_version"
}
this.group = 'cc.fyre.hcf'
this.version = '1.0-SNAPSHOT'
this.description = 'hcf'
this.targetCompatibility = '1.8'
this.sourceCompatibility = '1.8'
shadowJar {
classifier = null
}
repositories {
mavenLocal()
mavenCentral()
flatDir {
dirs 'libs'
}
}
apply plugin: "kotlin"
apply plugin: "kotlin-kapt"
apply plugin: 'maven-publish'
dependencies {
kapt "com.squareup.moshi:moshi-kotlin-codegen:$moshi_version"
compileOnly "com.squareup.okhttp3:okhttp:$okhttp_version"
compileOnly "com.squareup.moshi:moshi-kotlin:$moshi_version"
compileOnly "com.squareup.moshi:moshi-adapters:$moshi_version"
compileOnly "cc.fyre.circuit:circuit:$circuit_version"
compileOnly "cc.fyre.core:bukkit:1.1-SNAPSHOT"
compileOnly "cc.fyre.modsuite:bukkit:1.0-SNAPSHOT"
compileOnly "cc.fyre.shard:v1_7:1.0-SNAPSHOT"
compileOnly "net.hylist:spigot-server:$spigot_version"
compileOnly "redis.clients:jedis:$redis_version"
compileOnly "com.squareup.retrofit2:retrofit:$retrofit_version"
compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compileOnly 'com.comphenix.protocol:ProtocolLib:4.4.0'
implementation "org.mongodb:mongo-java-driver:$mongo_version"
compileOnly fileTree(dir: 'libs', include: ['*.jar'])
}
compileKotlin {
kotlinOptions.jvmTarget = '1.8'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin/'
}
this.tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
shadowJar {
shadowJar.archiveName = this.name + "-" + this.version + ".jar"
}
publishing {
publications {
shadow(MavenPublication) {
publication -> project.shadow.component(publication)
}
}
}