<commit_before># Gradle Java2HTML plugin [![Build Status](https://travis-ci.org/bmuschko/gradle-java2html-plugin.svg?branch=master)](https://travis-ci.org/bmuschko/gradle-java2html-plugin)

![Java2HTML Logo](http://www.java2html.de/java2html_logo_big.gif)

The plugin uses [Java2Html Ant task](http://www.java2html.de/docs/anttask/index.html) to convert Java (and other) source
code (complete files or snippets) to HTML, RTF, TeX and XHTML with syntax highlighting. The task is only available to projects
that apply the [Java](http://www.gradle.org/docs/current/userguide/java_plugin.html) or [Groovy](http://www.gradle.org/docs/current/userguide/groovy_plugin.html)
plugin.

## Usage

To use the Java2HTML plugin, include in your build script:

    apply plugin: 'com.bmuschko.java2html'

The plugin JAR needs to be defined in the classpath of your build script. It is directly available on
[Bintray](https://bintray.com/bmuschko/gradle-plugins/com.bmuschko%3Agradle-java2html-plugin).
Alternatively, you can download it from GitHub and deploy it to your local repository. The following code snippet shows an
example on how to retrieve it from Bintray:

    buildscript {
        repositories {
            jcenter()
        }

        dependencies {
            classpath 'com.bmuschko:gradle-java2html-plugin:2.0'
        }<commit_msg>Update latest version<commit_after># Gradle Java2HTML plugin [![Build Status](https://travis-ci.org/bmuschko/gradle-java2html-plugin.svg?branch=master)](https://travis-ci.org/bmuschko/gradle-java2html-plugin)

![Java2HTML Logo](http://www.java2html.de/java2html_logo_big.gif)

The plugin uses [Java2Html Ant task](http://www.java2html.de/docs/anttask/index.html) to convert Java (and other) source
code (complete files or snippets) to HTML, RTF, TeX and XHTML with syntax highlighting. The task is only available to projects
that apply the [Java](http://www.gradle.org/docs/current/userguide/java_plugin.html) or [Groovy](http://www.gradle.org/docs/current/userguide/groovy_plugin.html)
plugin.

## Usage

To use the Java2HTML plugin, include in your build script:

    apply plugin: 'com.bmuschko.java2html'

The plugin JAR needs to be defined in the classpath of your build script. It is directly available on
[Bintray](https://bintray.com/bmuschko/gradle-plugins/com.bmuschko%3Agradle-java2html-plugin).
Alternatively, you can download it from GitHub and deploy it to your local repository. The following code snippet shows an
example on how to retrieve it from Bintray:

    buildscript {
        repositories {
            jcenter()
        }

        dependencies {
            classpath 'com.bmuschko:gradle-java2html-plugin:2.0.1'
        }
{'fraction_non_alphanumeric': 0.10461653015636635, 'fraction_numerical': 0.01154132539091586, 'mean_word_length': 4.069811320754717, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6141061', 'n_tokens_mistral': 865, 'n_tokens_neox': 839, 'n_words': 234}