Skip to content

Release 4.1.0

Latest
Compare
Choose a tag to compare
@ermadmi78 ermadmi78 released this 12 Sep 10:27
· 1 commit to main since this release

As a side effect of [#43] bug fix, it became possible to generate mutable DTO classes.

To enable mutable DTO generation

Gradle:

kobby {
    kotlin {
        dto {
            maxNumberOfFieldsForImmutableDtoClass = 0 // Generate mutable DTO classes
            maxNumberOfFieldsForImmutableInputClass = 0 // Generate mutable Input classes
        }
    }
}

Maven:

<build>
    <plugins>
        <plugin>
            <groupId>io.github.ermadmi78</groupId>
            <artifactId>kobby-maven-plugin</artifactId>
            <executions>
                <execution>
                    <phase>generate-sources</phase>
                    <goals>
                        <goal>generate-kotlin</goal>
                    </goals>
                    <configuration>
                        <kotlin>
                            <dto>
                                <!-- Generate mutable DTO classes -->
                                <maxNumberOfFieldsForImmutableDtoClass>0</maxNumberOfFieldsForImmutableDtoClass>
                                
                                <!-- Generate mutable Input classes -->
                                <maxNumberOfFieldsForImmutableInputClass>0</maxNumberOfFieldsForImmutableInputClass>
                            </dto>
                        </kotlin>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

Bug fixes

  • java.lang.ClassFormatError for generated dto classes [#43]

New features

  • Mutable DTO support

Contributors