Skip to content

Commit 476d6de

Browse files
author
Michael Kuzmin
committed
Authenticate in 'kotlin-dev' repo on Bintray
1 parent f8b3c44 commit 476d6de

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

build.gradle

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@ buildscript {
5151
repositories {
5252
jcenter()
5353
maven { url "https://kotlin.bintray.com/kotlinx" }
54-
maven { url "https://kotlin.bintray.com/kotlin-dev" }
54+
maven {
55+
url "https://kotlin.bintray.com/kotlin-dev"
56+
credentials {
57+
username = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER') ?: ""
58+
password = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY') ?: ""
59+
}
60+
}
5561
maven { url "https://kotlin.bintray.com/kotlin-eap" }
5662
maven { url "https://jetbrains.bintray.com/kotlin-native-dependencies" }
5763
maven { url "https://plugins.gradle.org/m2/" }
@@ -125,7 +131,13 @@ allprojects {
125131
google()
126132
}
127133
jcenter()
128-
maven { url "https://kotlin.bintray.com/kotlin-dev" }
134+
maven {
135+
url "https://kotlin.bintray.com/kotlin-dev"
136+
credentials {
137+
username = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER') ?: ""
138+
password = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY') ?: ""
139+
}
140+
}
129141
maven { url "https://kotlin.bintray.com/kotlin-eap" }
130142
maven { url "https://kotlin.bintray.com/kotlinx" }
131143
}

0 commit comments

Comments
 (0)