Skip to content

Commit

Permalink
cleanup plugin block in buildscripts
Browse files Browse the repository at this point in the history
  • Loading branch information
DinoMarlir committed Jun 2, 2024
1 parent 10d613c commit 03de650
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 10 deletions.
4 changes: 2 additions & 2 deletions api/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
kotlin("jvm") version "2.0.0"
kotlin("plugin.serialization") version "2.0.0"
alias(libs.plugins.jvm)
alias(libs.plugins.serialization)
`maven-publish`
}

Expand Down
4 changes: 2 additions & 2 deletions common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
kotlin("jvm") version "2.0.0"
kotlin("plugin.serialization") version "2.0.0"
alias(libs.plugins.jvm)
alias(libs.plugins.serialization)
}

repositories {
Expand Down
7 changes: 7 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ ktor = "2.3.11"
kotlinx-serialization = "1.6.3"
clikt = "4.4.0"
mordant = "2.6.0"
kotlin = "2.0.0"
shadow = "8.1.1"

[libraries]
kotlinxCoroutinesCore = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version.ref = "kotlinxCoroutinesCore" }
Expand All @@ -21,5 +23,10 @@ clikt = { group = "com.github.ajalt.clikt", name = "clikt", version.ref = "clikt
mordant = { group = "com.github.ajalt.mordant", name = "mordant", version.ref = "mordant" }
mordantCoroutines = { group = "com.github.ajalt.mordant", name = "mordant-coroutines", version.ref = "mordant" }

[plugins]
jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }
serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }

[bundles]
ktorClient = ["ktor-client-core", "ktor-client-cio", "ktor-client-content-negotiation", "ktor-serialization-kotlinx-json"]
6 changes: 3 additions & 3 deletions node/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
val ktor_version: String by project

plugins {
kotlin("jvm") version "2.0.0"
kotlin("plugin.serialization") version "2.0.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
alias(libs.plugins.jvm)
alias(libs.plugins.serialization)
alias(libs.plugins.shadow)
}

repositories {
Expand Down
2 changes: 1 addition & 1 deletion runner/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
kotlin("jvm") version "2.0.0"
alias(libs.plugins.jvm)
}

repositories {
Expand Down
4 changes: 2 additions & 2 deletions wrapper/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
kotlin("jvm") version "2.0.0"
kotlin("plugin.serialization") version "2.0.0"
alias(libs.plugins.jvm)
alias(libs.plugins.serialization)
}

repositories {
Expand Down

0 comments on commit 03de650

Please sign in to comment.