Sometimes you don’t want/cant use maven repos, all you have is a bunch of local jars on disk that you want to use as part of your compilation classpath, and the freaking gradle documentation is too vague. Here is an example: ``` dependencies { compile files(‘lib/jars/gettext-commons.jar’, ‘lib/jars/lucene-3.5.0.jar’, ‘lib/jaudiotagger.jar’, ‘lib/jars/h2-1.3.164.jar’, ‘lib/jars/messages.jar’, ‘lib/jars/slf4j-api-1.7.5.jar’, ‘lib/jars/jaudiotagger.jar’, ‘lib/jars/metadata-extractor-2.6.2.jar’ ) } ```
author | gubatron |
---|---|
permlink | gradle-how-to-add-a-list-of-local-jar-files-to-the-build-classpath |
category | java |
json_metadata | {"tags":["java","gradle","programming","coding","code"]} |
created | 2016-07-16 00:24:39 |
last_update | 2016-07-16 00:24:39 |
depth | 0 |
children | 0 |
last_payout | 2016-08-26 03:00:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 538 |
author_reputation | 230,683,055,280 |
root_title | "GRADLE: HOW TO ADD A LIST OF LOCAL .JAR FILES TO THE BUILD CLASSPATH" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 128,115 |
net_rshares | 0 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
mirahu | 0 | 0 | 100% |