You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by "mezval@yahoo.com.INVALID" <me...@yahoo.com.INVALID> on 2021/06/01 08:40:52 UTC
Problem with gradle 7 (try with netbeans 12.2 and 12.4)
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:
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
Re: (SOLVED) Problem with gradle 7 (try with netbeans 12.2 and 12.4)
Posted by "mezval@yahoo.com.INVALID" <me...@yahoo.com.INVALID>.
Many thanks Scott, problem solved with your suggestion.
Valerio Mezzalira.
Il 01/06/2021 16:00, Scott Palmer ha scritto:
> Replace the (deprecated) ‘compile’ with ‘implementation’
>
>
>> On Jun 1, 2021, at 4:40 AM, mezval@yahoo.com.invalid
>> <ma...@yahoo.com.invalid> <mezval@yahoo.com.INVALID
>> <ma...@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
>
Re: Problem with gradle 7 (try with netbeans 12.2 and 12.4)
Posted by Scott Palmer <sw...@gmail.com>.
Replace the (deprecated) ‘compile’ with ‘implementation’
> On Jun 1, 2021, at 4:40 AM, mezval@yahoo.com.invalid <me...@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