Skip to content

Commit

Permalink
build: declare kotlin version in gradle properties file
Browse files Browse the repository at this point in the history
  • Loading branch information
shaksternano committed Jul 3, 2024
1 parent 8919522 commit 771e07a
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
kotlin("jvm") version "2.0.0"
kotlin("jvm")
}

allprojects {
Expand Down
2 changes: 1 addition & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ val postgreSqlVersion: String by project
val junitVersion: String by project

plugins {
kotlin("plugin.serialization") version "2.0.0"
kotlin("plugin.serialization")
}

dependencies {
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
org.gradle.jvmargs = -Xmx2G

# Dependencies
kotlinVersion=2.0.0
kotlinCoroutinesVersion = 1.8.0
ktorVersion = 2.3.10
jdaVersion = 5.0.0-beta.23
Expand Down
2 changes: 1 addition & 1 deletion revolt/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
val ulidKotlinVersion: String by project

plugins {
kotlin("plugin.serialization") version "2.0.0"
kotlin("plugin.serialization")
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
kotlin("plugin.serialization") version "2.0.0"
kotlin("plugin.serialization")
}

dependencies {
Expand Down
16 changes: 16 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
pluginManagement {
repositories {
gradlePluginPortal()
}
resolutionStrategy {
eachPlugin {
if (requested.id.id.startsWith("org.jetbrains.kotlin")) {
gradle.rootProject.extra["kotlinVersion"]?.let {
useVersion(it as String)
}
}
}
}
}

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

rootProject.name = "Borgar"

include(
Expand Down

0 comments on commit 771e07a

Please sign in to comment.