Skip to content

Commit

Permalink
fix: Support back Java 8 (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski authored May 5, 2021
1 parent 2534a39 commit 15e33f6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.27.2] - 2021-05-05
## Fixed
- Support back Java 8

## [0.27.1] - 2021-05-05
## Changed
- Disabled `experimental:argument-list-wrapping` rule
Expand Down
22 changes: 15 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ commonConfig {
}

allprojects {
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
apiVersion = "1.4"
languageVersion = "1.4"
useIR = true
}
}
pluginManager.withPlugin("kotlin") { plugin ->
def kotlinVersion = plugins.getPlugin("kotlin").kotlinPluginVersion
configurations.configureEach {
Expand All @@ -27,4 +20,19 @@ allprojects {
}
}
}
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
apiVersion = "1.4"
languageVersion = "1.4"
useIR = true
}
}

pluginManager.withPlugin("java") {
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
}
}

0 comments on commit 15e33f6

Please sign in to comment.