Skip to content

Commit f74c02c

Browse files
committed
1.25.2: support debug mode for runMigrations
1 parent 0675e56 commit f74c02c

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
33
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
44

5+
## 1.25.2
6+
7+
### Fixed
8+
9+
- `runMigrations`: existing `debug` parameter is used to start migration process in debug mode (suspended and listening
10+
on port 5005).
11+
512
## 1.25.1
613

714
### Fixed

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ plugins {
2424
id("org.jetbrains.kotlinx.binary-compatibility-validator") version "0.13.2"
2525
}
2626

27-
val baseVersion = "1.25.1"
27+
val baseVersion = "1.25.2"
2828

2929
group = "de.itemis.mps"
3030

src/main/kotlin/de/itemis/mps/gradle/runmigrations/Plugin.kt

+4
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ open class RunMigrationsMpsProjectPlugin : Plugin<Project> {
131131
"arg"("value" to "-Xmx${extension.maxHeap}")
132132
}
133133

134+
if (extension.debug) {
135+
"arg"("value" to "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005")
136+
}
137+
134138
"arg"("value" to "--add-opens=java.base/java.io=ALL-UNNAMED")
135139
"arg"("value" to "--add-opens=java.base/java.lang=ALL-UNNAMED")
136140
"arg"("value" to "--add-opens=java.base/java.lang.reflect=ALL-UNNAMED")

0 commit comments

Comments
 (0)