-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
50 lines (41 loc) · 1.39 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
45
46
47
48
49
50
import java.io.FileInputStream
import java.util.Properties
plugins {
`kotlin-dsl`
}
//apply(from = "load_gradle_properties.gradle.kts")
val properties = Properties()
val input = FileInputStream(file("../gradle.properties"))
properties.load(input)
input.close()
for (key in properties.stringPropertyNames()) {
extensions.extraProperties[key] = properties.getProperty(key)
}
group = project.properties["project.group"].toString()
version = project.properties["project.version"].toString()
repositories {
// TODO Fix
flatDir {
dirs("plugin")
}
mavenLocal()
gradlePluginPortal()
mavenCentral()
jcenter()
google()
maven( url = "https://plugins.gradle.org/m2" )
maven( url = "https://repo.gradle.org/gradle/libs-releases-local" )
maven( url = "https://dl.bintray.com/kotlin/kotlin-eap" )
maven( url = "https://dl.bintray.com/kotlin/kotlin-dev" )
}
dependencies {
val kotlinVersion = project.properties["kotlin.version"]
testCompile("junit:junit:4.12")
compile("com.fasterxml.jackson.core:jackson-databind:2.9.8")
compile("com.fasterxml.jackson.module:jackson-module-kotlin:2.9.8")
compile("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.8")
compile("com.android.tools.build:gradle:3.3.2")
compile("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
compile(gradleApi())
compile("org.jetbrains.kotlin.xcode-compat:org.jetbrains.kotlin.xcode-compat.gradle.plugin:0.2.5")
}