-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
109 lines (88 loc) · 2.83 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import org.jetbrains.changelog.Changelog
import org.jetbrains.changelog.markdownToHTML
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "1.8.22"
id("org.jetbrains.intellij.platform") version "2.2.1"
id("org.jetbrains.changelog") version "2.2.1"
}
group = "net.fallingangel"
version = "0.0.7.34"
val since by extra("223.7571.182")
val until by extra("243.*")
val certificateChainValue = findProperty("certificateChainValue") as String?
val privateKeyValue = findProperty("privateKeyValue") as String?
val passwordValue = findProperty("passwordValue") as String?
val tokenValue = findProperty("tokenValue") as String?
sourceSets["main"].java.srcDir("src/main/gen")
repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
}
}
dependencies {
intellijPlatform {
create("IC", since, false)
bundledPlugins("com.intellij.java", "org.jetbrains.kotlin")
testFramework(TestFrameworkType.Platform)
}
testImplementation("junit:junit:4.13.2")
testCompileOnly("org.babyfish.jimmer:jimmer-sql-kotlin:0.8.150")
}
changelog {
groups = listOf("Added", "Changed", "Deprecated", "Removed", "Fixed")
headerParserRegex = """^((0|[1-9]\d*)(\.(0|[1-9]\d*)){2,3}(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)${'$'}"""
}
intellijPlatform {
pluginConfiguration {
id = "net.fallingangel.jimmer-dto"
name = "JimmerDTO"
description = markdownToHTML(File(projectDir, "README.md").readText())
changeNotes = changelog.render(Changelog.OutputType.HTML)
vendor {
name = "the_FallenAngel"
email = "[email protected]"
url = "https://fallingangel.net"
}
ideaVersion {
sinceBuild = since
untilBuild = until
}
}
pluginVerification {
ides {
ide("IC", since, false)
}
}
publishing {
token = tokenValue
channels.add("Stable")
}
signing {
certificateChain = certificateChainValue
privateKey = privateKeyValue
password = passwordValue
}
}
tasks {
// Set the JVM compatibility versions
withType<JavaCompile> {
sourceCompatibility = "17"
targetCompatibility = "17"
}
withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "17"
freeCompilerArgs = listOf("-Xjvm-default=all-compatibility")
}
}
test {
systemProperty("idea.home.path", intellijPlatform.sandboxContainer.get().toString())
}
runIde {
jvmArgs("-Xms128m", "-Xmx4096m", "-XX:ReservedCodeCacheSize=512m")
}
}