Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .github/workflows/sbt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ jobs:
with:
path: ~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}
- name: Run tests
run: sbt ^test
- name: Build
run: sbt compile
#run: sbt ^test ^scripted
87 changes: 43 additions & 44 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,50 +7,49 @@ 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.
"""

lazy val `sbt-openapi-generator` = (project in file("."))
lazy val scala212 = "2.12.20"
lazy val scala3 = "3.7.2"

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

organization := "org.openapitools",
organizationName := "OpenAPI-Generator Contributors",
organizationHomepage := Some(url("https://github.com/OpenAPITools")),

licenses += ("The Apache Software License, Version 2.0", url("https://www.apache.org/licenses/LICENSE-2.0.txt")),

developers += Developer(
id = "openapitools",
name = "OpenAPI-Generator Contributors",
email = "team@openapitools.org",
url = url("https://github.com/OpenAPITools")
)
)
)

onLoadMessage := s"Welcome to sbt-openapi-generator ${version.value}"
crossScalaVersions := Nil
publish / skip := true // don't publish the root project

lazy val plugin = (project in file("."))
.enablePlugins(SbtPlugin)
.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",
organizationName := "OpenAPI-Generator Contributors",
organizationHomepage := Some(url("https://github.com/OpenAPITools")),

licenses += ("The Apache Software License, Version 2.0", url("https://www.apache.org/licenses/LICENSE-2.0.txt")),

developers += Developer(
id = "openapitools",
name = "OpenAPI-Generator Contributors",
email = "team@openapitools.org",
url = url("https://github.com/OpenAPITools")
)
)),

scriptedLaunchOpts := {
scriptedLaunchOpts.value ++ Seq("-Xmx1024M", "-server", "-Dplugin.version=" + version.value)
crossScalaVersions := Seq(scala212, scala3),
scalacOptions ++= {
scalaBinaryVersion.value match {
case "2.12" => "-Xsource:3" :: Nil
case _ => Nil
}
},

scriptedBufferLog := false,

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

//version := "7.14.0",


scmInfo := Some(
ScmInfo(
browseUrl = url("https://github.com/OpenAPITools/openapi-generator"),
connection = "scm:git:git://github.com/OpenAPITools/openapi-generator.git",
devConnection = "scm:git:ssh://git@github.com:OpenAPITools/openapi-generator.git")
),

libraryDependencies += "org.openapitools" % "openapi-generator" % "7.14.0"
).enablePlugins(SbtPlugin)
(pluginCrossBuild / sbtVersion) := {
scalaBinaryVersion.value match {
case "2.12" => "1.5.8"
case _ => "2.0.0-RC3"
}
},
libraryDependencies += "org.openapitools" % "openapi-generator" % "7.14.0",
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.11.2")
)