From 56c9fd79bd4303c9bdcc70ab11279ee8e17e9834 Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 19 Aug 2024 23:08:56 +0200 Subject: [PATCH] Centralized configuring kotlinx-serialization plugin --- .gitignore | 1 + SampleApplications/NativeApp/build.gradle.kts | 2 ++ build.gradle | 2 +- fints4k/build.gradle | 4 ++-- settings.gradle.kts | 3 +++ 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 3c9121fb..4d1373fa 100755 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ out/ **/kotlin-js-store .gradle +.kotlin /local.properties diff --git a/SampleApplications/NativeApp/build.gradle.kts b/SampleApplications/NativeApp/build.gradle.kts index 582496df..b91576bc 100644 --- a/SampleApplications/NativeApp/build.gradle.kts +++ b/SampleApplications/NativeApp/build.gradle.kts @@ -1,5 +1,7 @@ plugins { kotlin("multiplatform") + kotlin("plugin.serialization") + id("org.jetbrains.kotlinx.atomicfu") } diff --git a/build.gradle b/build.gradle index f5cf9aa8..a06fc9c0 100644 --- a/build.gradle +++ b/build.gradle @@ -20,7 +20,7 @@ buildscript { } dependencies { - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.22" + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" } } diff --git a/fints4k/build.gradle b/fints4k/build.gradle index e685b60d..ca6ebf32 100644 --- a/fints4k/build.gradle +++ b/fints4k/build.gradle @@ -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") } diff --git a/settings.gradle.kts b/settings.gradle.kts index 3089a221..535fde43 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -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 } }