Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8928915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:33:30+00:00 2026-06-15T08:33:30+00:00

I am building the FAT jar using gradle-1.3 version and building the FAT jar

  • 0

I am building the FAT jar using gradle-1.3 version and building the
FAT jar using this below properties

jar {
    from configurations.compile.collect { it.isDirectory() ? it : zipTree(it)
 }

Dependencies AS FOLLOWS

dependencies {
  compile fileTree(dir:'/trunk/Solutions/Seismic/Source/Binaries/CommonFunctions/build/libs', include: '*.jar')
  compile "org.apache.hadoop:hadoop-core:1.0.3"
  compile "commons-collections:commons-collections:3.2.1"
  compile "commons-configuration:commons-configuration:1.6"
  compile "commons-discovery:commons-discovery:0.2"
  compile "commons-lang:commons-lang:2.4"
  compile "commons-logging:commons-logging:1.1.1"
  compile "commons-logging:commons-logging:1.0.4"
  compile "log4j:log4j:1.2.16"
  compile "com.vividsolutions:jts:1.8"
  compile "commons-net:commons-net:1.4.1"
  compile "org.apache.hadoop:hadoop-core:1.0.3"
  compile "commons-httpclient:commons-httpclient:3.0.1"
  compile "org.mortbay.jetty:servlet-api:2.5-20081211"
  compile "org.apache.hbase:hbase:0.94.0"
  compile "org.apache.zookeeper:zookeeper:3.4.3"
}

But still by jar is included with following jar as reference

jay,
jline,
jni,
jnr,
jruby,
junit,
junit3.8.1

But i don’t want to include these jars

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T08:33:31+00:00Added an answer on June 15, 2026 at 8:33 am

    You can exclude the dependencies by adding this to the bottom of your build:

    configurations.all*.dependencies*.withType(ModuleDependency)*.each {
      it.exclude group: "org.jline", module: "jline"
      it.exclude ...
    }
    

    This will iterate over the dependencies of all configurations and exclude the modules that you don’t want to include.

    If you want to exclude all transitive dependencies, it is easier to set the transitivity to false for the compile configuration:

    configurations.compile.transitive = false
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Building our Android app from Ant fails with this error: [apply] [apply] UNEXPECTED TOP-LEVEL
building upon the $.fn.serializeObject() function from this question , i'd like to be able
building a site using PHP and MySQL that needs to store a lot of
Building an Android application using Google's GCM service. I have implemented the onRegistered method
Building a website using a PHP based Ecommerce product Magento. The problem I have
building a site which has content for each section. urls range from; /work/ /work/print/
I've been researching on building web applications in a true client-server fashion. This type
I'm building a website and I have tested this sql statement on the production
Building on this question , is there a simple solution for having a multi-key
Building from source outside of macports is a breeze. Building with macports takes forever

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.