-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
85 lines (72 loc) · 2.12 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
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
import org.jetbrains.intellij.platform.gradle.models.ProductRelease
plugins {
id("java")
id("org.jetbrains.intellij.platform") version "2.2.1"
}
group = "io.github.nahuel92"
val sinceVersion = "243"
val untilVersion = "243.*"
val pitVersion = "1.17.4"
repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
}
}
intellijPlatform {
pluginConfiguration {
version = providers.gradleProperty("pluginVersion")
id = "io.github.nahuel92.pit4u"
name = "PIT4U"
version = "0.2.0"
description = "Plugin that allows you to run PIT mutation tests directly from your IDE"
ideaVersion {
sinceBuild.set(sinceVersion)
untilBuild.set(untilVersion)
}
}
pluginVerification {
ides {
select {
channels = listOf(ProductRelease.Channel.RELEASE)
sinceBuild = sinceVersion
untilBuild = untilVersion
}
}
}
buildSearchableOptions.set(false)
}
dependencies {
implementation("org.pitest:pitest:$pitVersion")
implementation("org.pitest:pitest-junit5-plugin:1.2.1")
implementation("org.pitest:pitest-command-line:$pitVersion")
implementation("org.pitest:pitest-entry:$pitVersion")
intellijPlatform {
intellijIdeaCommunity("2024.3.1.1")
bundledPlugin("com.intellij.java")
bundledPlugin("org.jetbrains.idea.maven")
bundledPlugin("com.intellij.gradle")
pluginVerifier()
zipSigner()
testFramework(TestFrameworkType.Platform)
}
}
tasks {
withType<JavaCompile> {
sourceCompatibility = "21"
targetCompatibility = "21"
}
patchPluginXml {
sinceBuild.set(sinceVersion)
untilBuild.set(untilVersion)
}
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"))
}
}