Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save threadstonesecure/766c6fff1722d161a61bcc70b9a34fb8 to your computer and use it in GitHub Desktop.
Save threadstonesecure/766c6fff1722d161a61bcc70b9a34fb8 to your computer and use it in GitHub Desktop.
gradle-s3-publish
apply plugin: 'java'
apply plugin: 'maven-publish'
repositories { jcenter() }
dependencies { compile 'org.slf4j:slf4j-api:1.7.12' }
publishing {
repositories {
maven {
url "http://127.0.0.1:8081/artifactory/libs-release-local/"
credentials {
username "admin"
password "password"
}
}
maven {
url "s3://gradle-maven-repo/libs-release-local"
credentials(AwsCredentials) {
accessKey "${System.getenv('AWS_KEY')}"
secretKey "${System.getenv('AWS_SECRET')}"
}
}
}
publications {
mavenJava(MavenPublication) {
groupId 'com.me'
artifactId 'sample-project'
version '1.1'
from components.java
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment