feature MIR-6740: [Android] Добавление поддержки Android 14
migrate to gradle 8.0
This commit is contained in:
parent
1794e7c08e
commit
17e6278247
|
|
@ -27,7 +27,7 @@ dependencies {
|
|||
|
||||
val compileKotlin: KotlinCompile by tasks
|
||||
compileKotlin.kotlinOptions {
|
||||
jvmTarget = "1.8"
|
||||
jvmTarget = "17"
|
||||
}
|
||||
|
||||
gradlePlugin {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ package static_analysis.linters
|
|||
import de.aaschmid.gradle.plugins.cpd.Cpd
|
||||
import de.aaschmid.gradle.plugins.cpd.CpdExtension
|
||||
import org.gradle.api.Project
|
||||
import org.gradle.api.file.RegularFileProperty
|
||||
import org.gradle.kotlin.dsl.findByType
|
||||
import org.gradle.kotlin.dsl.withType
|
||||
import static_analysis.errors.CpdError
|
||||
|
|
@ -42,7 +43,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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue