-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.sc
58 lines (35 loc) · 1.44 KB
/
build.sc
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
import mill._, scalalib._, publish._
import mill.define.Sources
import mill.scalalib.JavaModule
import os.Path
import $ivy.`io.github.otavia-projects::mill-rust_mill$MILL_BIN_PLATFORM:0.2.4`
import io.github.otavia.jni.plugin.RustJniModule
object ProjectInfo {
def description: String = "Some fast bloom filter implemented by Rust for Python and Java!"
def organization: String = "io.github.yankun1992"
def organizationUrl: String = ""
def projectUrl: String = ""
def licenses = Seq()
def author = Seq("Yan Kun <yan_kun@icekredit.com>")
def version = "0.5.9"
def buildTool = "mill"
def buildToolVersion = mill.BuildInfo.millVersion
}
object fastbloomjvm extends RustJniModule with PublishModule {
override def release: Boolean = true
override def publishVersion: T[String] = ProjectInfo.version
override def pomSettings: T[PomSettings] = PomSettings(
description = ProjectInfo.description,
organization = ProjectInfo.organization,
url = "",
licenses = ProjectInfo.licenses,
versionControl = VersionControl(),
developers = Seq(Developer("yan_kun", "Yan Kun", "", Some("icekredit"), Some("")))
)
override def artifactName = "fastbloomjvm"
override def artifactId = "fastbloom"
override def ivyDeps = Agg(ivy"io.github.otavia-projects:jni-loader:0.2.4")
override def otherNativeLibraries: Seq[PathRef] = Seq(PathRef(os.pwd / "library"))
object test extends Tests with TestModule.Junit4 {
}
}