From c1586dec2e458388b8b669995bcac8a9bdafba95 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Wed, 17 Jan 2024 19:19:20 +0100 Subject: Add annotations to MC classes (#930) --- build.gradle.kts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'build.gradle.kts') diff --git a/build.gradle.kts b/build.gradle.kts index 0b8bebb1b..3573835f3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,6 +10,7 @@ plugins { id("com.github.johnrengelman.shadow") version "7.1.2" kotlin("jvm") version "1.9.0" id("com.bnorm.power.kotlin-power-assert") version "0.13.0" + id("moe.nea.shot") version "1.0.0" } group = "at.hannibal2.skyhanni" @@ -68,6 +69,8 @@ val headlessLwjgl by configurations.creating { isVisible = false } +val shot = shots.shot("minecraft", project.file("shots.txt")) + dependencies { minecraft("com.mojang:minecraft:1.8.9") mappings("de.oceanlabs.mcp:mcp_stable:22-1.8.9") @@ -117,6 +120,9 @@ dependencies { testImplementation("org.junit.jupiter:junit-jupiter:5.10.0") testImplementation("io.mockk:mockk:1.12.5") } +configurations.getByName("minecraftNamed").dependencies.forEach { + shot.applyTo(it as HasConfigurableAttributes<*>) +} tasks.withType(Test::class) { useJUnitPlatform() -- cgit