Skip to content
poxel6Public

About

Java project structure populator(is this a thing?) written in Rust.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

46 Commits

Folders and files

Repository files navigation

Titles and stuff I think

Description

A simple CLI program to setup a simple and minimal java project.

Problems it solves for me

  • Gradle initial projects are bloated with too many files.
  • Setting up a java project by hand is error prone.
    • spelling mistakes
    • nesting mistakes
  • Setting up a java project by hand is not fun.

Features

  • Generate full project structure somewhat reasonably.
  • Generate files like .gitignore, build.gradle.kt, ...
  • Populates generated files with proper defaults.
  • Setup gradle.
  • Optional flag for project name, default: app. -n
  • Optional flag for project domain, default: org.example. -d
  • Optional flag for preset dependencies, defaults: "simple". -p
  • Optional flag for git repository, defaults: false. -g
  • Optional flag for making a modular java structure, default: false. -m
  • Optional flag for prompting for all of the optional flags. -a 🤡

Usage

newj [PATH] -n|--name [NAME] -d|--domain [DOMAIN] -p|--preset [simple|mc-plugin|spring]
if x is not provided:

PATH: default to present working directory
NAME (name of your project): prompts you
DOMAIN (domain used for your project): prompts you
PRESET: defaults to "simple".

That being said, you can only type newj for a project in the present directory and prompts for name and domain.

newj

Default project structure

name: app (default)
domain: org.example (default)

app 
└── src 
    ├── main 
    │   └── java 
    │       └── org 
    │           └── example 
    │               └── app 
    │                   └── App.java 
    ├── test 
        └── java 
            └── org 
                └── example 
                    └── app 
    ├── .gitignore 
    └── build.gradle.kt 

About

Java project structure populator(is this a thing?) written in Rust.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages