Netflix / genie

Distributed Big Data Orchestration Service
https://netflix.github.io/genie
Apache License 2.0
1.7k stars 365 forks source link

File type argument used in `compilerArgs` where String is expected #1189

Open johann-beleites-sonarsource opened 1 year ago

johann-beleites-sonarsource commented 1 year ago

In the root project's build.gradle, the compileJava task is configured as follows:

    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.

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?