@@ -54,9 +54,8 @@ abstract class ExportJsonTestDefinitions extends ScalaCliSuite with TestScalaVer
5454 |"scalaVersion":" ${Constants .scala3Next}",
5555 |"platform":"JVM",
5656 |"jvmVersion":"adopt:11",
57- |"scopes": [[
58- | "main",
59- | {
57+ |"scopes": {
58+ | "main": {
6059 | "sources": [" ${withEscapedBackslashes(root / " Main.scala" )}"],
6160 | "dependencies": [
6261 | {
@@ -74,7 +73,7 @@ abstract class ExportJsonTestDefinitions extends ScalaCliSuite with TestScalaVer
7473 | "ivy:file:.../.ivy2/local/"
7574 | ]
7675 | }
77- |]]
76+ |}
7877 |,"scalaCliVersion":"1.1.1-SNAPSHOT"
7978 |}
8079 | """ .replaceAll(" \\ s|\\ |" , " " ))
@@ -112,9 +111,8 @@ abstract class ExportJsonTestDefinitions extends ScalaCliSuite with TestScalaVer
112111 |"scalaVersion":"3.2.2",
113112 |"platform":"Native",
114113 |"scalaNativeVersion":" ${Constants .scalaNativeVersion}",
115- |"scopes": [[
116- | "main",
117- | {
114+ |"scopes": {
115+ | "main": {
118116 | "sources": [" ${withEscapedBackslashes(root / " Main.scala" )}"],
119117 | "scalacOptions":["-Xasync"],
120118 | "scalaCompilerPlugins": [
@@ -142,9 +140,8 @@ abstract class ExportJsonTestDefinitions extends ScalaCliSuite with TestScalaVer
142140 | "ivy:file:.../local-repo/...",
143141 | "ivy:file:.../.ivy2/local/"
144142 | ]
145- | }], [
146- | "test",
147- | {
143+ | },
144+ | "test": {
148145 | "sources":[" ${withEscapedBackslashes(root / " unit.test.scala" )}"],
149146 | "scalacOptions":["-Xasync"],
150147 | "scalaCompilerPlugins": [
@@ -175,8 +172,8 @@ abstract class ExportJsonTestDefinitions extends ScalaCliSuite with TestScalaVer
175172 | ],
176173 | "resourceDirs":[" ${withEscapedBackslashes(root / " resources" )}"],
177174 | "customJarsDecls":[" ${withEscapedBackslashes(root / " TEST.jar" )}"]
178- | }
179- |]]
175+ | }
176+ |}
180177 |,"scalaCliVersion":"1.1.1-SNAPSHOT"
181178 |}
182179 | """ .replaceAll(" \\ s|\\ |" , " " ))
@@ -223,9 +220,8 @@ abstract class ExportJsonTestDefinitions extends ScalaCliSuite with TestScalaVer
223220 |"platform": "JS",
224221 |"scalaJsVersion": " ${Constants .scalaJsVersion}",
225222 |"jsEsVersion":"es2015",
226- |"scopes": [[
227- | "main",
228- | {
223+ |"scopes": {
224+ | "main": {
229225 | "sources": [" ${withEscapedBackslashes(root / " Main.scala" )}"],
230226 | "scalacOptions": ["-Xasync"],
231227 | "scalaCompilerPlugins": [
@@ -254,7 +250,8 @@ abstract class ExportJsonTestDefinitions extends ScalaCliSuite with TestScalaVer
254250 | "ivy:file:.../.ivy2/local/"
255251 | ]
256252 | }
257- |]],"scalaCliVersion":"1.1.1-SNAPSHOT"
253+ |},
254+ |"scalaCliVersion":"1.1.1-SNAPSHOT"
258255 |}
259256 | """ .replaceAll(" \\ s|\\ |" , " " ))
260257
0 commit comments