Moved to https://github.com/haruki7049/buildente .
This repository has been archived on 2026年04月29日 . You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
- Java 98.9%
- Nix 1.1%
|
haruki7049
1270c1711b
All checks were successful
Publish to Codeberg Maven / publish (push) Successful in 59s
|
||
|---|---|---|
| .forgejo/workflows | Delete pages.yml for now | |
| buildente-app | Update build scripts | |
| buildente-lib | Update DepsPropertiesTest.java | |
| config/checkstyle | ||
| example-project | Update | |
| gradle | ||
| .envrc | ||
| .gitattributes | ||
| .gitignore | ||
| flake.lock | Update flake.nix | |
| flake.nix | Update flake.nix | |
| gradle.properties | ||
| gradlew | ||
| gradlew.bat | ||
| LICENSE-APACHE | Create License files | |
| LICENSE-MIT | Create License files | |
| README.md | Update README | |
| settings.gradle.kts | Update build scripts | |
| shell.nix | ||
buildente
A build scripting library for Java (and probably other JVM languages in the future), as the build.zig from ziglang.
How to use
On your project root, Create Buildente.java and then write as the following:
importdev.haruki7049.buildente.Build;importdev.haruki7049.buildente.BuildScript;importdev.haruki7049.buildente.Executable;importdev.haruki7049.buildente.FatJarStep;importdev.haruki7049.buildente.ManifestConfig;importdev.haruki7049.buildente.Module;importdev.haruki7049.buildente.RunStep;publicclass BuildenteimplementsBuildScript{@Overridepublicvoidbuild(Buildb){Modulemod=b.createModule("src");mod.addDependency("buildente");ManifestConfigmanifest=newManifestConfig().setMainClass("com.example.Main").addAttribute("Built-By","Buildente").addAttribute("Implementation-Title","Hello Example").addAttribute("Implementation-Version","1.0.0");Executableexe=b.addExecutable("com.example.Main",mod,manifest);FatJarStepfat=b.addFatJar("hello",exe);RunSteprun=b.addRunArtifact(exe);b.getInstallStep().dependOn(fat);b.step("run","Compile and run the Hello example").dependOn(run);}}Supported Java version
Java 17 or above.