The ‘compile’ configuration shouldn’t be used. It has been deprecated[1][2] in favour of ‘implementation’ and ‘api’ for a long time now. It is no-longer available in Gradle 7.[3]
Scott [1] https://docs.gradle.org/current/userguide/upgrading_version_5.html#changes_6.0 [2] https://stackoverflow.com/questions/44413952/gradle-implementation-vs-api-configuration [3] https://docs.gradle.org/current/userguide/upgrading_version_6.html > On Aug 21, 2021, at 2:22 AM, Rob Walker <[email protected]> wrote: > > > Just doing a quick doc scan – and the “implementation” configuration is > documented as part of the java-library plugin: > > plugins { > id 'java-library' > } > > But your config below seems to be using the normal java plugin (which is what > provides the normal “compile” configurations that I mention below) > > subprojects { > apply plugin: 'java' > > dependencies { > implementation 'commons-io:commons-io:2.11.0' > > implementation 'commons-codec:commons-codec:1.15' > > .... > > } > > Could also be worth digging into. > > --- > Rob Walker > >
