Skip to content

Commit

Permalink
Reduce Kotlin compiler version to something older
Browse files Browse the repository at this point in the history
This ensures that Truthish can be used on a larger number of
projects.
  • Loading branch information
bitspittle committed Apr 15, 2024
1 parent 867d39a commit 013a5c6
Show file tree
Hide file tree
Showing 3 changed files with 213 additions and 201 deletions.
10 changes: 7 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import org.jetbrains.dokka.gradle.DokkaTask
import javax.xml.parsers.DocumentBuilderFactory

plugins {
kotlin("multiplatform") version "1.9.23"
// NOTE: Intentionally older version to maximize compatibility with projects in the wild
// Going much older and this buildscript won't compile
kotlin("multiplatform") version "1.7.21"
id("org.jetbrains.dokka") version "1.9.20"
id("org.jetbrains.kotlinx.kover") version "0.7.6"
`maven-publish`
Expand Down Expand Up @@ -79,8 +81,10 @@ kotlin {
}

sourceSets {
commonTest.dependencies {
implementation(kotlin("test"))
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
}
}
}
}
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ kotlin.code.style=official
kotlin.native.ignoreDisabledTargets=true
# Native builds keep failing; bump up Gradle memory sizes
org.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=512m
kotlin.mpp.stability.nowarn=true
# The Android Gradle plugin asked me to do this
kotlin.mpp.androidSourceSetLayoutVersion=2
Loading

0 comments on commit 013a5c6

Please sign in to comment.