-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle.kts
62 lines (51 loc) · 1.49 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
val idePath = "/Users/seanhenry/Library/Application Support/JetBrains/Toolbox/apps/AppCode/ch-0/222.3345.144/AppCode.app/Contents"
plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "1.6.20"
id("org.jetbrains.intellij") version "1.7.0"
}
group = "codes.seanhenry.mockgenerator"
version = "20"
repositories {
mavenCentral()
}
dependencies {
implementation("com.github.spullara.mustache.java:compiler:0.9.10")
testImplementation(kotlin("test"))
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
intellij {
localPath.set(idePath)
// look in AppCode.app/Contents/Plugins/builtinRegistry.xml to find bundled plugins
plugins.set(listOf("com.intellij.swift.lang", "com.intellij.cidr.base"))
}
tasks {
// Set the JVM compatibility versions
withType<JavaCompile> {
sourceCompatibility = "11"
targetCompatibility = "11"
}
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "11"
}
runIde {
ideDir.set(File(idePath))
jvmArgs("-Xmx4096m")
}
patchPluginXml {
changeNotes.set("Adds support for AppCode 2022.2")
sinceBuild.set("222")
}
signPlugin {
certificateChain.set(File("./signing/chain.crt").readText())
privateKey.set(File("./signing/private.pem").readText())
password.set(System.getenv("PRIVATE_KEY_PASSWORD"))
}
publishPlugin {
token.set(System.getenv("PUBLISH_TOKEN"))
}
test {
useJUnitPlatform()
}
}