-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.gradle.kts
81 lines (73 loc) · 2.39 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
import org.jetbrains.changelog.Changelog
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
import org.jetbrains.intellij.platform.gradle.models.ProductRelease
import org.jetbrains.intellij.platform.gradle.tasks.VerifyPluginTask
fun properties(key: String) = project.findProperty(key).toString()
plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "2.0.10"
id("org.jetbrains.intellij.platform") version "2.0.1"
id("org.jetbrains.changelog") version "2.2.1"
}
group = properties("pluginGroup")
version = properties("pluginVersion")
repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
}
}
dependencies {
intellijPlatform {
create(properties("platformType"), properties("platformVersion"))
pluginVerifier()
instrumentationTools()
}
}
changelog {
version.set(properties("pluginVersion"))
path.set("${project.projectDir}/CHANGELOG.md")
groups.set(emptyList())
}
val pluginDescription = """
<div>
<p>Xcode Light & Dark themes for JetBrains</p>
<h2>Licence</h2>
<p>
<a href="https://raw.githubusercontent.com/WhiteVermouth/XcodeTheme/master/LICENSE">Apache-2.0 Licence</a>
</p>
<h2>Donation</h2>
<p>If you like this plugin, you can <a href="https://www.buymeacoffee.com/nszihan">buy me a cup of coffee</a>. Thank you!</p>
</div>
""".trimIndent()
intellijPlatform {
buildSearchableOptions = false
pluginConfiguration {
name = properties("pluginName")
version = properties("pluginVersion")
description = pluginDescription
changeNotes = provider {
changelog.renderItem(changelog.getLatest(), Changelog.OutputType.HTML)
}
ideaVersion {
untilBuild = provider { null }
}
}
publishing {
token = System.getProperty("jetbrains.token")
}
pluginVerification {
ides {
recommended()
select {
types = listOf(IntelliJPlatformType.IntellijIdeaCommunity, IntelliJPlatformType.IntellijIdeaUltimate)
channels = listOf(ProductRelease.Channel.RELEASE)
sinceBuild = "241"
untilBuild = "242.*"
}
}
failureLevel = listOf(
VerifyPluginTask.FailureLevel.COMPATIBILITY_PROBLEMS, VerifyPluginTask.FailureLevel.INVALID_PLUGIN
)
}
}