Skip to content

Commit

Permalink
fix: Verification issues (#26)
Browse files Browse the repository at this point in the history
Signed-off-by: Nahuel Rodriguez <[email protected]>
  • Loading branch information
Nahuel92 authored Jan 14, 2025
1 parent 776f58f commit 3817016
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 13 deletions.
42 changes: 31 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
import org.jetbrains.intellij.platform.gradle.models.ProductRelease

plugins {
id("java")
Expand All @@ -7,6 +8,17 @@ plugins {

group = "io.github.nahuel92"

// Plugin version
val pluginVersion = "0.2.0"
val javaVersion = "21"
// IntelliJ version
val sinceVersion = "243"
val untilVersion = "243.*"
val intellijIdeaCommunityVersion = "2024.3.1.1"
// PIT version
val pitVersion = "1.17.4"
val pitestJunit5PluginVersion = "1.2.1"

repositories {
mavenCentral()

Expand All @@ -20,25 +32,32 @@ intellijPlatform {
version = providers.gradleProperty("pluginVersion")
id = "io.github.nahuel92.pit4u"
name = "PIT4U"
version = "0.2.0"
version = pluginVersion
description = "Plugin that allows you to run PIT mutation tests directly from your IDE"
ideaVersion {
sinceBuild.set("242")
untilBuild.set("243.*")
sinceBuild.set(sinceVersion)
untilBuild.set(untilVersion)
}
}
pluginVerification {
ides {
select {
channels = listOf(ProductRelease.Channel.RELEASE)
sinceBuild = sinceVersion
untilBuild = untilVersion
}
}
}
buildSearchableOptions.set(false)
}

val pitVersion = "1.17.4"

dependencies {
implementation("org.pitest:pitest:$pitVersion")
implementation("org.pitest:pitest-junit5-plugin:1.2.1")
implementation("org.pitest:pitest-junit5-plugin:$pitestJunit5PluginVersion")
implementation("org.pitest:pitest-command-line:$pitVersion")
implementation("org.pitest:pitest-entry:$pitVersion")
intellijPlatform {
intellijIdeaCommunity("2024.3.1.1")
intellijIdeaCommunity(intellijIdeaCommunityVersion)
bundledPlugin("com.intellij.java")
bundledPlugin("org.jetbrains.idea.maven")
bundledPlugin("com.intellij.gradle")
Expand All @@ -52,13 +71,14 @@ dependencies {

tasks {
withType<JavaCompile> {
sourceCompatibility = "21"
targetCompatibility = "21"
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}

patchPluginXml {
sinceBuild.set("242")
untilBuild.set("243.*")
version = "$pluginVersion"
sinceBuild.set(sinceVersion)
untilBuild.set(untilVersion)
}

signPlugin {
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
via a new configuration that you can find in the 'Run/Debug Configurations' dialog, or using contextual actions
on the top-level project directory, on a package or a class.
]]></description>
<version>0.2.0</version>

<change-notes><![CDATA[
<h4>Version 0.2.0</h4>
<p><em>New release that brings a contextual action and small QOL improvements.</em></p>
<p><em>New release that introduces a contextual action and small quality-of-life improvements. From now on, IDEA 2024.3+ is required</em></p>
<h5>Changes</h5>
<ul>
<li>PIT4U contextual action is now available for Maven and Gradle projects (multi-module projects might not work well)</li>
Expand Down

0 comments on commit 3817016

Please sign in to comment.