exposed-intellij-plugin icon indicating copy to clipboard operation
exposed-intellij-plugin copied to clipboard

Support kotlinx-datetime and jodatime

Open EpicSquid opened this issue 2 years ago • 0 comments

Addresses #9

This provides a configuration item for which time library to generate time and datetime mappings for. This can be set using either the gradle DSL or the configuration file as shown below.

kotlinx-datetime:

exposedCodeGeneratorConfig {
	dateTimeProvider = "kotlin-datetime"
}

// or in config.yml
dateTime = kotlin-datetime

java.time

exposedCodeGeneratorConfig {
	dateTimeProvider = "java-time"
}

// or in config.yml
dateTime = java-time

jodatime

exposedCodeGeneratorConfig {
	dateTimeProvider = "jodatime"
}

// or in config.yml
dateTime = jodatime

This has been tested in my own projects as functional using mavenLocal publishing of the plugin.

EpicSquid avatar Jan 19 '23 04:01 EpicSquid