See the details at https://docs.gradle.org/current/userguide/declaring_dependencies.html

I'd add the following to the dependencies:

implementation files(<path to ext jar1>, <path to ext jar2>,...)


On 10/27/20 1:43 PM, Brenden Towey wrote:
Hi folks,

I'm trying to add a library to a new NetBeans Gradle project I just created.  The library is new too, just two Jar files I added from my hard drive.

I don't see an option to add a library when I right click on the project.  Does this function exist somewhere?

If not, could I get some help adding a dependency to my Gradle build file?  With the NetBeans plugins I'm not sure exactly what I'd need to do.  I'll need to add two Jar files or one NB library to the compile time and runtime dependencies. My Gradle file looks like this:

apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'application'


mainClassName = 'GClient.Main'

repositories {
    jcenter()
}

dependencies {
    testCompile 'junit:junit:4.12'
}



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to