Skip to content

Rehdot/jackal-compiler-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jackal Compiler Plugin

What does it do?

The Jackal Compiler Plugin integrates the Jackal macro language directly into the Java compiler. It quickly expands Jackal macros before continuing the rest of the compiler's pipeline.


How do I use it?

Simply include it as a compiler plugin in your build file!

For Maven:

<repositories>
    <repository>
        <id>zenith-artifactory</id>
        <name>jackal-compiler-plugin</name>
        <url>https://artifactory.zenithstudios.dev/artifactory/jackal-compiler-plugin</url>
    </repository>
</repositories>

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.14.1</version>
            <configuration>
                <compilerArgs>
                    <arg>-Xplugin:Jackal</arg>
                </compilerArgs>
                <annotationProcessorPaths>
                    <path>
                        <groupId>me.redot.jackal</groupId>
                        <artifactId>compiler-plugin</artifactId>
                        <version>1.0-SNAPSHOT</version>
                    </path>
                </annotationProcessorPaths>
            </configuration>
        </plugin>
    </plugins>
</build>

For Gradle (Kotlin DSL):

repositories {
    maven {
        name = "zenith-artifactory"
        url = uri("https://artifactory.zenithstudios.dev/artifactory/jackal-compiler-plugin")
    }
}

dependencies {
    annotationProcessor("me.redot.jackal:compiler-plugin:1.0-SNAPSHOT")
}

tasks.withType<JavaCompile> {
    options.compilerArgs.add("-Xplugin:Jackal")
}

The plugin is hosted publicly via Zenith Studios.

About

A Java compiler plugin for compiling with Jackal

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages