-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.gradle.kts
67 lines (55 loc) · 1.56 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
fun properties(key: String) = project.findProperty(key).toString()
plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "1.7.10"
id("org.jetbrains.kotlin.plugin.serialization") version "1.7.10"
id("org.jetbrains.intellij") version "1.8.0"
id("org.jetbrains.changelog") version "1.3.1"
}
sourceSets {
main {
java { srcDir("src") }
resources { srcDir("resources") }
}
}
dependencies {
implementation("com.squareup.okhttp3:okhttp:4.3.1")
implementation("org.jsoup:jsoup:1.11.3")
}
group = properties("pluginGroup")
version = properties("pluginVersion")
repositories {
mavenCentral()
}
intellij {
pluginName.set(properties("pluginName"))
version.set(properties("platformVersion"))
type.set(properties("platformType"))
plugins.set(properties("platformPlugins").split(',').map(String::trim).filter(String::isNotEmpty))
}
changelog {
version.set(properties("pluginVersion"))
groups.set(emptyList())
}
tasks {
wrapper {
gradleVersion = properties("gradleVersion")
}
withType<JavaCompile> {
sourceCompatibility = "11"
targetCompatibility = "11"
}
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "11"
}
patchPluginXml {
version.set(properties("pluginVersion"))
sinceBuild.set(properties("pluginSinceBuild"))
untilBuild.set(properties("pluginUntilBuild"))
}
runIde {
jvmArgs = listOf("-Xmx2g")
systemProperty("readhub.internal", true)
}
}