-
Notifications
You must be signed in to change notification settings - Fork 2
/
settings.gradle
39 lines (34 loc) · 1.28 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
36
37
38
39
import com.amazonaws.auth.AWSCredentialsProviderChain
import com.amazonaws.auth.EnvironmentVariableCredentialsProvider
import com.amazonaws.auth.profile.ProfileCredentialsProvider
rootProject.name = rootProjectName
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "com.amazonaws:aws-java-sdk-core:1.11.+"
}
}
include "gaia-sdk-java:gaia-sdk-api"
include "gaia-sdk-java:gaia-sdk-core"
include "gaia-sdk-java:gaia-sdk-http"
include "gaia-sdk-java:gaia-sdk-graphql"
include "gaia-sdk-java:gaia-sdk-mqtt"
include "gaia-sdk-javascript"
include "gaia-sdk-python"
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"