forked from icerockdev/moko-resources
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
36 lines (28 loc) · 1.02 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 2019 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
pluginManagement {
repositories {
mavenLocal()
jcenter()
google()
maven { url = uri("https://dl.bintray.com/kotlin/kotlin") }
maven { url = uri("https://kotlin.bintray.com/kotlinx") }
maven { url = uri("https://plugins.gradle.org/m2/") }
maven { url = uri("https://dl.bintray.com/icerockdev/plugins") }
}
resolutionStrategy.eachPlugin {
val module = Deps.plugins[requested.id.id] ?: return@eachPlugin
useModule(module)
}
}
enableFeaturePreview("GRADLE_METADATA")
val properties = startParameter.projectProperties
// ./gradlew -PlibraryPublish :gradle-plugin:publishPluginPublicationToMavenLocal :resources:publishToMavenLocal
val libraryPublish: Boolean = properties.containsKey("libraryPublish")
include(":resources")
include(":gradle-plugin")
if(!libraryPublish) {
include(":sample:android-app")
include(":sample:mpp-library")
}