forked from LouisCAD/Splitties
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
44 lines (39 loc) · 1 KB
/
build.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
37
38
39
40
41
42
43
44
/*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
plugins {
id("com.android.library")
kotlin("multiplatform")
`maven-publish`
id("com.jfrog.bintray")
}
android {
setDefaults()
}
kotlin {
metadataPublication(project)
androidWithPublication(project)
sourceSets {
getByName("commonMain").dependencies {
api(splitties("experimental"))
}
getByName("androidMain").dependencies {
api(Libs.kotlin.stdlibJdk7)
api(Libs.androidX.fragment)
api(splitties("lifecycle-coroutines"))
}
matching { it.name.startsWith("android") }.all {
languageSettings.apply {
useExperimentalAnnotation("kotlin.Experimental")
}
}
}
}
afterEvaluate {
publishing {
setupAllPublications(project)
}
bintray {
setupPublicationsUpload(project, publishing, skipMetadataPublication = true)
}
}