forked from pbreault/adb-idea
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
74 lines (56 loc) · 1.93 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
plugins {
id "org.jetbrains.kotlin.jvm" version "1.5.21"
id "org.jetbrains.intellij" version "1.2.0"
}
repositories {
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
maven { url 'https://maven.aliyun.com/repository/google' }
mavenCentral()
jcenter()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceSets {
main {
resources {
exclude 'website/*.png'
}
}
}
if (!hasProperty('StudioCompilePath')) {
throw new GradleException("No StudioCompilePath value was set, please create gradle.properties file")
}
intellij {
pluginName = 'adb_idea'
updateSinceUntilBuild = false
localPath = project.hasProperty("StudioRunPath") ? StudioRunPath : StudioCompilePath
instrumentCode {
compilerVersion = "212.4746.92"
}
instrumentTestCode {
compilerVersion = "212.4746.92"
}
}
group 'com.developerphil.intellij.plugin.adbidea'
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.5.21'
implementation 'org.jooq:joor-java-8:0.9.14'
compileOnly fileTree(dir: "$StudioCompilePath/plugins/android/lib", include: ['*.jar'])
compileOnly fileTree(dir: "$StudioCompilePath/lib", include: ['*.jar'])
testImplementation 'junit:junit:4.13.2'
testImplementation fileTree(dir: "$StudioCompilePath/plugins/android/lib", include: ['*.jar'])
testImplementation fileTree(dir: "$StudioCompilePath/lib", include: ['*.jar'])
testImplementation "org.mockito:mockito-core:1.+"
testImplementation 'com.google.truth:truth:1.1.3'
}
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
buildSearchableOptions.enabled = false