elixir is kil

This commit is contained in:
mae
2025-10-08 23:16:14 -05:00
parent e58cc0a1a6
commit ec73bdabfa
13 changed files with 28 additions and 114 deletions

View File

@@ -4,6 +4,7 @@ import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.tasks.Exec
@Suppress("unused") // FIXME(mae) i have literally no clue why idea thinks GoPlugin is unused
class GoPlugin : Plugin<Project> {
override fun apply(project: Project) {
project.tasks.register("compileGo", Exec::class.java) {
@@ -12,6 +13,12 @@ class GoPlugin : Plugin<Project> {
workingDir(project.layout.projectDirectory)
commandLine("go", "build", "-o", "../build/go")
}
project.tasks.register("runGo", Exec::class.java) {
group = "go"
description = "run go application"
workingDir(project.layout.projectDirectory)
commandLine("go", "run", "main.go")
}
project.tasks.register("testGo", Exec::class.java) {
group = "go"
description = "run go test"