Open johann-beleites-sonarsource opened 1 year ago
In the root project's build.gradle, the compileJava task is configured as follows:
build.gradle
compileJava
compileJava { options.getGeneratedSourceOutputDirectory().set((File) project.generatedSourcesJavaDir) options.compilerArgs += [ "-Xlint:unchecked", "-Xlint:deprecation", "-s", project.generatedSourcesJavaDir ] }
In the ext block, generatedSourcesJavaDir is assigned a file. However, the compilerArgs in the compileJava task expect a list of Strings.
ext
generatedSourcesJavaDir
compilerArgs
Is there a particular reason to use a File type in the args list here or could this be changed to get the String path from the file?
In the root project's
build.gradle
, thecompileJava
task is configured as follows:In the
ext
block,generatedSourcesJavaDir
is assigned a file. However, thecompilerArgs
in thecompileJava
task expect a list of Strings.Is there a particular reason to use a File type in the args list here or could this be changed to get the String path from the file?