Restructured linux to match Windows
This commit is contained in:
49
linux/templates/build.gradle.kts
Normal file
49
linux/templates/build.gradle.kts
Normal file
@@ -0,0 +1,49 @@
|
||||
plugins {
|
||||
java
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
google()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// Testing (runs on PC without SDK)
|
||||
testImplementation("org.junit.jupiter:junit-jupiter:5.10.0")
|
||||
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
||||
testImplementation("org.mockito:mockito-core:5.5.0")
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
}
|
||||
|
||||
tasks.test {
|
||||
useJUnitPlatform()
|
||||
testLogging {
|
||||
events("passed", "skipped", "failed")
|
||||
showStandardStreams = false
|
||||
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
|
||||
}
|
||||
}
|
||||
|
||||
// Task to deploy to FTC SDK
|
||||
tasks.register<Copy>("deployToSDK") {
|
||||
group = "ftc"
|
||||
description = "Copy code to FTC SDK TeamCode for deployment"
|
||||
|
||||
val homeDir = System.getProperty("user.home")
|
||||
val sdkDir = providers.gradleProperty("ftcSdkDir")
|
||||
.orElse("$homeDir/ftc-sdk")
|
||||
|
||||
from("src/main/java") {
|
||||
include("robot/**/*.java")
|
||||
}
|
||||
|
||||
into(layout.projectDirectory.dir("${sdkDir.get()}/TeamCode/src/main/java"))
|
||||
|
||||
doLast {
|
||||
println("✓ Code deployed to TeamCode - ready to build APK")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user