Skip to content

Commit

Permalink
1.25.2: support debug mode for runMigrations
Browse files Browse the repository at this point in the history
  • Loading branch information
wsafonov committed Jun 13, 2024
1 parent 0675e56 commit f74c02c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +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.25.2

### Fixed

- `runMigrations`: existing `debug` parameter is used to start migration process in debug mode (suspended and listening
on port 5005).

## 1.25.1

### Fixed
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.25.1"
val baseVersion = "1.25.2"

group = "de.itemis.mps"

Expand Down
4 changes: 4 additions & 0 deletions src/main/kotlin/de/itemis/mps/gradle/runmigrations/Plugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ open class RunMigrationsMpsProjectPlugin : Plugin<Project> {
"arg"("value" to "-Xmx${extension.maxHeap}")
}

if (extension.debug) {
"arg"("value" to "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005")
}

"arg"("value" to "--add-opens=java.base/java.io=ALL-UNNAMED")
"arg"("value" to "--add-opens=java.base/java.lang=ALL-UNNAMED")
"arg"("value" to "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED")
Expand Down

0 comments on commit f74c02c

Please sign in to comment.