diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2024-06-01 20:47:08 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-01 12:47:08 +0200 |
commit | a20da5a79b5b05839862c8e8fd165b18368729c1 (patch) | |
tree | ef0b258d90d839867eba8c002f02e1c823b049ef /build.gradle.kts | |
parent | 2698b9d13de081be2e72e63faa213a74cafb6a6b (diff) | |
download | skyhanni-a20da5a79b5b05839862c8e8fd165b18368729c1.tar.gz skyhanni-a20da5a79b5b05839862c8e8fd165b18368729c1.tar.bz2 skyhanni-a20da5a79b5b05839862c8e8fd165b18368729c1.zip |
Backend: Auto load annotation (#1904)
Co-authored-by: Brady <thatgravyboat@gmail.com>
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: |