Created
April 4, 2020 09:21
-
-
Save robhinds/ace26eb2de4c2c1f9c220ad11b39b73b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.amazonaws.auth.profile.ProfileCredentialsProvider | |
initscript { | |
dependencies { | |
classpath 'com.amazonaws:aws-java-sdk-core:1.11.5' | |
} | |
} | |
publishing { | |
repositories { | |
maven { | |
name "s3-repo" | |
ext { | |
awsCredentials = new ProfileCredentialsProvider("buildtool").credentials | |
} | |
url "s3://MY_BUCKET_NAME/maven-repo" | |
credentials(AwsCredentials) { | |
accessKey awsCredentials.AWSAccessKeyId | |
secretKey awsCredentials.AWSSecretKey | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment