@echo off REM Generate build.gradle.kts file setlocal set "PROJECT_DIR=%~1" ( echo plugins { echo java echo } echo. echo repositories { echo mavenCentral^(^) echo google^(^) echo } echo. echo dependencies { echo // Testing ^(runs on PC without SDK^) echo testImplementation^("org.junit.jupiter:junit-jupiter:5.10.0"^) echo testRuntimeOnly^("org.junit.platform:junit-platform-launcher"^) echo testImplementation^("org.mockito:mockito-core:5.5.0"^) echo } echo. echo java { echo sourceCompatibility = JavaVersion.VERSION_11 echo targetCompatibility = JavaVersion.VERSION_11 echo } echo. echo tasks.test { echo useJUnitPlatform^(^) echo testLogging { echo events^("passed", "skipped", "failed"^) echo showStandardStreams = false echo exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL echo } echo } echo. echo // Task to deploy to FTC SDK echo tasks.register^^("deployToSDK"^) { echo group = "deployment" echo description = "Deploy robot code to FTC SDK TeamCode module" echo. echo from^("src/main/java"^) { echo include^("robot/**/*.java"^) echo } echo. echo into^(layout.projectDirectory.dir^("../ftc-sdk/TeamCode/src/main/java"^)^) echo. echo doLast { echo println^("Code deployed to TeamCode - ready to build APK"^) echo } echo } ) > "%PROJECT_DIR%\build.gradle.kts" endlocal exit /b 0