Hi,
I do not understand why this fails:
plugins {
id 'groovy'
id 'com.github.hauner.jarTest' version '1.0.1'
}
with
An exception occurred applying plugin request [id: 'com.github.hauner.jarTest', version: '1.0.1']
> Failed to apply plugin [id 'com.github.hauner.jarTest']
> Could not find property 'testClasses' on project ':SubB'.
When using apply plugin:
there is no problem.
The plugin creates a task that dependsOn: testClasses
. It looks like groovy
is not yet applied when gradle applies the plugin. This is surprising…
I can probably apply java
from the plugin to avoid the problem.
Still it would be nice to understand why it fails using plugin
.