You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and sets the package property to literally com.zivver.$module$ instead of com.zivver.mynewservice.
G8Module.generate calls G8.transformProps, but all that does is apply Maven version lookups. When it then passes the arguments to G8.fromDirectory, they are treated as literal and they are not resolved. Giter8 itself usually does a more complicated thing which seems to always boil down to applyTemplate.
G8.fromDirectory skips the interactive prompt if at least one property is passed as an argument. I suggest passing just the first property, since it generally ought to be a literal (or is required to be? I'm not sure).
The text was updated successfully, but these errors were encountered:
G8Module.generate calls G8.transformProps, but all that does is apply Maven version lookups. When it then passes the arguments to G8.fromDirectory, they are treated as literal and they are not resolved. Giter8 itself usually does a more complicated thing which seems to always boil down to applyTemplate.
Thanks a lot for digging in and linking all this. 🤔 I'll have to think a bit more about the best way to approach/fix this.
Prior to this change only the maven properties were actually resolved
leaving the rest not. This would cause for example `$package$` to end up
being generated as `$package`. Now we ensure everything that we can is
resolved by mimicking the way it's done in the sbt plugin.
NOTE: I still plan on improving this a bit by allowing the user to pass
in values to validate/generate which can be used to generate with
specific values.
Closes#11
My
default.properties
contains these lines:which results in this output:
and sets the
package
property to literallycom.zivver.$module$
instead ofcom.zivver.mynewservice
.G8Module.generate
callsG8.transformProps
, but all that does is apply Maven version lookups. When it then passes the arguments toG8.fromDirectory
, they are treated as literal and they are not resolved. Giter8 itself usually does a more complicated thing which seems to always boil down toapplyTemplate
.G8.fromDirectory
skips the interactive prompt if at least one property is passed as an argument. I suggest passing just the first property, since it generally ought to be a literal (or is required to be? I'm not sure).The text was updated successfully, but these errors were encountered: