🦲
mind
  • cleber's mind
  • plans
    • fact checking
    • personal assistant
  • self-management
    • agenda and tasks
    • mails and emails
  • knowledge
    • career
    • programming
      • Big O Notation
      • browsing data
      • C/C++
      • databases
      • eclipse
      • gradle
      • java
        • apache camel
      • javascript
      • naming convention
      • mysql
      • prolog
      • regex
      • REST
      • ssl/tls
      • version control
        • git commands
      • web-semantics
      • wot
    • research
      • mas
      • planning
      • math
        • probability
      • machine learning
      • nlp
      • speech recognition
      • data sources
      • data visualisation
    • it
      • asterisk
      • containers
        • installing docker
        • deploying busybox
        • deploying a sample
        • deploying node-red
        • deploying from the hub
      • clusters
        • installing kubernetes
        • deploying bootcamp
        • deploying nginx
        • deploying jacamo-rest
        • grafana
      • deploy
        • heroku
      • linux
        • tmux
        • vim
        • startup
      • networks
      • pdf
        • ssh
    • productivity
    • language
      • expressions
        • nice signposts
        • linking expressions
      • latex
      • scientific
      • writing
    • sailing
    • financial
      • assets
    • emergency
    • out of boxes
  • teaching
    • eletrônica digital
      • Conversão decimal para binário
      • Conversão binário para decimal
      • Sinais analógicos vs digitais
    • programação I
    • cabeamento estruturado
  • moments
    • insightful ai facts
    • ai4industry-hackathon
    • previous activities
  • brasil
  • external links
    • personal webpage
    • my github
Powered by GitBook
On this page
  • Cleaning gradle logs
  • Cleaning gradle cache
  • Do not execute a subtask
  • Force use of a local library (usually a snapshot)

Was this helpful?

  1. knowledge
  2. programming

gradle

gradle notes

Cleaning gradle logs

  • Gradle by default generate lots of logs. Checking disk usage by daemon and specially their logs: $ du -h --max-depth=1 ~/.gradle/daemon

  • To free disk usage:$ find ~/.gradle/daemon -name *.log -delete

Cleaning gradle cache

  • Removing local :$ rm -rf $HOME/.gradle/caches/

Do not execute a subtask

  • For instance, do not execute test when performing build$ ./gradlew build -x test

Force use of a local library (usually a snapshot)

Let us say the dependency 'org.jacamo:jacamo-rest:0.5-SNAPSHOT' was just compiled locally and it is necessary to use it in some project. Two steps needed:

  1. Copy the local .jar file to some folder of the project (e.g. lib/)

  2. Add a local dependency besides the existing one, gradle will prefer to use the local one, eg:

compile org.jacamo:jacamo-rest:0.5-SNAPSHOT'
compile files('lib/jacamo-rest-0.5-SNAPSHOT.jar')
PreviouseclipseNextjava

Last updated 2 years ago

Was this helpful?