generator-java-annotation
Creates a generator for Java project with annotation
Installation
First, install Yeoman and generator-java-annotation using npm (we assume you have pre-installed node.js).
npm install -g yonpm install -g generator-java-annotation
Then generate your new project:
$ yo java-annotation _-----_ ╭──────────────────────────╮ | | │ Welcome to the swell │ |----| │ generator-java-annotatio │ `---------´ │ n generator! │
And generate your class file:
$ yo java-annotation:class _-----_ ╭──────────────────────────╮ | | │ Welcome to the swell │ |----| │ generator-java-annotatio │ `---------´ │ n generator! │
Creating annotation interface:
$ yo java-annotation:annotation _-----_ ╭──────────────────────────╮ | | │ Welcome to the swell │ |----| │ generator-java-annotatio │ `---------´ │ n generator! │
Creating annotation runner:
$ yo java-annotation:annotation-runner _-----_ ╭──────────────────────────╮ | | │ Welcome to the swell │ |----| │ generator-java-annotatio │ `---------´ │ n generator! │
Testing
Create the gradle Wrapper:
$ gradle wrapper BUILD SUCCESSFUL in 0s1 actionable task: 1 executed
Run the test:
$ ./gradlew test BUILD SUCCESSFUL in 5s3 actionable tasks: 2 executed, 1 up-to-date
Create the Jar file:
$ ./gradlew jar BUILD SUCCESSFUL in 1s2 actionable tasks: 2 executed
Execute the jar file:
$ make run./gradlew jar && java -jar ./build/libs/example-0.1.0.jar BUILD SUCCESSFUL in 0s2 actionable tasks: 2 up-to-dateHello, world!
You can run the same make run
command for the annotation test.
Getting To Know Yeoman
- Yeoman has a heart of gold.
- Yeoman is a person with feelings and opinions, but is very easy to work with.
- Yeoman can be too opinionated at times but is easily convinced not to be.
- Feel free to learn more about Yeoman.
License
MIT © Dipanjan Bhowmik