Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.

Commit 61d42e0

Browse files
committed
Define kotlin plugins in buildSrc
1 parent e431270 commit 61d42e0

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

buildSrc/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ repositories {
66
mavenCentral()
77
}
88

9+
val kotlinVersion = "1.6.10"
10+
911
dependencies {
10-
implementation(kotlin("gradle-plugin", "1.6.10"))
12+
implementation(kotlin("gradle-plugin", kotlinVersion))
13+
implementation("org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion")
1114
}

gradle/libs.versions.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[versions]
22

3-
kotlin = "1.6.10"
43
kotlinSerialization = "1.3.2"
54
kotlinCoroutines = "1.6.0"
65
kotlinHtml = "0.7.3"
@@ -18,8 +17,3 @@ kt-coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", vers
1817
kt-serialization = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinSerialization" }
1918
kt-html = { module = "org.jetbrains.kotlinx:kotlinx-html-jvm", version.ref = "kotlinHtml" }
2019
subethasmtp = { module = "com.github.davidmoten:subethasmtp", version.ref = "subethasmtp" }
21-
22-
[plugins]
23-
24-
kt-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
25-
kt-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }

simplekotlinmail-core/build.gradle.kts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,13 @@ plugins {
33
`java-version-script`
44
`maven-publish-script`
55

6-
libs.plugins.kt.serialization
6+
kotlin("plugin.serialization")
77
}
88

9-
/**
10-
* DEPENDENCY MANAGEMENT
11-
*/
12-
139
dependencies {
14-
// SIMPLE JAVA MAIL
1510
api(libs.simpleJavaMail)
1611
api(libs.simpleJavaMail.smime)
1712

18-
// COROUTINES
1913
api(libs.kt.coroutines)
20-
21-
// SERIALIZATION
2214
api(libs.kt.serialization)
2315
}

0 commit comments

Comments
 (0)