Splitting all output directories in Gradle

后端 未结 4 1004
别跟我提以往
别跟我提以往 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条回答
  •  时光取名叫无心
    2021-02-05 02:57

    For example, if you mix Java, Kotlin and Groovy project structure should be like the following:

    root/
        src/
           main/
                java/
                kotlin/
                groovy/
           test/
                java/
                kotlin/
                groovy/
    

    In you build.gradle you have to specify plugins that are required for specific language.

    apply plugin: 'java'
    apply plugin: 'groovy'
    apply plugin: 'kotlin'
    

提交回复
热议问题