Daniil
Daniil

Reputation: 1398

Deploy gradle to directory

This may have been asked to death, but I can't find an answer. I have a pretty simple java project (not web), its built with ant with sources located in ./src and dependencies in ./lib. Looking to modernize it to either maven or gradle. Since I've had good results with gradle and android, decided to go with gradle. That means I'll be dropping ./lib for dependency management.

However, I cannot figure out how to use grade to deploy the project. I would like to deploy manually for now. So I would need to have jar build from the sources and having all dependencies copied into lib (or whatever) directory where jar is.

So far... I'm getting nowhere quickly.

Upvotes: 2

Views: 754

Answers (1)

RaGe
RaGe

Reputation: 23697

Gradle Application plugin is perfectly suited for this use-case.

the task distZip will create a deployable zip file complete with dependencies.

Upvotes: 1

Related Questions