Zip directory to multiple destinations using Gradle

Is it possible with Gradle’s Zip task to copy the resulting zip into multiple destinations? AFAIK you can only zip multiple input directories with only one output destination. Is there a way to zip a …

gradle build broken after dependency update

I use gradle to build a java project (ASCIIGenome). One of the dependencies of ASCIIGenome is a repository on github (htsjdk, as you can see is a fork with some changes of mine). The ASCIIGenome …

Unzip specific zip file from nested zip file using ANT

I have a zip file ex. ‘test.zip’ that contains 2 more zip files within it – A.zip and B.zip. I want to only extract contents of A.zip and leave B.zip untouched. I did try out the below code snippet, …

Gradle migration 3.1.4 -> 3.5.1; :app module doesn’t compile; ClassNotFoundException: Didn’t find class on path: DexPathList

I have two applications where I face the same issue while trying to update project target API from 27 to 29. To do this, first I need to update Gradle plugin at least to 3.2.+. Project is building …

Build docker image with jetty – when should I build?

I’m working on ‘dockerizing’ a java web application (https://github.com/kermitt2/grobid) which I want to run using jetty. Here the Dockerfile: FROM jetty:9.3-jre8 ADD ./grobid-home/target/grobid-…

Installing and using Gradle in a docker image/container

I am getting this strange error at the end of the process of creating a docker image from a Dockerfile: /bin/sh: 1: gradle: not found INFO[0003] The command [/bin/sh -c gradle test jar] returned a …