Skip to content

Latest commit

 

History

History
63 lines (38 loc) · 2.82 KB

README.md

File metadata and controls

63 lines (38 loc) · 2.82 KB

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