diff --git a/build.gradle.kts b/build.gradle.kts index 9ba503b3..7647f320 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,21 +1,20 @@ -plugins { - kotlin("jvm") version "2.0.0" +buildscript { + repositories { + mavenCentral() + } + + val kotlinVersion: String by extra + + dependencies { + classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion") + } } -group = "net.codinux.banking.client" -version = "1.0.0-SNAPSHOT" +allprojects { + group = "net.codinux.banking.client" + version = "1.0.0-SNAPSHOT" -repositories { - mavenCentral() -} - -dependencies { - testImplementation(kotlin("test")) -} - -tasks.test { - useJUnitPlatform() -} -kotlin { - jvmToolchain(17) + repositories { + mavenCentral() + } } \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 7fc6f1ff..3a268dd6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1,4 @@ kotlin.code.style=official + + +kotlinVersion=2.0.10 diff --git a/settings.gradle.kts b/settings.gradle.kts index 58c12167..f4c264a7 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,3 +1,21 @@ +pluginManagement { + val kotlinVersion: String by settings + + + repositories { + mavenCentral() + gradlePluginPortal() + } + + plugins { + kotlin("multiplatform") version kotlinVersion + kotlin("jvm") version kotlinVersion +// kotlin("plugin.serialization") version kotlinVersion + + kotlin("plugin.allopen") version kotlinVersion + kotlin("plugin.noarg") version kotlinVersion + } +} plugins { id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0" }