Splitting all output directories in Gradle

后端 未结 4 1045
别跟我提以往
别跟我提以往 2021-02-05 02:26

Gradle 4.0 came out yesterday and I updated my project for it.

Now I am getting the following warning:

Gradle now uses separate output directories

4条回答
  •  Happy的楠姐
    2021-02-05 02:56

    My case was a bit specific because output classes directories were used to construct classpath entry for command-line execution. But perhaps this will help someone.

    I decided to concatenate all output directories. The change I made was form

    sourceSets.integrationTest.output.classesDir
    

    to

    ext {
        classpathSeparator = System.properties['os.name'].toLowerCase().contains('windows')?";":":"
    }
    ...
    sourceSets.integrationTest.output.classesDirs.join(classpathSeparator)
    

提交回复
热议问题