unbroken-dome / gradle-testsets-plugin

A plugin for the Gradle build system that allows specifying test sets (like integration or acceptance tests).
MIT License
230 stars 50 forks source link

Warning deprecation in Gradle 5.4.1 #76

Closed yuriy-slobodchikov closed 5 years ago

yuriy-slobodchikov commented 5 years ago

Warning deprecation in Gradle 5.4.1 ... line 73 apply plugin: 'org.unbroken-dome.test-sets' ... line 89 testSets { line 90 integrationTest { dirName = "integrationTest" } } ...

gradle --warning-mode all

Configure project : Internal API constructor DefaultPolymorphicDomainObjectContainer(Class, Instantiator) has been deprecated. This is scheduled to be removed in Gradle 6.0. at build_6osb3c58wjj2abijvlueeo14t$_run_closure1.doCall(...\build.gradle:73) (Run with --stacktrace to get the full stack trace of this deprecation warning.) The ProjectLayout.configurableFiles() method has been deprecated. This is scheduled to be removed in Gradle 6.0. Please use the ObjectFactory.fileCollection() method instead. at build_6osb3c58wjj2abijvlueeo14t$_run_closure1$_closure6.doCall(...\build.gradle:90) (Run with --stacktrace to get the full stack trace of this deprecation warning.)

tkrullmann commented 5 years ago

Hi, unfortunately this is something I can't easily fix without breaking compatibility with earlier Gradle versions. The Gradle API still doesn't contain an "official" way to construct a PolymorphicDomainObjectContainer, and the said constructor is the only one that already existed in 4.10.

tkrullmann commented 5 years ago

Duplicate of #63