text 用于测试gradle并行测试。和`-t`参数继续运行测试。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 用于测试gradle并行测试。和`-t`参数继续运行测试。相关的知识,希望对你有一定的参考价值。

apply plugin: "java"

group = "amadeu01.github.io"
description = "My Java Library"
version = "1.0"

repositories {
    mavenCentral()
}

dependencies {
    compile "commons-collections:commons-collections:3.2"
    testCompile "junit:junit:4.11"
}

sourceSets {
    main {
        java {
            srcDirs = ["java"]
        }
    }
}

jar {
    manifest {
        attributes "Implementation-Version": project.version
    }
}

test {
    maxParallelForks = (Runtime.runtime.availableProcessors() / 2) + 1
}

以上是关于text 用于测试gradle并行测试。和`-t`参数继续运行测试。的主要内容,如果未能解决你的问题,请参考以下文章