尝试从Gradle转换为Maven

时间:2018-11-02 06:53:20

标签: maven gradle playframework maven-3

我需要将资产文件夹添加到项目中。

在Gradle中

model {
    components {
        play {
            platform play: '2.4.11', scala: '2.10', java: '1.8'

            binaries.all { binary ->
                binary.assets.addAssetDir unzipAssets.destinationDir
                binary.assets.builtBy unzipAssets
            }

            binaries.all {
                tasks.withType(PlatformScalaCompile) {
                    scalaCompileOptions.forkOptions.jvmArgs = ['-Xms1G', '-Xmx1G', '-Xss2M']
                }
            }
        }
    }
    distributions {
        playBinary {
            baseName = project.ext.playBinaryBaseName
        }
    }
}

idea {
    module {
        sourceDirs += file("app")
        testSourceDirs += file("test")
        scopes.COMPILE = [plus: [configurations.play], minus: []]
        scopes.RUNTIME = [plus: [configurations.playRun], minus: [configurations.play]]
        scopes.TEST = [plus: [configurations.playTest], minus: [configurations.playRun]]
    }
}

我正在尝试将其转换为Maven。但是我没有找到任何解决方案。任何人都可以告诉我该怎么做。谢谢。

0 个答案:

没有答案