jira-importer commented on issue #32:
URL: 
https://github.com/apache/maven-jdeps-plugin/issues/32#issuecomment-2955087656

   **[Andres 
Almiray](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=aalmiray)**
 commented
   
   As a comparison, the Gradle jdeps plugin does check compile/runtime 
dependencies by default
   
   https://github.com/aalmiray/jdeps-gradle-plugin
   
   Minimum Gradle build file:
   
   ```java
   plugins {
       id 'java'
       id 'org.kordamp.jdeps' version '0.3.0'
   }
   
   repositories {
       mavenCentral()
   }
   
   dependencies {
        compile 'com.google.inject:guice:4.2.0'
        compile 'com.google.guava:guava:25.1-jre'
   }
   ```
   
   Output:
   
   ```java
   $ gw jdeps
   No gradlew set up for this project; consider setting one up:
   http://gradle.org/docs/current/userguide/gradle_wrapper.html
   
   Using gradle at 
'/Users/aalmiray/.sdkman/candidates/gradle/current/bin/gradle' to run buildfile 
'/tmp/foo/build.gradle':
   
   > Task :compileJava NO-SOURCE
   > Task :processResources NO-SOURCE
   > Task :classes UP-TO-DATE
   
   > Task :jdeps FAILED
   guava-25.1-jre.jar -> 
/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/jre/lib/rt.jar
      com.google.common.cache.Striped64 (guava-25.1-jre.jar)
         -> sun.misc.Unsafe                                    JDK internal API 
(rt.jar)
      com.google.common.cache.Striped64$1 (guava-25.1-jre.jar)
         -> sun.misc.Unsafe                                    JDK internal API 
(rt.jar)
      com.google.common.cache.Striped64$Cell (guava-25.1-jre.jar)
         -> sun.misc.Unsafe                                    JDK internal API 
(rt.jar)
      com.google.common.hash.LittleEndianByteArray$UnsafeByteArray 
(guava-25.1-jre.jar)
         -> sun.misc.Unsafe                                    JDK internal API 
(rt.jar)
      com.google.common.hash.LittleEndianByteArray$UnsafeByteArray$1 
(guava-25.1-jre.jar)
         -> sun.misc.Unsafe                                    JDK internal API 
(rt.jar)
      com.google.common.hash.LittleEndianByteArray$UnsafeByteArray$2 
(guava-25.1-jre.jar)
         -> sun.misc.Unsafe                                    JDK internal API 
(rt.jar)
      com.google.common.hash.LittleEndianByteArray$UnsafeByteArray$3 
(guava-25.1-jre.jar)
         -> sun.misc.Unsafe                                    JDK internal API 
(rt.jar)
      com.google.common.hash.Striped64 (guava-25.1-jre.jar)
         -> sun.misc.Unsafe                                    JDK internal API 
(rt.jar)
      com.google.common.hash.Striped64$1 (guava-25.1-jre.jar)
         -> sun.misc.Unsafe                                    JDK internal API 
(rt.jar)
      com.google.common.hash.Striped64$Cell (guava-25.1-jre.jar)
         -> sun.misc.Unsafe                                    JDK internal API 
(rt.jar)
      
com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator
 (guava-25.1-jre.jar)
         -> sun.misc.Unsafe                                    JDK internal API 
(rt.jar)
      
com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator$1
 (guava-25.1-jre.jar)
         -> sun.misc.Unsafe                                    JDK internal API 
(rt.jar)
      com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper 
(guava-25.1-jre.jar)
         -> sun.misc.Unsafe                                    JDK internal API 
(rt.jar)
      com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper$1 
(guava-25.1-jre.jar)
         -> sun.misc.Unsafe                                    JDK internal API 
(rt.jar)
   
   Warning: JDK internal APIs are unsupported and private to JDK implementation 
that are
   subject to be removed or changed incompatibly and could break your 
application.
   Please modify your code to eliminate dependency on any JDK internal APIs.
   For the most recent update on JDK internal API replacements, please check:
   https://wiki.openjdk.java.net/display/JDK8/Java+Dependency+Analysis+Tool
   
   JDK Internal API                         Suggested Replacement
   ----------------                         ---------------------
   sun.misc.Unsafe                          See http://openjdk.java.net/jeps/260
   
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   Execution failed for task ':jdeps'.
   > jdeps reported errors in foo
   
   * Try:
   Run with --stacktrace option to get the stack trace. Run with --info or 
--debug option to get more log output. Run with --scan to get full insights.
   
   * Get more help at https://help.gradle.org
   
   BUILD FAILED in 6s
   1 actionable task: 1 executed
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to