ソースを参照

SONAR-21476 Enable JFrog authentication explicitly

tags/10.4.0.87286
Jacek Poreda 4ヶ月前
コミット
a2fe6dbb5b
1個のファイルの変更16行の追加1行の削除
  1. 16
    1
      build.gradle

+ 16
- 1
build.gradle ファイルの表示

@@ -88,7 +88,15 @@ allprojects {
}

maven {
if (!artifactoryUsername || !artifactoryPassword) {
if (artifactoryPassword) {
authentication {
header(HttpHeaderAuthentication)
}
credentials(HttpHeaderCredentials) {
name = "Authorization"
value = "Bearer $artifactoryPassword"
}
} else {
// Workaround for artifactory
// https://www.jfrog.com/jira/browse/RTFACT-13797
repository = 'public'
@@ -98,6 +106,13 @@ allprojects {
ivy {
if (artifactoryUsername && artifactoryPassword) {
url "${artifactoryUrl}/sonarsource-bucket"
authentication {
header(HttpHeaderAuthentication)
}
credentials(HttpHeaderCredentials) {
name = "Authorization"
value = "Bearer $artifactoryPassword"
}

patternLayout {
artifact '/[organisation]/[module]/[module]-[revision].[ext]'

読み込み中…
キャンセル
保存