Skip to content

Commit f1d7200

Browse files
chore: remove bundled codeflash-runtime JAR from repo
JAR is resolved from Maven Central at runtime. The bundled copy added 16MB of bloat and got stale between releases. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8d3e8ec commit f1d7200

4 files changed

Lines changed: 0 additions & 14 deletions

File tree

codeflash/languages/java/build_tool_strategy.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ def find_runtime_jar(self) -> Path | None:
6060
Subclasses should override to prepend tool-specific cache paths
6161
and fall back to super().find_runtime_jar().
6262
"""
63-
resources_jar = Path(__file__).parent / "resources" / _RUNTIME_JAR_NAME
64-
if resources_jar.exists():
65-
return resources_jar
66-
6763
dev_jar_maven = _JAVA_RUNTIME_DIR / "target" / _RUNTIME_JAR_NAME
6864
if dev_jar_maven.exists():
6965
return dev_jar_maven

codeflash/languages/java/comparator.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ def _find_comparator_jar(project_root: Path | None = None) -> Path | None:
6868
if m2_jar.exists():
6969
return m2_jar
7070

71-
# Check bundled JAR in package resources
72-
resources_jar = Path(__file__).parent / "resources" / CODEFLASH_RUNTIME_JAR_NAME
73-
if resources_jar.exists():
74-
return resources_jar
75-
7671
return None
7772

7873

codeflash/languages/java/line_profiler.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -584,11 +584,6 @@ def find_agent_jar() -> Path | None:
584584
if m2_jar.exists():
585585
return m2_jar
586586

587-
# Check bundled JAR in package resources
588-
resources_jar = Path(__file__).parent / "resources" / AGENT_JAR_NAME
589-
if resources_jar.exists():
590-
return resources_jar
591-
592587
# Check development build directory
593588
dev_jar = Path(__file__).parent.parent.parent.parent / "codeflash-java-runtime" / "target" / AGENT_JAR_NAME
594589
if dev_jar.exists():
-15.3 MB
Binary file not shown.

0 commit comments

Comments
 (0)