create account

GRADLE: HOW TO ADD A LIST OF LOCAL .JAR FILES TO THE BUILD CLASSPATH by gubatron

View this thread on: hive.blogpeakd.comecency.com
· @gubatron ·
GRADLE: HOW TO ADD A LIST OF LOCAL .JAR FILES TO THE BUILD CLASSPATH
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’
    )
}
```
👍  
properties (23)
authorgubatron
permlinkgradle-how-to-add-a-list-of-local-jar-files-to-the-build-classpath
categoryjava
json_metadata{"tags":["java","gradle","programming","coding","code"]}
created2016-07-16 00:24:39
last_update2016-07-16 00:24:39
depth0
children0
last_payout2016-08-26 03:00:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length538
author_reputation230,683,055,280
root_title"GRADLE: HOW TO ADD A LIST OF LOCAL .JAR FILES TO THE BUILD CLASSPATH"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id128,115
net_rshares0
author_curate_reward""
vote details (1)