-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.mill
More file actions
47 lines (41 loc) · 1.36 KB
/
build.mill
File metadata and controls
47 lines (41 loc) · 1.36 KB
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
//| mill-version: 1.0.0
package build
import mill.*
import mill.scalalib.*
import mill.scalalib.publish.*
import mill.util.VcsVersion
val scala2Version = "2.13.15"
object openapi4s extends SbtModule with Openapi4sPublishModule {
def scalaVersion = scala2Version
def mvnDeps = Seq(
mvn"ba.sake::regenesca:0.6.3",
mvn"io.swagger.parser.v3:swagger-parser:2.1.24",
mvn"org.apache.commons:commons-text:1.12.0"
)
object test extends SbtTests with TestModule.Munit {
def mvnDeps = Seq(
mvn"org.scalameta::munit::1.0.2",
mvn"com.lihaoyi::pprint:0.9.0"
)
}
}
object cli extends SbtModule with Openapi4sPublishModule {
def artifactName = "openapi4s-cli"
def scalaVersion = scala2Version
def moduleDeps = Seq(openapi4s)
def mvnDeps = Seq(
mvn"com.lihaoyi::mainargs:0.7.6"
)
def mainClass = Some("ba.sake.openapi4s.cli.OpenApi4sMain")
}
trait Openapi4sPublishModule extends PublishModule {
def publishVersion = VcsVersion.vcsState().format()
def pomSettings = PomSettings(
description = "Mill plugin for Openapi4s generator",
organization = "ba.sake",
url = "https://github.com/sake92/openapi4s",
licenses = Seq(License.`Apache-2.0`),
versionControl = VersionControl.github(owner = "sake92", repo = "mill-openapi4s"),
developers = Seq(Developer("sake92", "Sakib Hadziavdic", "https://github.com/sake92"))
)
}