mardi 13 septembre 2016

Gradle: war task overrides test tasks in subprojects

I have "test" tasks in subprojects:

test {
    description = 'Runs tests that are marked as @FastTest.'

    useJUnit {  includeCategories 'category.FastTest'  }
}

If I add "war" task to the root project:

apply plugin: 'war'

, it overrides test tasks in subprojects, e.g. it ignores my "test" task properties. How do I suppress "war" task overriding "test" tasks?

Aucun commentaire:

Enregistrer un commentaire