How do I download a dependency drum from S3 using gradle?
How to download dependency byte from S3 using gradle?
Here is my build.gradle
group 'com.hello'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'maven-publish'
repositories {
mavenCentral()
maven {
url "https://s3.amazonaws.com/maven-repo-bucket"
credentials(AwsCredentials) {
accessKey "${System.getenv('aws_access_id')}"
secretKey "${System.getenv('aws_secret_key')}"
}
}
}
dependencies {
compile files('hello1.jar')
compile files('hello2.jar')
compile group: 'com.google.code.gson', name: 'gson', version: '2.7'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
maven-repo-bucket
is my s3 name and hello1.jar
and hello2.jar
is the name of my jar files under my s3 bucket. I don't know the group id and artifact id from these files, but I want to download hello1.jar
and hello2.jar
and host in a local maven repository just like any other dependency.
+3
source to share
No one has answered this question yet
Check out similar questions: