forked from edmcouncil/rdf-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
163 lines (120 loc) · 4.71 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
import sbt.Keys.scalaVersion
organization := "org.edmcouncil"
organizationName := "Enterprise Data Management Council"
name := "rdf-toolkit"
version := "1.6.0.1"
startYear := Some(2015)
developers := List(
Developer(id = "coates", name = "Anthony Coates", email = "", url = new URL("https://github.com/abcoates")),
Developer(id = "jgeluk", name = "Jacobus Geluk", email = "", url = new URL("https://github.com/jgeluk"))
)
licenses += ("mit", new URL("https://opensource.org/licenses/MIT"))
scalaVersion := "2.12.1"
scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature")
javacOptions ++= Seq("-Xlint:unchecked")
Seq(bintrayResolverSettings:_*)
libraryDependencies += "org.scala-lang" % "scala-library" % scalaVersion.value
val owlApiVersion = "5.0.5"
val rdf4jVersion = "2.2"
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value
libraryDependencies += "org.scala-lang.modules" %% "scala-xml" % "1.0.5"
libraryDependencies += "org.apache.commons" % "commons-lang3" % "3.5" withSources()
libraryDependencies += "commons-validator" % "commons-validator" % "1.5.1"
//
// OWLAPI Model Interfaces And Utilities
//
libraryDependencies += ("net.sourceforge.owlapi" % "owlapi-api" % owlApiVersion withSources())
.exclude("com.fasterxml.jackson.core", "jackson-core")
libraryDependencies += "net.sourceforge.owlapi" % "owlapi-apibinding" % owlApiVersion withSources()
libraryDependencies += "org.clapper" %% "grizzled-slf4j" % "1.3.0" withSources()
libraryDependencies += "org.slf4j" % "slf4j-api" % "1.7.22" withSources()
libraryDependencies += "org.clapper" %% "avsl" % "1.0.13" withSources()
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.1" % "test" withSources()
//libraryDependencies += "org.ow2.easywsdl" % "easywsdl-tool-java2wsdl" % "2.3"
libraryDependencies += "com.github.scopt" %% "scopt" % "3.5.0"
//
// Explicit loading of jackson-core to prevent merge issue in sbt-assembly
//
//libraryDependencies += "com.fasterxml.jackson.core" % "jackson-core" % "2.5.1"
//
// RDF4F Binding And Config
//
libraryDependencies += "org.eclipse.rdf4j" % "rdf4j-runtime" % rdf4jVersion
//
// JSON-LD Java Binding & Config
//
libraryDependencies += "com.github.jsonld-java" % "jsonld-java" % "0.10.0"
//
// Apache Command-line Argument Handling Library used in Tony's Java code
//
libraryDependencies += "commons-cli" % "commons-cli" % "1.4"
//
// jline console utilities
//
libraryDependencies += "jline" % "jline" % "2.14.3"
//
// Argot Command-Line Argument Handling used in the Scala code
//
//libraryDependencies += "org.clapper" %% "argot" % "1.0.3"
//
// Command Line Interface Scala Toolkit
//
// https://github.com/backuity/clist
//
//libraryDependencies += "org.backuity.clist" %% "clist-core" % "3.2.2"
//libraryDependencies += "org.backuity.clist" %% "clist-macros" % "3.2.2" % "provided"
//
// Scallop CLI processing
//
// https://github.com/scallop/scallop
//
//libraryDependencies += "org.rogach" %% "scallop" % "2.0.6"
//
// Java library JGit used to read git log for the input file and determine what default versionIRI to use when
// publishing.
//
libraryDependencies += "org.eclipse.jgit" % "org.eclipse.jgit" % "4.6.1.201703071140-r"
//
// Scala ARM library
//
// https://github.com/jsuereth/scala-arm
//
libraryDependencies += "com.jsuereth" %% "scala-arm" % "2.0"
//
// Generate booter.properties, see class org.edmcouncil.main.BooterProperties
//
resourceGenerators in Compile += Def.task {
BooterPropertiesGenerator(
(resourceManaged in Compile).value,
licenses.value,
organization.value,
name.value,
version.value,
scalaVersion.value
)
}.taskValue
//resourceGenerators in Compile <+= (
// resourceManaged in Compile, licenses, organization, name, version, scalaVersion
//) map {
// (dir, l, o, n, v, s) => BooterPropertiesGenerator(dir, l, o, n, v, s)
//}
fork in run := true
resolvers += JavaNet2Repository
resolvers += "http://weblab.ow2.org/" at "http://weblab.ow2.org/release-repository"
//
// Select the main class. Let it be the Scala main class, not the Java main (SesameRdfFormatter), which can still
// be selected on the command line separately. This prevents the following prompt:
//
// Multiple main classes detected, select one to run:
//
// [1] org.edmcouncil.rdf-toolkit.SesameRdfFormatter
// [2] org.edmcouncil.rdf-toolkit.Main
//
// [ABC] see 'assembly.sbt' for the actual main class setting
//mainClass in Compile := Some("org.edmcouncil.main.Main")
//mainClass in Compile := Some("org.edmcouncil.rdf_toolkit.SesameRdfFormatter")
lazy val depProject = RootProject(uri("https://github.com/modelfabric/sparql-dl-api.git#master"))
lazy val `rdf-toolkit` = project
.in(file("."))
.dependsOn(depProject)
.enablePlugins(AutomateHeaderPlugin)