-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
60 lines (52 loc) · 1.96 KB
/
build.gradle
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
buildscript {
repositories {
maven { url 'https://dl.bintray.com/kotlin/kotlin-dev' }
maven { url 'https://plugins.gradle.org/m2/' }
maven { url 'https://dl.bintray.com/jetbrains/kotlin-native-dependencies' }
maven { url 'https://maven.google.com' }
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.moowork.gradle:gradle-node-plugin:$gradle_node_version"
classpath "org.jetbrains.kotlin:kotlin-native-gradle-plugin:$kotlin_native_version"
classpath "com.android.tools.build:gradle:$gradle_android_version"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$bintray_plugin_version"
}
}
static def platformOf(project) {
if (project.name.endsWith('common')) return 'common'
if (project.name.endsWith('browser')) return 'js'
if (project.name.endsWith('native')) return 'native'
if (project.name.endsWith('ios')) return 'native'
if (project.name.endsWith('jvm')) return 'jvm'
return 'common'
}
def libs = ['common', 'jvm', 'ios', 'browser']
configure(subprojects.findAll { libs.contains(it.name) }) {
def platform = platformOf(project)
group 'io.ktor.common.client'
version '0.1.15'
repositories {
maven { url 'https://dl.bintray.com/kotlin/kotlin-dev' }
maven { url 'https://kotlin.bintray.com/kotlinx' }
maven { url 'https://maven.google.com' }
jcenter()
}
apply plugin: "kotlin-platform-$platform"
if (platform != 'native') {
kotlin.experimental.coroutines 'enable'
}
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
tasks.withType(Test) {
testLogging {
showStandardStreams = true
events 'passed', 'failed'
}
}
}
configure(subprojects.findAll { libs.contains(it.name) }) { project ->
apply from: rootProject.file('gradle/publish.gradle')
}