Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle repo from gitlab?

I have a private gitlab repository. In gitlab I have published a library as a JAR file. This lib will be used by two other applications. How can I make the gradle build scripts use my private gitlab to load this dependency?

like image 485
jonua Avatar asked Jun 21 '16 10:06

jonua


1 Answers

AFAIK this is not directly supported, so you can:

  1. Download the file to file system and use the file system dependency
  2. setup a custom Ivy resolver
  3. hack into ResolutionStrategy
like image 85
Crazyjavahacking Avatar answered Oct 14 '22 15:10

Crazyjavahacking