Home

Awesome

Project archived

nb-javac-android has been merged with the AndroidIDE project.

nb-javac-android

<a href="https://github.com/itsaky/AndroidIDE"><img src="https://androidide.com/github/img/androidide.php?part&for-the-badge"/></a><br>

nb-javac is a patched version of OpenJDK "javac", i.e., the Java compiler. This has long been part of NetBeans, providing a highly tuned Java compiler specifically for the Java editor i.e., parsing and lexing for features such as syntax coloring, code completion.

nb-javac-android is a patched version of nb-javac. It allows developers to use javac i.e. the Java Compiler in android applications.

This version of nb-javac is meant to be used with AndroidIDE. If you want to use it in your project, you might need to do some modifications. See Issue #1 for more information.

Building nb-javac jar files

Prerequisite

Build the project

  1. Obtain the code with the following command
$ git clone https://github.com/itsaky/nb-javac-android.git
  1. To get a specific version use the following command
$ git checkout <release_tag_name> 
  1. Run the below command to build nb-javac.
$ ant -f ./make/langtools/netbeans/nb-javac clean jar

A JAR named nb-javac-<ver>-android.jar will be generatead at location ./make/langtools/netbeans/nb-javac/dist/

  1. Run below command to zip the source code of nb-javac
$ ant -f ./make/langtools/netbeans/nb-javac zip-nb-javac-sources

Publishing to maven central / OSSRH

  1. Aquire an account for OSSRH from sonatype and get access to the target groupId See here: https://central.sonatype.org/pages/ossrh-guide.html

  2. Configure the maven installation so that the credentials are made available for the server with the id oss.sonatype.org

  3. Run

    ant -f ./make/langtools/netbeans/nb-javac publish-to-ossrh-snapshots -Dmaven.groupId=your.grp.id
    

    to publish snapshot artifacts (https://oss.sonatype.org/content/repositories/snapshots/)

  4. Run

    ant -f ./make/langtools/netbeans/nb-javac publish-to-maven-central -Dmaven.groupId=your.grp.id
    

    to stage the release, which will get promoted to maven central, after it has been manually released.

Documentation

nb-javac help

Contributing

See the Contributing Policy

Security

See the Security Policy