File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed
Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ buildscript {
1111 classpath " de.thetaphi:forbiddenapis:2.2"
1212 classpath " de.aaschmid:gradle-cpd-plugin:1.0"
1313 classpath " io.spring.gradle:dependency-management-plugin:1.0.4.RELEASE"
14+ classpath " jp.classmethod.aws:gradle-aws-plugin:0.41"
1415 }
1516}
1617
@@ -90,7 +91,8 @@ subprojects {
9091 repositories {
9192 jcenter()
9293 mavenCentral()
93- maven { url " http://maven.xet.jp/release" } // for baseunits
94+ maven { url " http://maven.classmethod.info/snapshot" } // for baseunits
95+ maven { url " http://maven.classmethod.info/release" } // for baseunits
9496 }
9597
9698 dependencies {
@@ -104,9 +106,28 @@ subprojects {
104106 testCompile " org.mockito:mockito-core"
105107 }
106108
109+ apply plugin : " jp.classmethod.aws"
110+ aws {
111+ profileName = null
112+ }
107113
108114 // ======== Publishing =======
109115 publishing {
116+ repositories {
117+ maven {
118+ def releasesRepoUrl = " ${ System.getenv("PUBLISH_REPOSITORY")} /release"
119+ def snapshotsRepoUrl = " ${ System.getenv("PUBLISH_REPOSITORY")} /snapshot"
120+ url version. endsWith(" SNAPSHOT" ) ? snapshotsRepoUrl : releasesRepoUrl
121+
122+ credentials(AwsCredentials ) {
123+ def profileName = project. hasProperty(" awsProfileForMetropolisRepo" ) ? project. awsProfileForMetropolisRepo : null
124+ def cred = aws. newCredentialsProvider(profileName). credentials
125+ accessKey cred. getAWSAccessKeyId()
126+ secretKey cred. getAWSSecretKey()
127+ }
128+ }
129+ }
130+
110131 publications {
111132 mavenJava(MavenPublication ) {
112133 from components. java
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ springSecurityOauth2Version = 2.2.1.RELEASE
44awsJavaSdkVersion = 1.11.233
55
66lombokVersion = 1.18.2
7- baseunitsVersion = 2.14
7+ baseunitsVersion = 20200313-13b46a0-SNAPSHOT
88
99junitVersion = 4.12
1010hamcrestVersion = 1.3
You can’t perform that action at this time.
0 commit comments