-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathbuild.gradle
73 lines (66 loc) · 2.94 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
61
62
63
64
65
66
67
68
69
70
71
72
73
plugins {
id "jmfayard.github.io.gradle-kotlin-dsl-libs" version "0.2.1"
}
allprojects {
def isRoot = it == it.rootProject
buildscript {
ext.kotlin_version = '1.2.60'
ext.serialization_version = '0.6.1'
ext.nodeVersion = '8.9.4'
ext.kotlin_native_version = "0.8.1"
if (isRoot) return // avoid error "Cannot change dependencies of configuration ':classpath' after it has been resolved."
repositories {
maven { url 'http://dl.bintray.com/kotlin/kotlin-eap-1.2' }
maven { url "https://kotlin.bintray.com/kotlinx" }
maven { url 'https://maven.google.com' }
maven { url "https://plugins.gradle.org/m2/" }
maven { url "http://dl.bintray.com/kotlin/kotlin-dev" }
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
maven { url 'https://maven.fabric.io/public' }
maven { url "https://dl.bintray.com/jetbrains/kotlin-native-dependencies" }
jcenter()
mavenCentral()
mavenLocal()
google()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-native-gradle-plugin:$kotlin_native_version"
classpath "org.jetbrains.kotlin:kotlin-frontend-plugin:0.0.32"
classpath "org.jetbrains.kotlinx:kotlinx-gradle-serialization-plugin:$serialization_version"
classpath("org.jetbrains.kotlinx:kotlinx-coroutines-core:0.12")
classpath 'com.google.gms:google-services:3.1.1'
classpath 'com.android.tools.build:gradle:3.1.4'
classpath 'com.moowork.gradle:gradle-node-plugin:1.2.0'
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.1"
classpath 'io.fabric.tools:gradle:1.25.4'
}
}
repositories {
maven { url 'http://dl.bintray.com/kotlin/kotlin-eap-1.2' }
maven { url "https://kotlin.bintray.com/kotlinx" }
maven { url 'https://maven.google.com' }
maven { url 'https://jitpack.io' }
maven { url "http://dl.bintray.com/kotlin/kotlin-dev" }
maven { url "http://dl.bintray.com/kotlinx/kotlinx" }
maven { url "http://dl.bintray.com/hypnosphi/kotlin-wrappers" }
maven { url "http://dl.bintray.com/hypnosphi/kotlin-js-wrappers" }
maven { url "https://kotlin.bintray.com/kotlin-js-wrappers/" }
mavenCentral()
jcenter()
}
tasks.withType(Test) {
testLogging {
showStandardStreams = true
events "passed", "failed"
}
}
}
task serverPrepare(type: Copy, dependsOn: [":web:build", ":web:bundle"]) {
doFirst { delete "$rootDir/backend/static" }
from "$rootDir/web/build/bundle", "$rootDir/web/src/main/web"
into "$rootDir/backend/static/static"
finalizedBy ":backend:build"
}
apply from: 'dependencies.gradle'
apply from: 'imagesShare.gradle'