Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 16 additions & 17 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ This gives you the ability to generate client SDKs, documentation, new generator
specifications as part of your build. Other tasks are available as command line tasks.
"""

inThisBuild(List(
lazy val `sbt-openapi-generator` = (project in file("."))
.settings(
moduleName := "sbt-openapi-generator",
scalaVersion := "2.12.20",
crossScalaVersions := Seq(scalaVersion.value),
crossSbtVersions := List("1.11.4"),
sbtPlugin := true,

inThisBuild(List(
homepage := Some(url("https://openapi-generator.tech")),

organization := "org.openapitools",
Expand All @@ -22,30 +30,21 @@ inThisBuild(List(
email = "team@openapitools.org",
url = url("https://github.com/OpenAPITools")
)
))
)),

crossScalaVersions := Nil
scriptedLaunchOpts := {
scriptedLaunchOpts.value ++ Seq("-Xmx1024M", "-server", "-Dplugin.version=" + version.value)
},

lazy val `sbt-openapi-generator` = (project in file("."))
.enablePlugins(SbtPlugin)
.settings(
moduleName := "sbt-openapi-generator",
crossScalaVersions := Seq("2.12.20"),
sbtPlugin := true,
//crossScalaVersions := Seq("2.12.20", "3.7.2"),
//(pluginCrossBuild / sbtVersion) := {
// scalaBinaryVersion.value match {
// case "2.12" => "1.11.4"
// case _ => "2.0.0-RC3"
// }
//},
scriptedBufferLog := false,

resolvers ++= Seq(
Resolver.sbtPluginRepo("snapshots"),
),

//version := "7.14.0",


scmInfo := Some(
ScmInfo(
browseUrl = url("https://github.com/OpenAPITools/openapi-generator"),
Expand All @@ -54,4 +53,4 @@ lazy val `sbt-openapi-generator` = (project in file("."))
),

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