-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle
76 lines (60 loc) · 1.86 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
74
75
76
buildscript {
ext.objectboxVersion = '2.1.0'
repositories {
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "io.objectbox:objectbox-gradle-plugin:$objectboxVersion"
}
}
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.2.30'
}
apply plugin: 'kotlin-kapt'
apply plugin: 'application'
apply plugin: 'io.objectbox'
group 'com.longforus'
version '1.0'
repositories {
jcenter()
mavenCentral()
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
sourceCompatibility = 1.8
mainClassName = "com.longforus.apidebugger.MainKt"
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'lib')
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
// Optional: include all native libraries for distribution
implementation "io.objectbox:objectbox-kotlin:$objectboxVersion"
implementation "io.objectbox:objectbox-linux:$objectboxVersion"
implementation "io.objectbox:objectbox-macos:$objectboxVersion"
implementation "io.objectbox:objectbox-windows:$objectboxVersion"
implementation "io.objectbox:objectbox-java:$objectboxVersion"
kapt "io.objectbox:objectbox-processor:$objectboxVersion"
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'org.apache.commons:commons-lang3:3.8'
implementation 'com.squareup.okhttp3:okhttp:3.11.0'
implementation 'com.jgoodies:jgoodies-forms:1.9.0'
}
//task copyRes(type: Copy, dependsOn: compileJava) {
// compileJava.getOutputs().files.forEach{f->
// println(f.getAbsolutePath())
// }
//}
// enable debug output for plugin
objectbox {
debug false
}
// enable debug output for annotation processor
tasks.withType(JavaCompile) {
options.compilerArgs += [ "-Aobjectbox.debug=false" ]
options.encoding = "UTF-8"
}