Skip to content

Maven repackaging of part of OpenJDK's langtools, for the Compiler (mirror of https://bitbucket.org/earcam/jdk.compiler)

License

Notifications You must be signed in to change notification settings

earcam/jdk.compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jdk.compiler

What

Maven repackaging of part of OpenJDK's langtools, for the Compiler.

Available for Java 8, the repackaging mirrors the Java 9 module structure for jdk.compiler, using the contents of jdk8's langtools.

Why

When you include the JDK's tools.jar in your Maven POM:

            <dependency>
                    <groupId>com.sun</groupId>
                    <artifactId>tools</artifactId>
                    <version>${version.java}</version>
                    <scope>system</scope>
                    <systemPath>${java.home}/../lib/tools.jar</systemPath>
            </dependency>

SonarQube 6.4 will display (Squid S3422):

Squid S3422

Instead you may replace with:

			<dependency>
				<groupId>io.earcam.wrapped</groupId>
				<artifactId>jdk.compiler</artifactId>
				<version>1.8.132</version>
				<scope>provided</scope>
				<optional>true</optional>
			</dependency>

Miscellaneous

Need something else from tools.jar? There's another project com.sun.tools.attach repackaging com.sun.tools.attach and com.sun.tools.attach.spi as a Maven dependency. (This may be out-of-date, so check Maven central for the groupId io.earcam.wrapped, for other possible libraries wrapped for Maven).

To build run with mvn -P '!strict' clean install', the javadoc generation takes ages as it generates tonnes of UML diagrams

Status

Build Status Maven Central

Open Issues Javadoc

Supported JVMs

Azul JDK8 Oracle JDK8 OpenJDK JDK8 IBM JDK8

Licences

Licence: GPLv2+CE

About

Maven repackaging of part of OpenJDK's langtools, for the Compiler (mirror of https://bitbucket.org/earcam/jdk.compiler)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published