@@ -184,7 +184,10 @@ GatherLicenses.distributions := Seq(
184
184
" Microsoft" ,
185
185
Distribution .sbtProjects(`std-microsoft`)
186
186
),
187
- makeStdLibDistribution(" Tableau" , Distribution .sbtProjects(`std-tableau`))
187
+ makeStdLibDistribution(
188
+ " Tableau" ,
189
+ Distribution .sbtProjects(`std-tableau`, `jna-wrapper`)
190
+ )
188
191
)
189
192
190
193
GatherLicenses .licenseConfigurations := Set (" compile" )
@@ -1203,9 +1206,8 @@ lazy val filewatcher = project
1203
1206
compileOrder := CompileOrder .ScalaThenJava ,
1204
1207
version := " 0.1" ,
1205
1208
libraryDependencies ++= slf4jApi ++ Seq (
1206
- " io.methvin" % " directory-watcher" % directoryWatcherVersion,
1207
- " commons-io" % " commons-io" % commonsIoVersion,
1208
- " org.scalatest" %% " scalatest" % scalatestVersion % Test
1209
+ " commons-io" % " commons-io" % commonsIoVersion,
1210
+ " org.scalatest" %% " scalatest" % scalatestVersion % Test
1209
1211
),
1210
1212
Compile / moduleDependencies ++= slf4jApi,
1211
1213
Compile / internalModuleDependencies := Seq (
@@ -1217,6 +1219,7 @@ lazy val filewatcher = project
1217
1219
.dependsOn(testkit % Test )
1218
1220
.dependsOn(`logging-service-logback` % " test->test" )
1219
1221
.dependsOn(`directory-watcher-wrapper`)
1222
+ .dependsOn(`jna-wrapper` % Test )
1220
1223
1221
1224
lazy val `logging-truffle-connector` = project
1222
1225
.in(file(" lib/scala/logging-truffle-connector" ))
@@ -1251,8 +1254,7 @@ lazy val `scala-libs-wrapper` = project
1251
1254
libraryDependencies ++= circe ++ scalaReflect ++ slf4jApi ++ Seq (
1252
1255
" com.typesafe.scala-logging" %% " scala-logging" % scalaLoggingVersion,
1253
1256
" org.typelevel" %% " cats-core" % catsVersion,
1254
- " com.github.plokhotnyuk.jsoniter-scala" %% " jsoniter-scala-macros" % jsoniterVersion,
1255
- " net.java.dev.jna" % " jna" % jnaVersion
1257
+ " com.github.plokhotnyuk.jsoniter-scala" %% " jsoniter-scala-macros" % jsoniterVersion
1256
1258
),
1257
1259
Compile / moduleDependencies ++= scalaLibrary ++ scalaReflect ++ Seq (
1258
1260
" org.slf4j" % " slf4j-api" % slf4jVersion
@@ -1262,10 +1264,7 @@ lazy val `scala-libs-wrapper` = project
1262
1264
(Compile / fullClasspath).value,
1263
1265
scalaLibrary ++
1264
1266
scalaReflect ++
1265
- slf4jApi ++
1266
- Seq (
1267
- " net.java.dev.jna" % " jna" % jnaVersion
1268
- ),
1267
+ slf4jApi,
1269
1268
streams.value.log,
1270
1269
moduleName.value,
1271
1270
scalaBinaryVersion.value,
@@ -1377,6 +1376,9 @@ lazy val `jna-wrapper` = project
1377
1376
Map (
1378
1377
javaModuleName.value -> jna
1379
1378
)
1379
+ },
1380
+ assemblyMergeStrategy := { case _ =>
1381
+ MergeStrategy .preferProject
1380
1382
}
1381
1383
)
1382
1384
@@ -1396,18 +1398,14 @@ lazy val `directory-watcher-wrapper` = project
1396
1398
modularFatJarWrapperSettings,
1397
1399
scalaModuleDependencySetting,
1398
1400
libraryDependencies ++= slf4jApi ++ Seq (
1399
- " io.methvin" % " directory-watcher" % directoryWatcherVersion,
1400
- " net.java.dev.jna" % " jna" % jnaVersion
1401
+ " io.methvin" % " directory-watcher" % directoryWatcherVersion exclude (" net.java.dev.jna" , " jna" )
1401
1402
),
1402
1403
javaModuleName := " org.enso.directory.watcher.wrapper" ,
1403
1404
assembly / assemblyExcludedJars := {
1404
1405
JPMSUtils .filterModulesFromClasspath(
1405
1406
(Compile / dependencyClasspath).value,
1406
1407
scalaLibrary ++
1407
- slf4jApi ++
1408
- Seq (
1409
- " net.java.dev.jna" % " jna" % jnaVersion
1410
- ),
1408
+ slf4jApi,
1411
1409
streams.value.log,
1412
1410
moduleName.value,
1413
1411
scalaBinaryVersion.value,
@@ -5476,8 +5474,7 @@ lazy val `std-tableau` = project
5476
5474
Compile / packageBin / artifactPath :=
5477
5475
`std-tableau-polyglot-root` / " std-tableau.jar" ,
5478
5476
libraryDependencies ++= Seq (
5479
- " org.netbeans.api" % " org-openide-util-lookup" % netbeansApiVersion % " provided" ,
5480
- " net.java.dev.jna" % " jna-platform" % jnaVersion
5477
+ " org.netbeans.api" % " org-openide-util-lookup" % netbeansApiVersion % " provided"
5481
5478
),
5482
5479
// Extract native libraries from tableau's jar, and put them under
5483
5480
// Standard/Tableau/polyglot/lib directory.
@@ -5513,6 +5510,7 @@ lazy val `std-tableau` = project
5513
5510
`std-tableau-native-libs`,
5514
5511
tableauVersion,
5515
5512
jnaVersion,
5513
+ (`jna-wrapper` / Compile / exportedModule).value,
5516
5514
updateReport = libraryUpdates,
5517
5515
unmanagedClasspath = unmanagedClasspath,
5518
5516
logger = logger,
0 commit comments