Skip to content

Commit a9a5a42

Browse files
committed
rearrange
1 parent 3471ceb commit a9a5a42

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

build.sbt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,10 @@ specifications as part of your build. Other tasks are available as command line
88
"""
99

1010
lazy val `sbt-openapi-generator` = (project in file("."))
11+
.enablePlugins(SbtPlugin)
1112
.settings(
1213
scalaVersion := "2.12.20",
1314
crossScalaVersions := Seq(scalaVersion.value, "3.7.2"),
14-
15-
sbtPlugin := true,
16-
(pluginCrossBuild / sbtVersion) := {
17-
scalaBinaryVersion.value match {
18-
case "2.12" => "1.11.4"
19-
case _ => "2.0.0-RC3"
20-
}
21-
},
22-
2315
inThisBuild(List(
2416
homepage := Some(url("https://openapi-generator.tech")),
2517

@@ -37,6 +29,14 @@ lazy val `sbt-openapi-generator` = (project in file("."))
3729
)
3830
)),
3931

32+
sbtPlugin := true,
33+
(pluginCrossBuild / sbtVersion) := {
34+
scalaBinaryVersion.value match {
35+
case "2.12" => "1.11.4"
36+
case _ => "2.0.0-RC3"
37+
}
38+
},
39+
4040
resolvers ++= Seq(
4141
Resolver.sbtPluginRepo("snapshots"),
4242
),
@@ -52,4 +52,4 @@ lazy val `sbt-openapi-generator` = (project in file("."))
5252
),
5353

5454
libraryDependencies += "org.openapitools" % "openapi-generator" % "7.14.0"
55-
).enablePlugins(SbtPlugin)
55+
)

0 commit comments

Comments
 (0)