Skip to content

Commit 89489af

Browse files
Update configuration of modelcheck task
* Rename to checkmodels to match the name of the task contributed by modelcheck plugin. * Update configuration to the MpsCheck task API.
1 parent 7c3d12a commit 89489af

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

build.gradle

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -320,19 +320,18 @@ tasks.register('remigrate', Remigrate) {
320320

321321
File modelcheckresult = new File("$buildDir/TEST-checkProject.xml")
322322

323-
def pluginsList = []
323+
tasks.register('checkmodels', MpsCheck) {
324+
javaLauncher = tasks.named('downloadJbr', DownloadJbrForPlatform).flatMap { it.javaLauncher }
324325

325-
tasks.register('modelcheck', MpsCheck) {
326326
projectLocation = new File("$projectDir/code/languages/org.iets3.opensource")
327-
mpsLocation = new File("$buildDir/mps")
328-
plugins = pluginsList
329-
mpsConfig = configurations.mps
330-
macros = [new Macro("iets3.github.opensource.home", "$projectDir")]
327+
mpsHome = new File("$buildDir/mps")
328+
pluginRoots.add(mpsHome.dir('plugins'))
329+
folderMacros.put("iets3.github.opensource.home", layout.projectDirectory)
331330
junitFile = modelcheckresult
332331
junitFormat = "message"
333-
errorNoFail = true
332+
ignoreFailures = true
334333
debug = false
335-
maxHeap = "4G"
334+
maxHeapSize = "4G"
336335
}
337336

338337
afterEvaluate { project ->

0 commit comments

Comments
 (0)