https://github.com/peterbecker/autocode
Modular code generation framework
https://github.com/peterbecker/autocode
angular code-generation code-generator dropwizard java maven-plugin
Last synced: 2 months ago
JSON representation
Modular code generation framework
- Host: GitHub
- URL: https://github.com/peterbecker/autocode
- Owner: peterbecker
- License: unlicense
- Created: 2018-08-14T11:43:02.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-28T11:45:44.000Z (over 3 years ago)
- Last Synced: 2025-03-06T06:46:39.340Z (over 1 year ago)
- Topics: angular, code-generation, code-generator, dropwizard, java, maven-plugin
- Language: Java
- Size: 2.83 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Autocode
[](https://travis-ci.org/peterbecker/autocode)
Work in progress on a modular code generation framework. Works, but is expected to still change quite a bit.
General patterns:
* the module `autocode-plugin` contains the Maven plugin that handles the code generation
* the actual templates used to generate code are in so-called "PAKs", each has three modules:
* the actual templates and configuration for them: `*-pak`
* the runtime dependencies: `*-lib`
* a test project to generate some code and validate it: `*-test`
The test projects show usage of the plugin. Generally speaking it comes down to:
* add the Maven plugin to the build's `generate-sources` phase
* add all PAKs to be used to the plugin's `dependencies`
* add the matching runtime libraries to the build's `dependencies`
The PAKs are described in the `README.md` files of their main module. It is recommended to check
out the corresponding test module, including the generated code as that shows usage and scope.