Add serialization deps
This commit is contained in:
parent
8ea5207cde
commit
91a82c3736
2
.gitignore
vendored
2
.gitignore
vendored
@ -38,4 +38,4 @@ node_modules/
|
|||||||
.yarn/install-state.gz
|
.yarn/install-state.gz
|
||||||
.yarn-integrity
|
.yarn-integrity
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log**.zip
|
||||||
|
|||||||
12
config.toml
12
config.toml
@ -154,3 +154,15 @@ artifactId = "koin-core"
|
|||||||
version = "2.1.6"
|
version = "2.1.6"
|
||||||
category = "injection"
|
category = "injection"
|
||||||
default = true
|
default = true
|
||||||
|
|
||||||
|
[dependencies.Jackson]
|
||||||
|
groupId = "com.fasterxml.jackson.module"
|
||||||
|
artifactId = "jackson-module-kotlin"
|
||||||
|
version = "2.11.2"
|
||||||
|
category = "serialization"
|
||||||
|
|
||||||
|
[dependencies.Kotlinx-serialization]
|
||||||
|
groupId = "org.jetbrains.kotlinx"
|
||||||
|
artifactId = "kotlinx-serialization-runtime"
|
||||||
|
version = "1.0-M1-1.4.0-rc"
|
||||||
|
category = "serialization"
|
||||||
|
|||||||
BIN
example.zip
BIN
example.zip
Binary file not shown.
@ -1,7 +1,7 @@
|
|||||||
package starter
|
package starter
|
||||||
|
|
||||||
enum class Category {
|
enum class Category {
|
||||||
Server, Injection, Database, Test, Other
|
Server, Injection, Database, Serialization, Test, Other
|
||||||
}
|
}
|
||||||
|
|
||||||
enum class Scope {
|
enum class Scope {
|
||||||
|
|||||||
@ -11,6 +11,7 @@ class PomTemplate(private val engine: PebbleEngine) : Template {
|
|||||||
override fun render(project: Project): String {
|
override fun render(project: Project): String {
|
||||||
val args: MutableMap<String, Any?> = mutableMapOf(
|
val args: MutableMap<String, Any?> = mutableMapOf(
|
||||||
"dependencies" to project.dependencies.sortedBy { it.scope },
|
"dependencies" to project.dependencies.sortedBy { it.scope },
|
||||||
|
"kotlinxSerialization" to project.dependencies.any { it.name == "Kotlinx-serialization" },
|
||||||
)
|
)
|
||||||
|
|
||||||
project.inputs.forEach {
|
project.inputs.forEach {
|
||||||
|
|||||||
@ -20,5 +20,19 @@
|
|||||||
</executions>
|
</executions>
|
||||||
<configuration>
|
<configuration>
|
||||||
<jvmTarget>${java.version}</jvmTarget>
|
<jvmTarget>${java.version}</jvmTarget>
|
||||||
|
{% if kotlinxSerialization %}
|
||||||
|
<compilerPlugins>
|
||||||
|
<plugin>kotlinx-serialization</plugin>
|
||||||
|
</compilerPlugins>
|
||||||
|
{% endif %}
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
{% if kotlinxSerialization %}
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
|
<artifactId>kotlin-maven-serialization</artifactId>
|
||||||
|
<version>${kotlin.version}</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
{% endif %}
|
||||||
|
</plugin>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user