fix build.gradle to api some dependencies
@@ -8,6 +8,8 @@ plugins {
// Gradle plugin to discover dependency updates
// <https://github.com/ben-manes/gradle-versions-plugin>
id "com.github.ben-manes.versions" version "0.28.0"
+
+ id "java-library"
}
allprojects {
@@ -48,16 +50,6 @@ allprojects {
// https://github.com/eclipse-ee4j/common-annotations-api
implementation "jakarta.annotation:jakarta.annotation-api:2.0.0-RC1"
-
- // NOTE: This is to support Android API < 24. Once it becomes acceptable to require API 24+ we can drop this and
- // use CompletableFuture directly.
- // https://github.com/stefan-zobel/streamsupport
- // https://developer.android.com/about/dashboards/index.html
- implementation "net.sourceforge.streamsupport:streamsupport:1.7.2"
- implementation "net.sourceforge.streamsupport:streamsupport-cfuture:1.7.2"
-
- // NOTE: This is to support Android API < 26.
- implementation "org.threeten:threetenbp:1.4.2"
}
}
@@ -75,7 +67,7 @@ dependencies {
// Protobuf Lite is used to maintain easy compatibility with Android
// https://github.com/protocolbuffers/protobuf/blob/master/java/lite.md
- implementation "com.google.protobuf:protobuf-javalite:3.11.4"
+ api "com.google.protobuf:protobuf-javalite:3.11.4"
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
implementation 'org.slf4j:slf4j-api:2.0.0-alpha1'
@@ -90,6 +82,16 @@ dependencies {
testRuntimeOnly "org.slf4j:slf4j-simple:2.0.0-alpha1"
integrationTestRuntimeOnly "io.grpc:grpc-netty-shaded:1.28.1"
+
+ // NOTE: This is to support Android API < 24. Once it becomes acceptable to require API 24+ we can drop this and
+ // use CompletableFuture directly.
+ // https://github.com/stefan-zobel/streamsupport
+ // https://developer.android.com/about/dashboards/index.html
+ api "net.sourceforge.streamsupport:streamsupport:1.7.2"
+ api "net.sourceforge.streamsupport:streamsupport-cfuture:1.7.2"
+
+ // NOTE: This is to support Android API < 26.
+ api "org.threeten:threetenbp:1.4.2"
}
// https://github.com/google/protobuf-gradle-plugin
