devonfw / cobigen

Code-based Incremental Generator
Apache License 2.0
35 stars 70 forks source link

#158: MVP level 3 for language agnostic templates #1636

Closed hohwille closed 1 year ago

hohwille commented 1 year ago

Adresses/Fixes #158 Extends PR #1635

Overview:

Remaining TODOs:

@devonfw/cobigen

hohwille commented 1 year ago

Currently I get this error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile (default-testCompile) on project tempeng-agnostic: Compilation failure
[ERROR] /D:/projects/devonfw/workspaces/cobigen/cobigen/cobigen-plugins/cobigen-templateengines/cobigen-tempeng-agnostic/src/test/java/x_rootpackage_x/x_component_x/common/X_EntityName_XEto.java:[14,40] annotation @com.devonfw.cobigen.api.annotation.CobiGenDynamicType not applicable in this type context

However, in Eclipse I do not get these errors. Seems that actually we need Java 17 for this feature. Can someone confirm or come with a different explanation?

hohwille commented 1 year ago

It seems that I only got this annotation compiler error locally. Even better :)

hohwille commented 1 year ago

It would be awesome if someone could give feedback whether my templates structure and config is valid:

hohwille commented 1 year ago

And again replaced with new PR #1646