-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
59 lines (50 loc) · 1.46 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
plugins {
id("java")
id("org.jetbrains.intellij") version "1.8.0"
}
group = "com.dwilden"
version = "1.5"
repositories {
mavenCentral()
}
dependencies {
implementation("net.redhogs.cronparser", "cron-parser-core", "3.5") {
exclude("org.slf4j", "slf4j-api")
}
testImplementation("junit", "junit", "4.12")
testImplementation("org.assertj", "assertj-core", "3.23.1")
}
// Configure Gradle IntelliJ Plugin
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
intellij {
version.set("2022.1.4")
type.set("IC") // Target IDE Platform
plugins.set(listOf("org.jetbrains.kotlin:221-1.7.10-release-333-IJ5591.52", "java", "java-i18n", "properties", "yaml"))
}
tasks {
// Set the JVM compatibility versions
withType<JavaCompile> {
sourceCompatibility = "11"
targetCompatibility = "11"
}
patchPluginXml {
sinceBuild.set("213")
untilBuild.set("")
changeNotes.set("""
<B>1.0</B> Initial Release of plugin<br>
<B>1.1</B> localization, 24h time format<br>
<B>1.2</B> Improved support for intellij builds, fix for dayOfWeek<br>
<B>1.3</B> Support for more versions<br>
<B>1.4</B> Remove deprecated API calls<br>
<B>1.5</B> Fix exception handling<br>
""")
}
signPlugin {
certificateChain.set(System.getenv("CERTIFICATE_CHAIN"))
privateKey.set(System.getenv("PRIVATE_KEY"))
password.set(System.getenv("PRIVATE_KEY_PASSWORD"))
}
publishPlugin {
token.set(System.getenv("PUBLISH_TOKEN"))
}
}