Replace the (deprecated) ‘compile’ with ‘implementation’
> On Jun 1, 2021, at 4:40 AM, mez...@yahoo.com.invalid > <mez...@yahoo.com.INVALID> wrote: > > Hi to All, > I went from Gradle 6.5 to 6.8 to 6.9 with no problems with a very small > project. > > With Gradle 7 (all 7s) Netbeans 12.2 and 12.4, openjdk 15.0.2, the same > project gives me this problem: > <nngfkgkjcipkiggd.png> > > > With Gradle 7, the syntax to add a local .jar file is the same ? > > The project foresees a local .jar. With Gradle 6.x it was possible to set in > the classpath in the following way: > ================Gradle params: > apply plugin: 'java' > apply plugin: 'jacoco' > apply plugin: 'application' > > repositories { > mavenCentral () > } > > dependencies { > testImplementation 'junit: junit: 4.13' > compile files('../tco_lib/dist/tco_lib.jar') > } > ================End Gradle params. > > Thanks in advance if anyone can give me a tip, > Valerio