feature MIR-6740: [Android] Добавление поддержки Android 14

migrate to gradle 8.0
This commit is contained in:
Bogdan Terehov 2023-12-27 23:34:41 +03:00
parent 1794e7c08e
commit 0a1180d114
4 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ dependencies {
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "17"
}
gradlePlugin {

View File

@ -52,7 +52,7 @@ abstract class ApiGeneratorPlugin : Plugin<Project> {
val outputLanguage = extension.outputLanguage ?: throw IllegalStateException("Configure output language code for api generator plugin")
javaexec {
main = "-jar"
setMain("-jar")
workingDir = rootDir
args = listOfNotNull(
configurations.getByName("apiGenerator").asPath,

View File

@ -63,7 +63,7 @@ class SwaggerApiGeneratorAndroidPlugin : Plugin<Project> {
workingDir = file(taskWorkingDir)
classpath = files(configurations.getByName(GENERATOR_CONFIG).asPath,
configurations.getByName(TI_GENERATOR_CONFIG).asPath)
main = "io.swagger.codegen.v3.cli.SwaggerCodegen"
setMain("io.swagger.codegen.v3.cli.SwaggerCodegen")
args = listOfNotNull(
"generate",
"-i",

View File

@ -42,7 +42,7 @@ class CpdLinter : Linter {
}
tasks.withType<Cpd> {
reports.xml.required.set(true)
reports.xml.destination = getCpdReportFile()
reports.xml.setDestination(getCpdReportFile())
ignoreFailures = true
source = getSources(extension.excludes)
}