-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
35 lines (30 loc) · 1.12 KB
/
settings.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import com.amazonaws.auth.AWSCredentialsProviderChain
import com.amazonaws.auth.EnvironmentVariableCredentialsProvider
import com.amazonaws.auth.profile.ProfileCredentialsProvider
rootProject.name = rootProjectName
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.amazonaws:aws-java-sdk-core:1.11.+"
}
}
include "intent-markup-java"
include "intent-markup-python"
include "intent-markup-javascript"
def awsCredentials() {
try {
return new AWSCredentialsProviderChain(
new ProfileCredentialsProvider(),
new EnvironmentVariableCredentialsProvider()
)?.credentials
} catch (Exception ex) {
logger.log(LogLevel.ERROR, "Error reading AWS credentials: " + ex.message)
return null
}
}
gradle.ext.awsAccessKey = awsCredentials()?.AWSAccessKeyId
gradle.ext.awsSecretKey = awsCredentials()?.AWSSecretKey
gradle.ext.releasesRepositoryUrl = "s3://leftshiftone-maven-artifacts.s3.eu-central-1.amazonaws.com/releases"
gradle.ext.snapshotsRepositoryUrl = "s3://leftshiftone-maven-artifacts.s3.eu-central-1.amazonaws.com/snapshots"