Skip to content

Commit

Permalink
Target JDK8 (#25)
Browse files Browse the repository at this point in the history
* Target JDK8

This library is consumed by Okio which is extremely strict
on which JDKs it targets. We don't need anything newer anyway.

* Add a toolchain repository

---------

Co-authored-by: Jesse Wilson <[email protected]>
  • Loading branch information
swankjesse and squarejesse authored Oct 16, 2024
1 parent f5ba281 commit cfa735c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 20 deletions.
18 changes: 4 additions & 14 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ buildscript {
}

plugins {
id("com.github.gmazzo.buildconfig") version "3.1.0" apply false
alias(libs.plugins.buildconfig)
alias(libs.plugins.spotless)
}

Expand All @@ -41,9 +41,7 @@ configure<SpotlessExtension> {
ktlint()
.editorConfigOverride(
mapOf(
"ktlint_standard_comment-spacing" to "disabled", // TODO Re-enable
"ktlint_standard_filename" to "disabled",
"ktlint_standard_indent" to "disabled", // TODO Re-enable
)
)
}
Expand Down Expand Up @@ -82,7 +80,7 @@ allprojects {
Visibility.PROTECTED
))
reportUndocumented.set(false)
jdkVersion.set(11)
jdkVersion.set(8)

perPackageOption {
matchingRegex.set("app\\.cash\\.burst\\.internal\\..*")
Expand All @@ -104,21 +102,13 @@ allprojects {

plugins.withId("org.jetbrains.kotlin.multiplatform") {
configure<KotlinMultiplatformExtension> {
jvmToolchain(11)
// https://youtrack.jetbrains.com/issue/KT-61573
targets.configureEach {
compilations.configureEach {
compilerOptions.configure {
freeCompilerArgs.addAll("-Xexpect-actual-classes")
}
}
}
jvmToolchain(8)
}
}

plugins.withId("org.jetbrains.kotlin.jvm") {
configure<KotlinJvmProjectExtension> {
jvmToolchain(11)
jvmToolchain(8)
}
}

Expand Down
2 changes: 0 additions & 2 deletions burst-kotlin-plugin-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@ dependencies {
testImplementation(kotlin("test-junit"))
testImplementation(libs.assertk)
testImplementation(libs.kotlin.compile.testing)
testImplementation(libs.kotlin.reflect)
testImplementation(libs.kotlinx.coroutines.test)
}
6 changes: 2 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
[versions]
kotlin = "2.0.21"
kotlinx-coroutines = "1.9.0"

[libraries]
assertk = "com.willowtreeapps.assertk:assertk:0.28.1"
auto-service-compiler = { module = "dev.zacsweers.autoservice:auto-service-ksp", version = "1.2.0" }
auto-service-annotations = { module = "com.google.auto.service:auto-service-annotations", version = "1.1.1" }
auto-service-compiler = { module = "dev.zacsweers.autoservice:auto-service-ksp", version = "1.2.0" }
binary-compatibility-validator-gradle-plugin = { module = "org.jetbrains.kotlinx.binary-compatibility-validator:org.jetbrains.kotlinx.binary-compatibility-validator.gradle.plugin", version = "0.16.3" }
dokka-gradle-plugin = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version = "1.9.20" }
google-ksp = "com.google.devtools.ksp:symbol-processing-gradle-plugin:2.0.21-1.0.25"
junit = { module = "junit:junit", version = "4.13.2" }
kotlin-compile-testing = { module = "dev.zacsweers.kctfork:core", version = "0.5.1" }
kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect" }
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test" }
kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "kotlinx-coroutines" }
mavenPublish-gradle-plugin = { module = "com.vanniktech:gradle-maven-publish-plugin", version = "0.30.0" }

[plugins]
buildconfig = { id = "com.github.gmazzo.buildconfig", version = "3.1.0" }
spotless = { id = "com.diffplug.spotless", version = "6.25.0" }
burst-kotlin = { id = "app.cash.burst.kotlin" }
4 changes: 4 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version("0.8.0")
}

rootProject.name = "burst-root"

include(":burst")
Expand Down

0 comments on commit cfa735c

Please sign in to comment.