Skip to content

Commit

Permalink
Reset javaLauncher that was set by the backendLauncher
Browse files Browse the repository at this point in the history
  • Loading branch information
sergej-koscejev committed Oct 24, 2023
1 parent 6211115 commit 49cd15b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/kotlin/de/itemis/mps/gradle/generate/Plugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ open class GenerateMpsProjectPlugin : Plugin<Project> {
generate.configure {
val backendLauncher: MpsBackendLauncher = project.objects.newInstance(MpsBackendLauncher::class)
backendLauncher.configureJavaForMpsVersion(this, mpsLocation, mpsVersion)

// For backwards compatibility reset the javaLauncher set by the backendLauncher
javaLauncher.set(null)

dependsOn(fake)

argumentProviders.add(argsFromBaseExtension(extension))
Expand Down
4 changes: 4 additions & 0 deletions src/main/kotlin/de/itemis/mps/gradle/modelcheck/Plugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ open class ModelcheckMpsProjectPlugin : Plugin<Project> {
checkmodels.configure {
val backendLauncher: MpsBackendLauncher = project.objects.newInstance(MpsBackendLauncher::class)
backendLauncher.configureJavaForMpsVersion(this, mpsLocation, mpsVersion)

// For backwards compatibility reset the javaLauncher set by the backendLauncher
javaLauncher.set(null)

dependsOn(resolveMps)

argumentProviders.add(argsFromBaseExtension(extension))
Expand Down

0 comments on commit 49cd15b

Please sign in to comment.