forked from androidannotations/androidannotations
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
56 lines (47 loc) · 1.4 KB
/
build.gradle
File metadata and controls
56 lines (47 loc) · 1.4 KB
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
buildscript {
ext.kotlin_version = "1.1.51"
repositories {
google()
jcenter()
}
dependencies {
// replace with the current version of the Android plugin
classpath "com.android.tools.build:gradle:3.0.0"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version"
}
}
repositories {
mavenLocal()
mavenCentral()
}
apply plugin: "com.android.application"
apply plugin: "kotlin-android"
apply plugin: "kotlin-allopen"
apply plugin: "kotlin-kapt"
android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
defaultConfig {
minSdkVersion 14
targetSdkVersion 26
}
sourceSets {
main.java.srcDirs += "src/main/kotlin"
}
}
allOpen {
annotation("org.androidannotations.api.KotlinOpen")
}
// If you have different applicationIds for buildTypes or productFlavors uncomment this block.
//kapt {
// arguments {
// arg("resourcePackageName", "org.androidannotations.gradle")
// }
//}
def AAVersion = "4.5.0-SNAPSHOT" // change this to your desired version, for example the latest stable: 4.4.0
dependencies {
kapt "org.androidannotations:androidannotations:$AAVersion"
implementation "org.androidannotations:androidannotations-api:$AAVersion"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
}