This yeoman generator provides utilities for interacting with the IBM Java Generator.
To install the generator:
git clone [email protected]:ibm-developer/generator-ibm-java-utils.git
cd generator-utils
npm install
npm link
Running the generator will produce a script file under generated
in the current directory that can be used to invoke the Java generator.
To run the generator providing options via prompts:
yo ibm-java-utils
- Answer the prompts with the required options for generation
- The generator will create a file called
generated/yojava.sh
to run the Java generator - The generator will create a file called
generated/data.json
which can be used for subsequent runs
The generator can be run using a JSON object such as:
{
"createType": "blank/spring",
"buildType": "gradle",
"appName": "MyProject",
"groupId": "projects",
"artifactId": "MyProject",
"platforms": [
"cli",
"bluemix",
"kube"
],
"bluemix": "\"{\\\"backendPlatform\\\":\\\"SPRING\\\"}\""
}
Create a file called data.json
with the above contents and run:
yo ibm-java-utils --data data.json
The generator will create a file called generated/yojava.sh
to run the Java generator.
For more information on running the Java generators see the docs.