Skip to content

Commit 2855411

Browse files
committed
fixed error in descriptor
1 parent 519605c commit 2855411

File tree

2 files changed

+26
-17
lines changed

2 files changed

+26
-17
lines changed

build.sbt

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -119,26 +119,33 @@ scalacOptions ++= Seq(
119119
)
120120

121121
lazy val generateDescriptor =
122-
taskKey[Unit]("Generate a descriptor that is used by coursier to install polystat-cli.")
122+
taskKey[Unit](
123+
"Generate a descriptor that is used by coursier to install polystat-cli."
124+
)
123125

124126
generateDescriptor := {
125127
val ver = version.value
126128
val org = organization.value
127129
val artifactName = name.value
128130
val descriptor =
129131
s"""|{
130-
| "repositories": [
131-
| "ivy2Local",
132-
| "central"
133-
| ],
134-
| "dependencies": [
135-
| "${org}:${artifactName}_3:${ver}"
136-
| ]
137-
|}
132+
| "polystat": {
133+
| "repositories": [
134+
| "ivy2Local",
135+
| "central"
136+
| ],
137+
| "dependencies": [
138+
| "${org}:${artifactName}_3:${ver}"
139+
| ]
140+
| }
141+
|}
138142
|""".stripMargin
139143
println(descriptor)
140144
java.nio.file.Files
141-
.write(java.nio.file.Paths.get("coursier/polystat.json"), descriptor.getBytes)
145+
.write(
146+
java.nio.file.Paths.get("coursier/polystat.json"),
147+
descriptor.getBytes,
148+
)
142149
}
143150

144151
commands += Command.args("preRelease", "<arg>") { (state, args) =>

coursier/polystat.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
2-
"repositories": [
3-
"ivy2Local",
4-
"central"
5-
],
6-
"dependencies": [
7-
"org.polystat:polystat-cli_3:0.1.11-SNAPSHOT"
8-
]
2+
"polystat": {
3+
"repositories": [
4+
"ivy2Local",
5+
"central"
6+
],
7+
"dependencies": [
8+
"org.polystat:polystat-cli_3:0.1.11-SNAPSHOT"
9+
]
10+
}
911
}

0 commit comments

Comments
 (0)