Skip to content

Commit

Permalink
change: Restore Java 8 compatibility (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski authored Aug 21, 2021
1 parent e89a165 commit d438262
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 7 deletions.
2 changes: 2 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Changed
- Update _Android Gradle Plugin_ to _7.0.1_, see [release notes](https://developer.android.com/studio/releases/gradle-plugin)

## Fixed
- Support back Java 8

## [0.32.0] - 2021-08-12
## Changed
Expand Down
3 changes: 3 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ dependencies {

tasks.withType(Test).configureEach {
useJUnitPlatform()
javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(11)
}
}

gradlePlugin {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ internal class AndroidApplicataionPluginTest : WithGradleProjectTest() {
lateinit var module2Root: File

@BeforeEach
@Suppress("LongMethod")
fun setUp() {
rootDirectory.apply {
resolve("settings.gradle").writeText("""include ":module1", ":module2" """)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ internal class AndroidLibraryPluginTest : WithGradleProjectTest() {
lateinit var module2Root: File

@BeforeEach
@Suppress("LongMethod")
fun setUp() {
rootDirectory.apply {
mkdirs()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ internal class ForbidJavaFilesTaskTest : WithGradleProjectTest() {
lateinit var test: File

@BeforeEach
@Suppress("LongMethod")
fun setUp() {
rootDirectory.apply {
mkdirs()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ internal class AndroidQualityPluginTest : WithGradleProjectTest() {
private lateinit var module2Root: File

@BeforeEach
@Suppress("LongMethod")
fun setUp() {
rootDirectory.apply {
resolve("settings.gradle").writeText("""include ":module1", ":module2" """)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ allprojects {
pluginManager.withPlugin("java") {
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
languageVersion.set(JavaLanguageVersion.of(8))
}
}

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/groovy/myproject.java-conventions.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
languageVersion = JavaLanguageVersion.of(8)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ internal class MultiplatformLibraryPluginTest : WithGradleProjectTest() {
lateinit var origin: File

@BeforeEach
@Suppress("LongMethod")
fun setUp() {
rootDirectory.apply {
mkdirs()
Expand Down

0 comments on commit d438262

Please sign in to comment.