This is already done by KFF

This commit is contained in:
DBotThePony 2023-07-29 23:15:21 +07:00
parent 5bb3f91f9a
commit e95e0f7d56
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -21,11 +21,6 @@ plugins {
id("org.spongepowered.mixin") id("org.spongepowered.mixin")
} }
configurations {
create("klibrary") // kotlin libs
get("implementation").extendsFrom(get("klibrary"))
}
data class GitInfo(val version: String, val tag: String, val buildNumber: String) { data class GitInfo(val version: String, val tag: String, val buildNumber: String) {
// val tagIsVersion: Boolean get() = tag != "" && tag.matches(Regex("v[0-9]+\\.[0-9]\\.[0-9]")) // val tagIsVersion: Boolean get() = tag != "" && tag.matches(Regex("v[0-9]+\\.[0-9]\\.[0-9]"))
@ -134,7 +129,6 @@ tasks.test {
dependencies { dependencies {
val jupiter_version: String by project val jupiter_version: String by project
val kotlin_version: String by project
val kotlin_for_forge_version: String by project val kotlin_for_forge_version: String by project
val mixin_version: String by project val mixin_version: String by project
@ -143,15 +137,6 @@ dependencies {
implementation("thedarkcolour:kotlinforforge:$kotlin_for_forge_version") implementation("thedarkcolour:kotlinforforge:$kotlin_for_forge_version")
fun klibrary(notation: Any) { this.add("klibrary", notation) }
val excludeKGroup = closureOf<Any> {
(this as ExternalModuleDependency).exclude(group = "org.jetbrains", module = "annotations")
} as Closure<Any>
klibrary(create("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version", excludeKGroup))
klibrary(create("org.jetbrains.kotlin:kotlin-reflect:$kotlin_version", excludeKGroup))
compileOnly("yalter.mousetweaks:MouseTweaks:2.23:api") compileOnly("yalter.mousetweaks:MouseTweaks:2.23:api")
annotationProcessor("org.spongepowered:mixin:${mixin_version}:processor") annotationProcessor("org.spongepowered:mixin:${mixin_version}:processor")