forked from pbreault/adb-idea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
80 lines (59 loc) · 1.85 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
77
78
79
80
buildscript {
ext.kotlin_version = '1.3.72'
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id "org.jetbrains.intellij" version "0.4.16"
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
apply plugin: 'java'
apply plugin: 'kotlin'
repositories {
mavenCentral()
jcenter()
}
sourceSets {
main {
resources {
exclude 'website/adb_operations_popup.png'
exclude 'website/find_actions.png'
exclude 'website/debug_howto.png'
}
}
}
if (!hasProperty('StudioCompilePath')) {
throw new GradleException("No StudioCompilePath value was set, please create gradle.properties file")
}
intellij {
pluginName 'adb_idea'
updateSinceUntilBuild false
intellij.localPath = project.hasProperty("StudioRunPath") ? StudioRunPath : StudioCompilePath
}
group 'com.developerphil.intellij.plugin.adbidea'
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:${kotlin_version}"
compile "org.jooq:joor-java-8:0.9.7"
compileOnly fileTree(dir: "$StudioCompilePath/plugins/android/lib", include: ['*.jar'])
compileOnly fileTree(dir: "$StudioCompilePath/lib", include: ['*.jar'])
testCompile 'junit:junit:4.12'
testCompile fileTree(dir: "$StudioCompilePath/plugins/android/lib", include: ['*.jar'])
testCompile fileTree(dir: "$StudioCompilePath/lib", include: ['*.jar'])
testCompile "org.mockito:mockito-core:1.+"
testCompile "com.google.truth:truth:1.0.1"
}
task(verifySetup) {
doLast {
def ideaJar = "$StudioCompilePath/lib/idea.jar"
if (!file(ideaJar).exists()) {
throw new GradleException("$ideaJar not found, set StudioCompilePath in gradle.properties")
}
}
}
compileJava.dependsOn verifySetup