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
There is currently only one build option for generating Jackson annotations. Let expand Gradle and Maven options to provide more abilities to configure Jackson annotations.
Gradle:
kobby {
kotlin {
dto {
jackson {
// Is Jackson annotations generation enabled// By default `true` if `com.fasterxml.jackson.core:jackson-annotations`// artifact is in the project dependencies
enabled =true
}
}
}
}
The Gradle jackson section is defined in KobbyKotlinDtoJacksonExtension class. See source code here
Maven:
<build>
<plugins>
<plugin>
<groupId>io.github.ermadmi78</groupId>
<artifactId>kobby-maven-plugin</artifactId>
<version>1.1.0</version>
<executions>
<execution>
<goals>
<goal>generate-kotlin</goal>
</goals>
<configuration>
<kotlin>
<dto>
<jackson>
<!-- Is Jackson annotations generation enabled --><!-- By default `true` if `com.fasterxml.jackson.core:jackson-annotations` --><!-- artifact is in the project dependencies -->
<enabled>true</enabled>
</jackson>
</dto>
</kotlin>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
The Maven jackson section is defined in KotlinDtoJacksonConfig class. See source code here
The text was updated successfully, but these errors were encountered:
@lewisenator, Great job, thank you!
I have merged you pull request to main branch. I can publish a release with your improvements this weekend or wait for the Builder Issue. How will you be more comfortable?
There is currently only one build option for generating Jackson annotations. Let expand Gradle and Maven options to provide more abilities to configure Jackson annotations.
Gradle:
The Gradle
jackson
section is defined inKobbyKotlinDtoJacksonExtension
class. See source code hereMaven:
The Maven
jackson
section is defined inKotlinDtoJacksonConfig
class. See source code hereThe text was updated successfully, but these errors were encountered: