44
55buildscript {
66 repositories {
7- mavenLocal()
8-
97 jcenter()
108 google()
119
@@ -16,17 +14,13 @@ buildscript {
1614
1715 maven { url = uri(" https://dl.bintray.com/icerockdev/plugins-dev" ) }
1816 }
19- if (! properties.containsKey(" pluginPublish" )) {
20- dependencies {
21- Deps .plugins.values.forEach { classpath(it) }
22- }
17+ dependencies {
18+ Deps .plugins.values.forEach { classpath(it) }
2319 }
2420}
2521
2622allprojects {
2723 repositories {
28- mavenLocal()
29-
3024 google()
3125 jcenter()
3226
@@ -47,18 +41,21 @@ allprojects {
4741 val uniqueName = " ${project.group} .${project.name} "
4842
4943 kotlinExtension.targets.withType(org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget ::class .java) {
50- compilations[" main" ].kotlinOptions.freeCompilerArgs + = listOf (" -module-name" , uniqueName)
44+ compilations[" main" ].kotlinOptions.freeCompilerArgs + = listOf (
45+ " -module-name" ,
46+ uniqueName
47+ )
5148 }
5249 }
5350
54- afterEvaluate {
55- dependencies {
56- if (configurations.map { it.name }.contains(" compileOnly" )) {
51+ configurations
52+ .matching { it.name == " compileOnly" }
53+ .configureEach {
54+ dependencies {
5755 // fix of package javax.annotation does not exist import javax.annotation.Generated in DataBinding code
5856 " compileOnly" (" javax.annotation:jsr250-api:1.0" )
5957 }
6058 }
61- }
6259
6360 val project = this
6461 val bintrayPath: Pair <String , String >?
@@ -80,19 +77,6 @@ allprojects {
8077 }
8178 }
8279 }
83- this .name.endsWith(" -plugin" ) -> {
84- bintrayPath = " plugins" to " moko-widgets-generator"
85-
86- this .group = " dev.icerock.moko.widgets"
87- this .version = Versions .Plugins .mokoWidgets
88-
89- this .plugins.withType<JavaPlugin > {
90- this @allprojects.configure<JavaPluginExtension > {
91- sourceCompatibility = JavaVersion .VERSION_1_6
92- targetCompatibility = JavaVersion .VERSION_1_6
93- }
94- }
95- }
9680 else -> {
9781 bintrayPath = null
9882 }
@@ -105,7 +89,8 @@ allprojects {
10589 val artifact = bintrayPath.second
10690 val isDevPublish = project.properties.containsKey(" devPublish" )
10791 val fullRepoName = if (isDevPublish) " $repo -dev" else repo
108- val mavenUrl = " https://api.bintray.com/maven/icerockdev/$fullRepoName /$artifact /;publish=1"
92+ val mavenUrl =
93+ " https://api.bintray.com/maven/icerockdev/$fullRepoName /$artifact /;publish=1"
10994
11095 repositories.maven(mavenUrl) {
11196 this .name = " bintray"
0 commit comments