diff --git a/build.gradle b/build.gradle index 3882b4d..d572709 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ buildscript { Properties versionProperties = new Properties() versionProperties.load(new FileInputStream("$project.rootDir/version.properties")) - ext.kotlin_version = '1.3.50' + ext.kotlin_version = '1.8.10' ext.agp_version = '4.0.1' ext.plugin_version = versionProperties.getProperty("version") diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 05679dc..f42e62f 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/plugin/build.gradle b/plugin/build.gradle index 2251d37..91e6d58 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -29,6 +29,7 @@ def isCI = (System.getenv('CI') ?: 'false').toBoolean() // Maps supported Android plugin versions to the versions of Gradle that support it def supportedVersions = [ + "7.4.2": ["7.5.1", "7.6"], "7.0.0": ["7.1.1"], "4.2.2": ["6.8.3", "7.1.1"], "4.1.3": ["6.5.1", "6.8.3"], @@ -61,6 +62,11 @@ dependencies { testImplementation "org.junit.jupiter:junit-jupiter-api" } +java { + toolchain { + languageVersion.set(JavaLanguageVersion.of(8)) + } +} compileKotlin { kotlinOptions.jvmTarget = "1.8" } diff --git a/plugin/src/main/kotlin/com/nishtahir/CargoBuildTask.kt b/plugin/src/main/kotlin/com/nishtahir/CargoBuildTask.kt index 2c1966f..bc9d38a 100644 --- a/plugin/src/main/kotlin/com/nishtahir/CargoBuildTask.kt +++ b/plugin/src/main/kotlin/com/nishtahir/CargoBuildTask.kt @@ -133,6 +133,9 @@ open class CargoBuildTask : DefaultTask() { theCommandLine.add(features.featureSet.joinToString(" ")) } } + else -> { + // when() must be exhaustive + } } if (cargoExtension.profile != "debug") {