forked from OpenAPITools/sbt-openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
58 lines (45 loc) · 2.11 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
ThisBuild / name := "sbt-openapi-generator"
ThisBuild / description :=
"""
This plugin supports common functionality found in Open API Generator CLI as a sbt plugin.
This gives you the ability to generate client SDKs, documentation, new generators, and to validate Open API 2.0 and 3.x
specifications as part of your build. Other tasks are available as command line tasks.
"""
lazy val `sbt-openapi-generator` = (project in file("."))
.settings(
scalaVersion := "2.12.15",
crossScalaVersions := Seq(scalaVersion.value, "2.11.12"),
crossSbtVersions := List("0.13.17", "1.3.10"),
sbtPlugin := true,
publishMavenStyle := false,
bintrayRepository := "sbt-plugins",
bintrayOrganization := Option("openapitools"),
bintrayPackageLabels := Seq("sbt", "plugin", "oas", "openapi", "openapi-generator"),
bintrayVcsUrl := Some("[email protected]:OpenAPITools/sbt-openapi-generator.git"),
scriptedLaunchOpts := {
scriptedLaunchOpts.value ++ Seq("-Xmx1024M", "-server", "-Dplugin.version=" + version.value)
},
scriptedBufferLog := false,
resolvers ++= Seq(
Resolver.sbtPluginRepo("snapshots"),
Resolver.sonatypeRepo("snapshots")
),
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 = "[email protected]",
url = url("https://github.com/OpenAPITools")
),
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://[email protected]:OpenAPITools/openapi-generator.git")
),
libraryDependencies += "org.openapitools" % "openapi-generator" % "6.0.0-beta"
).enablePlugins(SbtPlugin)