assertj-generator-gradle-plugin icon indicating copy to clipboard operation
assertj-generator-gradle-plugin copied to clipboard

Expose binding of an assertj-core dependency automatically to all "touched" test tasks

Open Nava2 opened this issue 8 years ago • 1 comments

Associating the AssertJ dependency is done via the test configuration, i.e:

dependencies {                
    // https://mvnrepository.com/artifact/org.assertj/assertj-core
    testCompile group: 'org.assertj', name: 'assertj-core', version: '3.8.0'
}

It would be great to be able to assign this once and have it assigned to all targets that have generated sources. Probably via a "global scope" property or via the assertJ configuration.

Nava2 avatar May 30 '17 15:05 Nava2

Alternately, have a check in the plugin that tries to verify that the assertJ dependency is satisfied. We shouldn't be installing it by default.

Nava2 avatar Apr 30 '23 16:04 Nava2