depclean | DepClean automatically detects and removes | Plugin library

 by   castor-software Java Version: 2.0.3 License: MIT

kandi X-RAY | depclean Summary

kandi X-RAY | depclean Summary

depclean is a Java library typically used in Plugin, Gradle, Maven applications. depclean has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub, Maven.

DepClean is a tool to automatically remove dependencies that are included in your Java dependency tree but are not actually used in the project's code. DepClean detects and removes all the unused dependencies declared in the pom.xml file of a project or imported from its parent. For that, it relies on bytecode static analysis and extends the maven-dependency-analyze plugin (more details on this plugin). DepClean does not modify the original source code of the application nor its original pom.xml. It can be executed as a Maven goal through the command line or integrated directly into the Maven build lifecycle. For a visual illustration of what DepClean can provide for your project, have a look at the depclean-web project.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              depclean has a low active ecosystem.
              It has 146 star(s) with 23 fork(s). There are 11 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 5 open issues and 60 have been closed. On average issues are closed in 178 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of depclean is 2.0.3

            kandi-Quality Quality

              depclean has 0 bugs and 0 code smells.

            kandi-Security Security

              depclean has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              depclean code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              depclean is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              depclean releases are available to install and integrate.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              depclean saves you 1698 person hours of effort in developing the same functionality from scratch.
              It has 3764 lines of code, 211 functions and 59 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed depclean and discovered the below as its top functions. This is intended to give you an instant insight into depclean implemented functionality, and help decide if they suit your requirements.
            • Executes the depclean plugin
            • Analyze the dependencies of a project
            • Write the result
            • Creates a JSON representation of the dependencies
            • Visit a class file
            • Add an edge to a project graph
            • Reads a string from the buffer
            • Parse constant pool class references
            • Analyze the class files
            • Analyze a directory
            • Collect all the imported classes from the given source directory
            • Collect all the imported classes from a directory
            • Visiting a field
            • Visits a method
            • Writes the POM to the project xml file
            • Visit a class
            • Analyze the class members
            • Ignore a dependency
            • Build the pom model
            • Returns a string representation of this class
            • Finds related classes
            • Visits an annotation
            • Implements the hashCode method
            • Returns the transitive dependencies of the given dependencies
            • Add dependency to the given dependency
            • Returns the dependency graph
            Get all kandi verified functions for this library.

            depclean Key Features

            No Key Features are available at this moment for depclean.

            depclean Examples and Code Snippets

            DepClean ,How does it work?,Optional Parameters
            Javadot img1Lines of Code : 17dot img1License : Permissive (MIT)
            copy iconCopy
            
              se.kth.castor
              depclean-maven-plugin
              2.0.2-SNAPSHOT
              
                
                  
                    depclean
                  
                  
                    true
                    test,runtime,provided,test,runtime,system,import
                  
                
              
            
            
            mvn se.kth.castor:depclean-maven-plugin:2.0.2-SNAPSHOT:depc  
            DepClean ,What is DepClean?
            Javadot img2Lines of Code : 14dot img2License : Permissive (MIT)
            copy iconCopy
            @Article{Soto-Valero2021,
              author={Soto-Valero, C{\'e}sar and Harrand, Nicolas and Monperrus, Martin and Baudry, Benoit},
              title={A comprehensive study of bloated dependencies in the Maven ecosystem},
              journal={Empirical Software Engineering},
              y  
            DepClean ,Usage
            Javadot img3Lines of Code : 12dot img3License : Permissive (MIT)
            copy iconCopy
            
              se.kth.castor
              depclean-maven-plugin
              2.0.2-SNAPSHOT
              
                
                  
                    depclean
                  
                
              
            
              

            Community Discussions

            QUESTION

            Building Google mtail image from official Dockerfile fails
            Asked 2019-Sep-27 at 03:12

            I am trying to build mtail image using the Dockerfile from https://github.com/google/mtail/blob/master/Dockerfile

            Steps I followed,

            1. Created a file named Dockerfile in my local directory. Copied contents from the above link to this file.
            2. ran command to build image docker build -t mtail .

            But build is exiting with this below error message,

            make: *** No rule to make target 'depclean'. Stop.

            The command '/bin/sh -c make depclean && make install_deps && PREFIX=/go make -B install' returned a non-zero code: 2

            Tried removing make depclean from Dockerfile, then it fails with,

            make: *** No rule to make target 'install_deps'. Stop.

            The command '/bin/sh -c make install_deps && PREFIX=/go make -B install' returned a non-zero code: 2

            Could not find any help in documentation, https://github.com/google/mtail/blob/master/docs/Building.md

            Thanks,

            Sandeep

            ...

            ANSWER

            Answered 2019-Sep-27 at 03:07

            Thank you @LinPy It was failing due to missing dependencies. Solution was to clone the entire repo of mtail, and then use Dockerfile from this to build image.

            Source https://stackoverflow.com/questions/58109949

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install depclean

            You can download it from GitHub, Maven.
            You can use depclean like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the depclean component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/castor-software/depclean.git

          • CLI

            gh repo clone castor-software/depclean

          • sshUrl

            git@github.com:castor-software/depclean.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link