File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -8,18 +8,10 @@ specifications as part of your build. Other tasks are available as command line
88"""
99
1010lazy 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+ )
You can’t perform that action at this time.
0 commit comments