This is an automated email from the ASF dual-hosted git repository.

desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git

commit f7dabc89f15b747bbd9a7c840b8281a015f83752
Author: Martin Desruisseaux <martin.desruisse...@geomatys.com>
AuthorDate: Mon Oct 30 10:19:57 2023 +0100

    Replace `api` dependency to Glassfish by a pair of `compileOnly` and 
`runtimeOnly`.
    The intend is to avoid that this dependency appears in Maven pom files.
---
 endorsed/build.gradle.kts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/endorsed/build.gradle.kts b/endorsed/build.gradle.kts
index 380a387a90..828fc2b9d5 100644
--- a/endorsed/build.gradle.kts
+++ b/endorsed/build.gradle.kts
@@ -58,7 +58,8 @@ dependencies {
     api(libs.jaxb.api)
 
     // Optional dependencies
-    api(libs.jaxb.impl)                 // Actually runtime only, but declared 
as API for avoiding compiler warnings.
+    runtimeOnly(libs.jaxb.impl)
+    compileOnly(libs.jaxb.impl)                 // For avoiding compiler 
warnings. Not read by SIS modules.
     compileOnly(libs.jts.core)
     compileOnly(libs.esri.geometry)
     compileOnly(libs.libreoffice)

Reply via email to