add all modules, better gradle setup, and elixir for server
This commit is contained in:
@@ -15,32 +15,21 @@ dependencies {
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0")
|
||||
implementation(kotlin("reflect"))
|
||||
}
|
||||
|
||||
tasks.test {
|
||||
useJUnitPlatform()
|
||||
dependsOn(testGo)
|
||||
}
|
||||
tasks.classes {
|
||||
dependsOn(compileGo)
|
||||
}
|
||||
kotlin {
|
||||
jvmToolchain(24)
|
||||
}
|
||||
|
||||
val compileGo = tasks.register("compileGo", Exec::class) {
|
||||
group = "go"
|
||||
workingDir(layout.projectDirectory)
|
||||
commandLine("/usr/bin/go", "build", "-o", "build/go/planterette", "./src/main/go")
|
||||
tasks.build.configure {
|
||||
dependsOn(":plt-build-wrapper:compileGo")
|
||||
dependsOn(":plt-fetch:compileGo")
|
||||
dependsOn(":plt-pkg:compileGo")
|
||||
dependsOn(":plt-server:compileEx")
|
||||
dependsOn(":plt-updated:compileGo")
|
||||
}
|
||||
|
||||
val testGo = tasks.register("testGo", Exec::class) {
|
||||
group = "go"
|
||||
workingDir(layout.projectDirectory)
|
||||
commandLine("/usr/bin/go", "test", "./src/main/go")
|
||||
}
|
||||
|
||||
val runGo = tasks.register("runGo", Exec::class) {
|
||||
group = "go"
|
||||
workingDir(layout.projectDirectory)
|
||||
commandLine("/usr/bin/go", "run", "./src/main/go")
|
||||
tasks.test.configure {
|
||||
dependsOn(":plt-build-wrapper:testGo")
|
||||
dependsOn(":plt-fetch:testGo")
|
||||
dependsOn(":plt-pkg:testGo")
|
||||
dependsOn(":plt-server:testEx")
|
||||
dependsOn(":plt-updated:testGo")
|
||||
}
|
||||
Reference in New Issue
Block a user