aboutsummaryrefslogtreecommitdiff
path: root/annotation-processors/build.gradle.kts
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-06-01 20:47:08 +1000
committerGitHub <noreply@github.com>2024-06-01 12:47:08 +0200
commita20da5a79b5b05839862c8e8fd165b18368729c1 (patch)
treeef0b258d90d839867eba8c002f02e1c823b049ef /annotation-processors/build.gradle.kts
parent2698b9d13de081be2e72e63faa213a74cafb6a6b (diff)
downloadskyhanni-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 'annotation-processors/build.gradle.kts')
-rw-r--r--annotation-processors/build.gradle.kts27
1 files changed, 27 insertions, 0 deletions
diff --git a/annotation-processors/build.gradle.kts b/annotation-processors/build.gradle.kts
new file mode 100644
index 000000000..c091ba6e3
--- /dev/null
+++ b/annotation-processors/build.gradle.kts
@@ -0,0 +1,27 @@
+import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
+
+plugins {
+ idea
+ kotlin("jvm")
+ java
+}
+
+repositories {
+ mavenCentral()
+}
+
+dependencies {
+ implementation(kotlin("stdlib-jdk8"))
+ implementation("com.google.devtools.ksp:symbol-processing-api:1.8.0-1.0.8")
+}
+
+tasks.withType<JavaCompile> {
+ if (JavaVersion.current().isJava9Compatible) {
+ options.release.set(8)
+ }
+}
+
+val compileKotlin: KotlinCompile by tasks
+compileKotlin.kotlinOptions {
+ jvmTarget = "1.8"
+}