Skip to content

Commit

Permalink
chore: remove gradle and maven
Browse files Browse the repository at this point in the history
  • Loading branch information
linux-china committed Oct 8, 2024
1 parent 411b419 commit 56defb5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/runners/justfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,10 @@ pub fn init_justfile() {
include_bytes!("../templates/just/zig.just")
} else if current_dir.join("Cargo.toml").exists() {
include_bytes!("../templates/just/cargo.just")
} else if current_dir.join("gradlew").exists() {
include_bytes!("../templates/just/gradle.just")
} else if current_dir.join("uv.lock").exists() {
include_bytes!("../templates/just/uv.just")
} else if current_dir.join("requirements.txt").exists() {
include_bytes!("../templates/just/python-venv.just")
} else if current_dir.join("pom.xml").exists() {
let pom_xml_code = std::fs::read_to_string("pom.xml").unwrap();
if pom_xml_code.contains("spring-boot-starter") {
include_bytes!("../templates/just/maven-sb.just")
} else {
include_bytes!("../templates/just/maven.just")
}
} else {
include_bytes!("../templates/just/justfile")
};
Expand Down

0 comments on commit 56defb5

Please sign in to comment.