Skip to content

Commit e31f3aa

Browse files
committed
Specify Kotlin plugin version in gradle.properties to avoid duplicating it
1 parent a940847 commit e31f3aa

5 files changed

+22
-19
lines changed

build.gradle.kts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
plugins {
22
id("kotlinx.team.infra") version "0.3.0-dev-64"
3-
kotlin("multiplatform") version "1.5.0" apply false
4-
kotlin("plugin.serialization") version "1.5.0" apply false
3+
kotlin("multiplatform") apply false
54
}
65

76
infra {

core/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import java.util.Locale
44
import javax.xml.parsers.DocumentBuilderFactory
55

66
plugins {
7-
id("kotlin-multiplatform")
7+
kotlin("multiplatform")
88
kotlin("plugin.serialization")
99
`maven-publish`
1010
}

gradle.properties

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ group=org.jetbrains.kotlinx
44
version=0.2.1
55
versionSuffix=SNAPSHOT
66

7+
kotlinVersion=1.5.0
78
serializationVersion=1.2.1
89

910
kotlin.mpp.enableGranularSourceSetsMetadata=true

settings.gradle

-16
This file was deleted.

settings.gradle.kts

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
pluginManagement {
2+
repositories {
3+
maven(url = "https://maven.pkg.jetbrains.space/kotlin/p/kotlinx/maven")
4+
mavenCentral()
5+
gradlePluginPortal()
6+
}
7+
val kotlinVersion: String by settings
8+
plugins {
9+
kotlin("multiplatform") version kotlinVersion
10+
kotlin("plugin.serialization") version kotlinVersion
11+
}
12+
}
13+
14+
rootProject.name = "Kotlin-DateTime-library"
15+
16+
include(":core")
17+
project(":core").name = "kotlinx-datetime"
18+
include(":serialization")
19+
project(":serialization").name = "kotlinx-datetime-serialization"

0 commit comments

Comments
 (0)