Centralized configuring kotlinx-serialization plugin

This commit is contained in:
dankito 2024-08-19 23:08:56 +02:00
parent 25b8a025fd
commit 56c9fd79bd
5 changed files with 9 additions and 3 deletions

1
.gitignore vendored
View File

@ -9,6 +9,7 @@ out/
**/kotlin-js-store
.gradle
.kotlin
/local.properties

View File

@ -1,5 +1,7 @@
plugins {
kotlin("multiplatform")
kotlin("plugin.serialization")
id("org.jetbrains.kotlinx.atomicfu")
}

View File

@ -20,7 +20,7 @@ buildscript {
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.22"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}

View File

@ -1,9 +1,9 @@
plugins {
id("org.jetbrains.kotlin.multiplatform")
id("org.jetbrains.kotlin.plugin.serialization") version "$kotlinVersion"
id("org.jetbrains.kotlin.plugin.serialization")
id("org.jetbrains.kotlinx.atomicfu")
id "maven-publish"
id("maven-publish")
}

View File

@ -1,4 +1,5 @@
pluginManagement {
val kotlinVersion: String by settings
val atomicfuVersion: String by settings
repositories {
@ -7,6 +8,8 @@ pluginManagement {
}
plugins {
// id("org.jetbrains.kotlin.multiplatform") version kotlinVersion
id("org.jetbrains.kotlin.plugin.serialization") version kotlinVersion
id("org.jetbrains.kotlinx.atomicfu") version atomicfuVersion
}
}