elixir is kil
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user