-
Notifications
You must be signed in to change notification settings - Fork 4
/
settings.gradle.kts
36 lines (33 loc) · 1.17 KB
/
settings.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* Copyright 2020 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
pluginManagement {
repositories {
mavenLocal()
gradlePluginPortal()
google()
maven { // The google mirror is less flaky than mavenCentral()
url = uri("https://maven-central.storage-download.googleapis.com/repos/central/data/")
}
maven { url = uri ("https://plugins.gradle.org/m2/") }
}
resolutionStrategy {
eachPlugin {
if (requested.id.id == "org.jetbrains.kotlin.jvm") {
useVersion(gradle.rootProject.extra["kotlin_version"].toString())
}
if (requested.id.id == "kotlin-kapt") {
useModule("org.jetbrains.kotlin:kotlin-gradle-plugin:${gradle.rootProject.extra["kotlin_version"]}")
}
}
}
}
include(":email-service")
//
val properties = startParameter.projectProperties
// ./gradlew -PlibraryPublish -PlibraryPublishToMavenLocal publishToMavenLocal
// ./gradlew :email-service:publish -PlibraryPublish
val libraryPublish: Boolean = properties.containsKey("libraryPublish")
if(!libraryPublish) {
// include(":sample")
}