forked from pbreault/adb-idea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
50 lines (35 loc) · 1.07 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
plugins {
id "org.jetbrains.intellij" version "0.1.10"
}
apply plugin: 'java'
sourceSets {
main {
resources {
exclude 'website/adb_operations_popup.png'
exclude 'website/find_actions.png'
exclude 'website/debug_howto.png'
}
}
}
intellij {
version 'IC-15.0.5' // this value is not important, as long as you can compile
pluginName 'adb_idea'
updateSinceUntilBuild false
intellij.alternativeIdePath = AndroidStudioPath
}
group 'com.developerphil.intellij.plugin.adbidea'
def majorVersion = '1.4.0-experimental'
dependencies {
compileOnly fileTree(dir: "$AndroidStudioPath/plugins/android/lib", include: ['*.jar'])
compileOnly fileTree(dir: "$AndroidStudioPath/lib", include: ['*.jar'])
}
configurations {
compile.exclude module:'idea'
}
task(verifySetup) << {
def ideaJar = "$AndroidStudioPath/lib/idea.jar"
if ( ! file(ideaJar).exists() ) {
throw new GradleException("$ideaJar not found, set AndroidStudioPath in gradle.properties")
}
}
compileJava.dependsOn verifySetup