Skip to content

Commit

Permalink
Merge pull request #232 from amosproj/Bugfix/override-plugin-java-11
Browse files Browse the repository at this point in the history
Bugfix/override plugin java 11
  • Loading branch information
lheimbs authored Jan 31, 2024
2 parents bab640e + 3033d69 commit 9b00502
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 33 deletions.
4 changes: 2 additions & 2 deletions coverage-reporter/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group = "io.github.amosproj"
version = "1.1"
version = "1.2"

repositories {
mavenCentral()
Expand All @@ -24,7 +24,7 @@ tasks.test {
}

kotlin {
jvmToolchain(17)
jvmToolchain(11)
}

java {
Expand Down
29 changes: 1 addition & 28 deletions pitmutationmate-override-plugin/plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies {
}

group = "io.github.amos-pitmutationmate.pitmutationmate.override"
version = "1.1"
version = "1.2"

gradlePlugin {
website = "https://github.com/amosproj/amos2023ws02-pitest-ide-plugin"
Expand All @@ -54,30 +54,3 @@ gradlePlugin {
}
}
}

// Add a source set for the functional test suite
val functionalTestSourceSet =
sourceSets.create("functionalTest") {
}

configurations["functionalTestImplementation"].extendsFrom(configurations["testImplementation"])
configurations["functionalTestRuntimeOnly"].extendsFrom(configurations["testRuntimeOnly"])

// Add a task to run the functional tests
val functionalTest by tasks.registering(Test::class) {
testClassesDirs = functionalTestSourceSet.output.classesDirs
classpath = functionalTestSourceSet.runtimeClasspath
useJUnitPlatform()
}

gradlePlugin.testSourceSets.add(functionalTestSourceSet)

tasks.named<Task>("check") {
// Run the functional tests as part of `check`
dependsOn(functionalTest)
}

tasks.named<Test>("test") {
// Use JUnit Jupiter for unit tests.
useJUnitPlatform()
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class GradleTaskExecutor : BasePitestExecutor() {
parameters.add("-Dpitmutationmate.override.targetClasses=$classFQN")
}
parameters.add("-Dpitmutationmate.override.outputFormats=XML,report-coverage")
parameters.add("-Dpitmutationmate.override.addCoverageListenerDependency=io.github.amosproj:coverage-reporter:1.1")
parameters.add("-Dpitmutationmate.override.addCoverageListenerDependency=io.github.amosproj:coverage-reporter:1.2")
parameters.add("-Dpitmutationmate.override.verbose=$verbose")
parameters.add("-Dpitmutationmate.override.port=$port")
parameters.add("-Dpitmutationmate.override.reportDir=${reportDir.toAbsolutePath()}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ class PluginCheckerService(private val project: Project) {

private const val KOTLIN_PITEST_PLUGIN = "id(\"info.solidsoft.pitest\") version \"x.y.z\""
private const val KOTLIN_OVERRIDE_PLUGIN =
"id(\"io.github.amos-pitmutationmate.pitmutationmate.override\") version \"1.1\""
"id(\"io.github.amos-pitmutationmate.pitmutationmate.override\") version \"1.2\""

private const val GROOVY_PITEST_PLUGIN = "id 'info.solidsoft.pitest' version 'x.y.z'"
private const val GROOVY_OVERRIDE_PLUGIN =
"id \"io.github.amos-pitmutationmate.pitmutationmate.override\" version \"1.1\""
"id \"io.github.amos-pitmutationmate.pitmutationmate.override\" version \"1.2\""

const val ERROR_MESSAGE_TITLE = "Plugins for PITMutationPlugin are missing"
private val ERROR_MESSAGE_PITEST_PLUGIN_MISSING = """<b>The pitest gradle Plugin is missing.</b>
Expand Down

0 comments on commit 9b00502

Please sign in to comment.