发布工件时省略一些子项目

时间:2015-01-29 17:42:11

标签: gradle

我正在尝试使用多项目构建脚本。我有两个产生工件的子项目 - 这似乎有效。

我已经为集成测试添加了第三个子项目。它不会产生任何伪影。但是,构建现在失败

* What went wrong:
A problem occurred evaluating project ':integration'.
> Could not find method archives() for arguments [build_37vpdqfqs7jn4pfg1ti6cgviu8$_run_closure5@2b675988] on project ':integration'.

在尝试将工件上传到maven时,问题发生在:integration:uploadArchives阶段。

如何配置此子项目而非以产生工件?

这是有问题的子项目构建文件:

apply plugin: 'scala'

dependencies {
    compile scalaLibrary
    compile project(':client')
    compile project(':service')

    testCompile junit
    testCompile(scalatest) {
        exclude group: 'org.scala-lang'
    }
}

jar.enabled = false

tasks.withType(ScalaCompile) {
    scalaCompileOptions.useAnt = false // Zinc incremental compiler
}

archives {}

artifacts {}

uploadArchives {}

0 个答案:

没有答案
相关问题