gradle_new_java_library
This function will create a new Gradle Java library project with sensible, modern defaults and the given name.
The optional second parameter is the directory ($PWD
if not given) the project is created in.
A Git repository will also be initialized for the project if A Git This script uses Git commit signing; you need to:
Alternatively, you can remove zfunc/gradle_new_java_library
|
The generated default package will be You can change the default by adding
If you want no comments to be generated add
|
You might want to customize the defaults for the created zfunc/gradle_new_java_library
|
Usage
$ gradle_new_java_library example-java-library
$ gradle_new_java_library other-java-library /tmp
$ tree --noreport -a -I .git .
.
├── .editorconfig
├── .git-blame-ignore-revs
├── .gitattributes
├── .githooks
│ └── pre-commit
├── .gitignore
├── gradle
│ ├── libs.versions.toml
│ └── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
├── lib
│ ├── build.gradle.kts
│ └── src
│ ├── main
│ │ ├── java
│ │ │ └── org
│ │ │ └── example
│ │ │ └── Library.java
│ │ └── resources
│ └── test
│ ├── java
│ │ └── org
│ │ └── example
│ │ └── LibraryTest.java
│ └── resources
└── settings.gradle.kts
$ git status
On branch main
nothing to commit, working tree clean