Skip to content

Commit

Permalink
1.22.1: Put MpsGenerate task into "generation" group
Browse files Browse the repository at this point in the history
  • Loading branch information
sergej-koscejev committed Jan 22, 2024
1 parent 0a05207 commit 6d52c83
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 1.22
## 1.22.1

### Fixed

- `MpsGenerate` task is placed into "generation" group by default, rather than (incorrect) "verification".

## 1.22.0

### Added

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ plugins {
id("org.jetbrains.kotlinx.binary-compatibility-validator") version "0.13.2"
}

val baseVersion = "1.22.0"
val baseVersion = "1.22.1"

group = "de.itemis.mps"

Expand Down
8 changes: 8 additions & 0 deletions src/main/kotlin/de/itemis/mps/gradle/TaskGroups.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package de.itemis.mps.gradle

import org.gradle.language.base.plugins.LifecycleBasePlugin

internal object TaskGroups {
const val VERIFICATION = LifecycleBasePlugin.VERIFICATION_GROUP // "verification"
const val GENERATION = "generation"
}
3 changes: 2 additions & 1 deletion src/main/kotlin/de/itemis/mps/gradle/tasks/MpsCheck.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package de.itemis.mps.gradle.tasks

import de.itemis.mps.gradle.BackendConfigurations
import de.itemis.mps.gradle.ErrorMessages
import de.itemis.mps.gradle.TaskGroups
import de.itemis.mps.gradle.launcher.MpsBackendBuilder
import de.itemis.mps.gradle.launcher.MpsVersionDetection
import org.gradle.api.GradleException
Expand Down Expand Up @@ -142,7 +143,7 @@ abstract class MpsCheck : JavaExec(), VerificationTask {
result
})

group = LifecycleBasePlugin.VERIFICATION_GROUP
group = TaskGroups.VERIFICATION

classpath(project.configurations.named(BackendConfigurations.MODELCHECK_BACKEND_CONFIGURATION_NAME))
classpath(additionalModelcheckBackendClasspath)
Expand Down
3 changes: 2 additions & 1 deletion src/main/kotlin/de/itemis/mps/gradle/tasks/MpsGenerate.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package de.itemis.mps.gradle.tasks
import de.itemis.mps.gradle.BackendConfigurations
import de.itemis.mps.gradle.EnvironmentKind
import de.itemis.mps.gradle.ErrorMessages
import de.itemis.mps.gradle.TaskGroups
import de.itemis.mps.gradle.launcher.MpsBackendBuilder
import de.itemis.mps.gradle.launcher.MpsVersionDetection
import org.gradle.api.GradleException
Expand Down Expand Up @@ -131,7 +132,7 @@ abstract class MpsGenerate : JavaExec() {
result
})

group = LifecycleBasePlugin.VERIFICATION_GROUP
group = TaskGroups.GENERATION

classpath(project.configurations.named(BackendConfigurations.GENERATE_BACKEND_CONFIGURATION_NAME))
classpath(additionalGenerateBackendClasspath)
Expand Down

0 comments on commit 6d52c83

Please sign in to comment.