Points to Remember
Default location for gradle dependencies is ~/.gradle or /home/{user}/.gradle .
We can specify the location from where to gradle should find dependencies and where it should upload the created artifacts.
How to upload an Artifact to a custom location in file system
buildscript {
repositories {
maven {
url uri( "$buildDir/repo" )
}
}
}
group 'com.ekiras'
version '1.0-SNAPSHOT'
apply plugin: 'groovy'
apply plugin: 'maven'
repositories {
mavenCentral()
}
dependencies {
// dependencies
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: uri( "$buildDir/repo" ))
}
}
}
In the above example,
uploadArchives {
repositories {
mavenDeployer {
repository(url:...