The generated content is now available in our Java Liberty and Java Spring static applications
This repository will not be updated. The repository will be kept available in read-only mode.
You can see builds for all branches here https://travis-ci.org/ibm-developer/generator-ibm-java/branches.
This is a yeoman generator that will create Java code for you.
It is published on npm here
The generator works by taking the answers that the user has supplied, either via the CLI or a UI, and then maps that to a folder under the templates directory. All files are processed using Handlebars to insert the configuration specified by the user.
- Clone this repository and navigate to generator-ibm-java/generator-java
- Run
npm install
in generator-java to install all of the node modules - Run
npm link
in generator-java to link the local java yeoman generator (see here for more details - Run
yo ibm-java
to test the generator
In order to publish changes, you will need to fork the repository or ask to join the ibm-developer
org and branch off the master
branch.
Make sure to follow the conventional commit specification before contributing. To help you with commit a commit template is provide.
Run config.sh
to initialize the commit template to your .git/config
or you can use
Once you are finished with your changes, run npm test
, npm testint
and npm teste2e
to make sure all tests pass.
Do a pull request against master
, make sure the build passes. A team member will review and merge your pull request.
Once merged to master
one pull request will be created against master
. Make sure that the CHANGELOG.md and the package.json is correct before merging the auto generated pull request. After the autogenerated
pull request has been merged to master
the version will be bumped and published to npm.