@@ -7,7 +7,15 @@ This gives you the ability to generate client SDKs, documentation, new generator
77specifications as part of your build. Other tasks are available as command line tasks.
88"""
99
10- inThisBuild(List (
10+ lazy val `sbt-openapi-generator` = (project in file(" ." ))
11+ .settings(
12+ moduleName := " sbt-openapi-generator" ,
13+ scalaVersion := " 2.12.20" ,
14+ crossScalaVersions := Seq (scalaVersion.value),
15+ crossSbtVersions := List (" 1.11.4" ),
16+ sbtPlugin := true ,
17+
18+ inThisBuild(List (
1119 homepage := Some (url(" https://openapi-generator.tech" )),
1220
1321 organization := " org.openapitools" ,
@@ -22,30 +30,21 @@ inThisBuild(List(
2230 email = " team@openapitools.org" ,
2331 url = url(" https://github.com/OpenAPITools" )
2432 )
25- ))
33+ )),
2634
27- crossScalaVersions := Nil
35+ scriptedLaunchOpts := {
36+ scriptedLaunchOpts.value ++ Seq (" -Xmx1024M" , " -server" , " -Dplugin.version=" + version.value)
37+ },
2838
29- lazy val `sbt-openapi-generator` = (project in file(" ." ))
30- .enablePlugins(SbtPlugin )
31- .settings(
32- moduleName := " sbt-openapi-generator" ,
33- crossScalaVersions := Seq (" 2.12.20" ),
34- sbtPlugin := true ,
35- // crossScalaVersions := Seq("2.12.20", "3.7.2"),
36- // (pluginCrossBuild / sbtVersion) := {
37- // scalaBinaryVersion.value match {
38- // case "2.12" => "1.11.4"
39- // case _ => "2.0.0-RC3"
40- // }
41- // },
39+ scriptedBufferLog := false ,
4240
4341 resolvers ++= Seq (
4442 Resolver .sbtPluginRepo(" snapshots" ),
4543 ),
4644
4745 // version := "7.14.0",
4846
47+
4948 scmInfo := Some (
5049 ScmInfo (
5150 browseUrl = url(" https://github.com/OpenAPITools/openapi-generator" ),
@@ -54,4 +53,4 @@ lazy val `sbt-openapi-generator` = (project in file("."))
5453 ),
5554
5655 libraryDependencies += " org.openapitools" % " openapi-generator" % " 7.14.0"
57- )
56+ ).enablePlugins( SbtPlugin )
0 commit comments