-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle.kts
executable file
·50 lines (41 loc) · 1.32 KB
/
build.gradle.kts
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 {
java
id("org.jetbrains.intellij") version "1.12.0"
}
group = "org.jetbrains.research.anticopypaster"
version = "2022.3-1.0"
java {
sourceCompatibility = JavaVersion.VERSION_17
}
repositories {
maven("https://packages.jetbrains.team/maven/p/big-code/bigcode")
mavenCentral()
}
val extractMethodProjectName = "org.jetbrains.research.extractMethod"
dependencies {
implementation("com.google.code.gson:gson:2.8.6")
implementation("org.apache.commons:commons-lang3:3.0")
implementation("org.pmml4s:pmml4s_2.13:0.9.10")
implementation("org.tensorflow:tensorflow:1.15.0")
// extract-method-metrics module inclusion
implementation("$extractMethodProjectName:extract-method-metrics") {
version {
branch = "master"
}
}
}
fun properties(key: String) = project.findProperty(key).toString()
intellij {
version.set(properties("platformVersion"))
type.set(properties("platformType"))
downloadSources.set(properties("platformDownloadSources").toBoolean())
updateSinceUntilBuild.set(true)
plugins.set(properties("platformPlugins").split(',').map(String::trim).filter(String::isNotEmpty))
}
tasks {
withType<org.jetbrains.intellij.tasks.BuildSearchableOptionsTask>()
.forEach { it.enabled = false }
runIde {
maxHeapSize = "1g"
}
}