-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathbuild.gradle.kts
40 lines (38 loc) · 1.35 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
buildscript {
repositories {
google()
mavenCentral()
jcenter()
maven("https://plugins.gradle.org/m2/")
maven("https://dl.bintray.com/kotlin/kotlin-eap")
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin}")
classpath("com.android.tools.build:gradle:${Versions.agp}")
classpath("com.bugsnag:bugsnag-android-gradle-plugin:${Versions.bugsnagPlugin}")
classpath("org.jetbrains.kotlin:kotlin-frontend-plugin:${Versions.kotlinFrontentPlugin}")
}
}
allprojects {
repositories {
google()
mavenCentral()
jcenter()
maven("https://dl.bintray.com/kotlin/kotlin-eap")
maven("https://dl.bintray.com/kotlin/kotlin-js-wrappers")
maven("https://kotlin.bintray.com/kotlinx")
}
// TODO remove once https://github.com/Kotlin/kotlin-frontend-plugin/issues/141 is fixed
plugins.whenPluginAdded {
if (this.javaClass.name == "org.jetbrains.kotlin.gradle.frontend.FrontendPlugin") {
val fixTask = tasks.register("webpack-config-fix") {
this.doLast { file("webpack.config.d").mkdir() }
}
afterEvaluate {
tasks.named("webpack-config").configure {
this.dependsOn(fixTask)
}
}
}
}
}