update BuildScripts plugins

This commit is contained in:
Anton Badretdinov 2025-04-09 16:05:59 +03:00
parent d6315b283d
commit 60b1e4a3e9
3 changed files with 3 additions and 3 deletions

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"
mainClass.set("-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"
mainClass.set("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.outputLocation.set(getCpdReportFile())
ignoreFailures = true
source = getSources(extension.excludes)
}