It looks like using a plugin built with 2.x has issues when setting testSrcDirs on a Test task.
I get the following error:
Caused by: groovy.lang.MissingPropertyException: Could not set unknown property 'testSrcDirs' for task ':init-plugins:integTest' of type org.gradle.api.tasks.testing.Test.
at org.gradle.internal.metaobject.AbstractDynamicObject.setMissingProperty(AbstractDynamicObject.java:117)
at org.gradle.internal.metaobject.ConfigureDelegate.setProperty(ConfigureDelegate.java:108)
at com.linkedin.ligradle.testing.plugin.GradleIntegrationTestingPlugin$_addIntegrationTestTask_closure1.doCall(GradleIntegrationTestingPlugin.groovy:65)
Here is the relevant part of the codebase:
def integTest = project.tasks.create('integTest', Test)
integTest.configure {
shouldRunAfter 'test'
group = 'Verification'
description = "Run integration tests"
reports.junitXml.destination = "$project.buildDir/integration-test-results"
reports.html.destination = "$project.buildDir/reports/integrationTests"
testClassesDir = project.sourceSets.integTest.output.classesDir
classpath = project.sourceSets.integTest.runtimeClasspath
testSrcDirs = []
jvmArgs '-Xmx512m', '-XX:MaxPermSize=256m', '-XX:+HeapDumpOnOutOfMemoryError'