Skip to content

beryx-gist/badass-jar-example-nqueens

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

PRs Welcome License Build Status

Badass-Jar example N-Queens

A simple project that shows how to use the Badass Jar Plugin. It implements a library for solving the N-Queens problem.

The plugin is configured in build.gradle as follows:

plugins {
    id 'java'
    id "org.beryx.jar" version "2.0.0-rc-4"
    ...
}
...
moduleConfig {
    version = project.version
}

compileJava {
    options.release = (findProperty('javaCompatibility') ?: 11) as int
}
...

Usage

To build a modular jar that targets Java 11 execute:

./gradlew build

To build a modular jar that targets Java 8 execute:

./gradlew -PjavaCompatibility=8 build

About

Usage example of the Badass Jar Plugin

Resources

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE
Unknown
license-header.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages