Giter VIP home page Giter VIP logo

Comments (6)

cushon avatar cushon commented on July 3, 2024

Original comment posted by [email protected] on 2013-02-11 at 07:45 PM


(No comment entered for this change.)


Labels: Type-Enhancement, Priority-Low

from error-prone.

cushon avatar cushon commented on July 3, 2024

Original comment posted by vmassol on 2013-09-17 at 02:48 PM


I use Apple's JDK and was hit by this issue which prevents the XWiki project (http://xwiki.org) to use the error-prone compiler ATM (we cannot have our build not working on the Mac platform when using the main/official JDK).

from error-prone.

cushon avatar cushon commented on July 3, 2024

Original comment posted by [email protected] on 2013-09-17 at 03:31 PM


Do your users download xwiki and then compile it locally on their machines, where they may be using an Apple JDK? Or do you compile it yourself and distribute a binary, and you'd just like to be able to compile without having to download a JDK?

from error-prone.

cushon avatar cushon commented on July 3, 2024

Original comment posted by jkuhnert on 2013-11-22 at 12:22 AM


=(

from error-prone.

cushon avatar cushon commented on July 3, 2024

Original comment posted by ian.springer on 2013-11-25 at 01:51 AM


If anyone would like to add errorprone to their Maven project but prevent it from breaking the build when when being built with the Apple JDK, you can add a profile like the following to your pom:

    <profile>
        <id>oracle-jdk</id>
        <activation>
            <property>
                <name>java.vendor</name>
                <value>Oracle Corporation</value>
            </property>
        </activation>
        <build>
            <plugins>
                <!-- TODO: Move this to default build once https://github.com/google/error-prone/issues/16 has been fixed. -->
                <plugin>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <configuration>
                        <source>1.6</source>
                        <target>1.6</target>
                        <compilerId>javac-with-errorprone</compilerId>
                        <forceJavacCompilerUse>true</forceJavacCompilerUse>
                    </configuration>
                    <dependencies>
                        <dependency>
                            <groupId>org.codehaus.plexus</groupId>
                            <artifactId>plexus-compiler-javac</artifactId>
                            <version>2.3</version>
                        </dependency>
                        <dependency>
                            <groupId>org.codehaus.plexus</groupId>
                            <artifactId>plexus-compiler-javac-errorprone</artifactId>
                            <version>2.3</version>
                        </dependency>
                        <dependency>
                            <groupId>com.google.errorprone</groupId>
                            <artifactId>error_prone_core</artifactId>
                            <version>1.0.8</version>
                            <exclusions>
                                <exclusion>
                                    <groupId>openjdk</groupId>
                                    <artifactId>tools</artifactId>
                                </exclusion>
                            </exclusions>
                        </dependency>
                    </dependencies>
                </plugin>

            </plugins>
        </build>
    </profile>

from error-prone.

cushon avatar cushon commented on July 3, 2024

We require JDK7 now, and Apple's JDK is stuck at JDK6. This isn't going to happen.

from error-prone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.