-
Notifications
You must be signed in to change notification settings - Fork 58
/
build.gradle
77 lines (63 loc) · 1.67 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import java.util.stream.Collectors
plugins {
id 'java'
id "org.jetbrains.kotlin.jvm" version "1.4.32"
id 'org.jetbrains.intellij' version '1.13.3'
id 'org.jlleitschuh.gradle.ktlint' version "10.0.0"
id 'org.jlleitschuh.gradle.ktlint-idea' version "10.0.0"
id "com.github.sherter.google-java-format" version "0.9"
}
repositories {
mavenCentral()
}
group 'com.tabnineSelfHosted'
version '0.0.6'
sourceCompatibility = 9
targetCompatibility = 9
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = "9"
freeCompilerArgs += "-Xjvm-default=enable"
}
}
repositories {
mavenCentral()
}
apply plugin: "org.jlleitschuh.gradle.ktlint-idea"
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.32")
}
intellij {
version = '2020.2'
type = 'IC'
updateSinceUntilBuild = false
pluginName = 'TabNine'
}
tasks.create("currentVersion") {
doLast {
println version
}
}
tasks.getByName("runIde").configure {
if (project.hasProperty('logFilePath')) {
systemProperty("TABNINE_LOG_FILE_PATH", logFilePath)
}
}
tasks {
compileKotlin {
dependsOn(ktlintFormat)
}
}
static def getIdeVersions(Project project) {
def ideVersions = project.hasProperty('ideVersions') ?
Arrays.asList(project.ideVersions.split(',')) :
['IC-2020.2.1']
return ideVersions
}
runPluginVerifier {
ideVersions = getIdeVersions(project)
if (project.hasProperty("localPaths")) {
localPaths = Arrays.stream(project.localPaths.split(',')).map(File::new).collect(Collectors.toList())
}
}