Skip to content

Commit 42c0eef

Browse files
committed
Add local Maven repository if it exists
1 parent 2d029d8 commit 42c0eef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

settings.gradle.kts

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ pluginManagement {
1111
// only when using Kotlin EAP releases ...
1212
maven { url = uri("https://dl.bintray.com/kotlin/kotlin-eap") }
1313
maven { url = uri("https://dl.bintray.com/kotlin/kotlin-dev") }
14+
15+
// Used for TeamCity build
16+
val m2LocalPath = File(".m2/repository")
17+
if (m2LocalPath.exists()) {
18+
maven(m2LocalPath.toURI())
19+
}
1420
}
1521

1622
resolutionStrategy {

0 commit comments

Comments
 (0)