You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Amn Ojee Uw <am...@gmail.com> on 2023/01/08 03:41:15 UTC
How to add local jar to Gradle
Hello!
Can anyone tell how to add a local jar file to a Gradle-Java with
Gradle->Web Application using NetBeans 16?
Thanks in advance.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to add local jar to Gradle
Posted by Scott Palmer <sw...@gmail.com>.
“The build file” is the “build.gradle” file that you would be editing to add
this local dependency. So if your .jar file was in the same folder with
build.gradle, then you could just use:
compile files(‘my_local.jar’)
If it was in a subdirectory of your project you could use:
compile files(‘project_subdir/my_local.jar’)
Scott
> On Jan 10, 2023, at 9:38 AM, Amn Ojee Uw <am...@gmail.com> wrote:
>
>
>
>
> Thanks for the help, I really appreciate.
>
> In the link you suggested, the statement - '
>
>
>
> **_dependencies {
> compile files('path/local_dependency.jar')
> }_** ** _Where_** ** _path_** ** _is a directory path on your filesystem
> ..._**
> **__The_ _path_ _can be relative to the build file.__** I don't
> understand what meant by 'the build', can you help me?
>
> The attached pic show the project tree, that, I hope, will give an idea
> as to what the path looks like.
>
> Thanks!!
> **____**
>
> On 2023-01-08 4:11 a.m., Laszlo Kishalmi wrote:
>
>
>> <https://riptutorial.com/gradle/example/8349/add-a-local-jar-file-
dependency>
>
> On 1/7/23 19:41, Amn Ojee Uw wrote:
>
>>
>>> Hello!
>
> Can anyone tell how to add a local jar file to a Gradle-Java with
> Gradle->Web Application using NetBeans 16?
>
> Thanks in advance.
>
>
> \---------------------------------------------------------------------
> To unsubscribe, e-mail: [users-
> unsubscribe@netbeans.apache.org](mailto:users-
> unsubscribe@netbeans.apache.org)
> For additional commands, e-mail: [users-
> help@netbeans.apache.org](mailto:users-help@netbeans.apache.org)
>
> For further information about the NetBeans mailing lists, visit:
> <https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists>
>
>
>
> <Screenshot from 2023-01-08 05-58-10.png>
>
>
> \---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: How to add local jar to Gradle
Posted by Amn Ojee Uw <am...@gmail.com>.
Thanks for the help, I really appreciate.
In the link you suggested, the statement - '
*/|dependencies { compile files('path/local_dependency.jar') } |/**/Where /**/|path|/**/is a directory path on your filesystem ... /*
*/_The __|path|__can be relative to the build file. _/*I don't understand what meant by 'the build', can you help me?
The attached pic show the project tree, that, I hope, will give an idea as to what the path looks like.
Thanks!!
*/__/*
||
On 2023-01-08 4:11 a.m., Laszlo Kishalmi wrote:
> https://riptutorial.com/gradle/example/8349/add-a-local-jar-file-dependency
>
>
> On 1/7/23 19:41, Amn Ojee Uw wrote:
>> Hello!
>>
>> Can anyone tell how to add a local jar file to a Gradle-Java with
>> Gradle->Web Application using NetBeans 16?
>>
>> Thanks in advance.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: users-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
Re: How to add local jar to Gradle
Posted by Laszlo Kishalmi <la...@gmail.com>.
https://riptutorial.com/gradle/example/8349/add-a-local-jar-file-dependency
On 1/7/23 19:41, Amn Ojee Uw wrote:
> Hello!
>
> Can anyone tell how to add a local jar file to a Gradle-Java with
> Gradle->Web Application using NetBeans 16?
>
> Thanks in advance.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists