diff --git a/bson-scala/build.gradle b/bson-scala/build.gradle index 6606dec5a89..5d21ed521b5 100644 --- a/bson-scala/build.gradle +++ b/bson-scala/build.gradle @@ -18,7 +18,7 @@ description = "A Scala wrapper / extension to the bson library" archivesBaseName = 'mongo-scala-bson' dependencies { - implementation project(path: ':bson', configuration: 'default') + api project(path: ':bson', configuration: 'default') } sourceSets { diff --git a/build.gradle b/build.gradle index a45de80f347..88295f763be 100644 --- a/build.gradle +++ b/build.gradle @@ -109,6 +109,7 @@ configure(javaProjects) { configure(scalaProjects) { apply plugin: 'scala' + apply plugin: 'java-library' apply plugin: 'idea' apply plugin: "com.adtran.scala-multiversion-plugin" apply plugin: "com.diffplug.spotless" @@ -116,8 +117,8 @@ configure(scalaProjects) { group = 'org.mongodb.scala' dependencies { - implementation ('org.scala-lang:scala-library:%scala-version%') - implementation ('org.scala-lang:scala-reflect:%scala-version%') + api ('org.scala-lang:scala-library:%scala-version%') + api ('org.scala-lang:scala-reflect:%scala-version%') testImplementation(platform("org.junit:junit-bom:$junitBomVersion")) testImplementation("org.junit.vintage:junit-vintage-engine") diff --git a/driver-scala/build.gradle b/driver-scala/build.gradle index 4490ed39538..e9e9e15040e 100644 --- a/driver-scala/build.gradle +++ b/driver-scala/build.gradle @@ -19,8 +19,8 @@ archivesBaseName = 'mongo-scala-driver' dependencies { - implementation project(path: ':bson-scala', configuration: 'default') - implementation project(path: ':driver-reactive-streams', configuration: 'default') + api project(path: ':bson-scala', configuration: 'default') + api project(path: ':driver-reactive-streams', configuration: 'default') compileOnly 'com.google.code.findbugs:jsr305:1.3.9' testImplementation project(':driver-sync')