diff options
Diffstat (limited to 'build.gradle.kts')
-rw-r--r-- | build.gradle.kts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 051bcc4f9..b481a39cf 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -11,6 +11,7 @@ plugins { kotlin("jvm") version "1.9.0" id("com.bnorm.power.kotlin-power-assert") version "0.13.0" `maven-publish` + id("com.google.devtools.ksp") version "1.9.0-1.0.13" id("moe.nea.shot") version "1.0.0" } @@ -90,6 +91,8 @@ dependencies { headlessLwjgl(libs.headlessLwjgl) + compileOnly(ksp(project(":annotation-processors"))!!) + shadowImpl("org.spongepowered:mixin:0.7.11-SNAPSHOT") { isTransitive = false } @@ -129,6 +132,11 @@ dependencies { implementation("net.hypixel:mod-api:0.3.1") } + +ksp { + arg("symbolProcessor", "at.hannibal2.skyhanni.loadmodule.LoadModuleProvider") +} + configurations.getByName("minecraftNamed").dependencies.forEach { shot.applyTo(it as HasConfigurableAttributes<*>) } @@ -147,6 +155,12 @@ kotlin { enableLanguageFeature("BreakContinueInInlineLambdas") } } + sourceSets.main { + kotlin.srcDir("build/generated/ksp/main/kotlin") + } + sourceSets.test { + kotlin.srcDir("build/generated/ksp/test/kotlin") + } } // Minecraft configuration: |