forked from pbreault/adb-idea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
62 lines (50 loc) · 1.73 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
plugins {
id "org.jetbrains.kotlin.jvm" version "1.5.21"
id "org.jetbrains.intellij" version "1.1.4"
id "org.ajoberstar.reckon" version "0.13.0"
}
repositories {
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
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'
}
reckon {
scopeFromProp()
snapshotFromProp()
}
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