codeflash/code_to_optimize/java-gradle/build.gradle.kts
Ubuntu 39ce696c3f fix: remove hardcoded Mac path from java-gradle test project and add Gradle wrapper
The build.gradle.kts had an absolute path to a Mac-local JAR with a
"codeflash-runtime" comment, causing add_codeflash_dependency to
short-circuit on every machine. Removed the line and stale JAR so
ensure_runtime handles it correctly at optimization time. Added Gradle
8.12 wrapper so the project builds without requiring system gradle.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 04:57:01 +00:00

28 lines
553 B
Text

plugins {
java
jacoco
}
group = "com.example"
version = "1.0.0"
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter:5.10.0")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.10.0")
testImplementation("org.xerial:sqlite-jdbc:3.42.0.0")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
tasks.test {
useJUnitPlatform()
}