Skip to content

Commit aa251b0

Browse files
* baseunits の取得先変更
* publish 先変更
1 parent f4ff090 commit aa251b0

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

build.gradle

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff 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

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ springSecurityOauth2Version = 2.2.1.RELEASE
44
awsJavaSdkVersion = 1.11.233
55

66
lombokVersion = 1.18.2
7-
baseunitsVersion = 2.14
7+
baseunitsVersion = 20200313-13b46a0-SNAPSHOT
88

99
junitVersion = 4.12
1010
hamcrestVersion = 1.3

0 commit comments

Comments
 (0)