GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - formkiq/java-base-plugin: FormKiQ Gradle Plugin for Java conventions

BranchesTags
Open more actions menu

Latest commit

 

History

34 Commits
34 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
gradle/wrapper
gradle/wrapper
 
 
src/main/java/com/formkiq/gradle
src/main/java/com/formkiq/gradle
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 
spotless.eclipseformat.xml
spotless.eclipseformat.xml
 
 

Repository files navigation

FormKiQ Gradle convention plugin

Reusable Gradle convention plugin for FormKiQ Java projects.

Plugin ID: com.formkiq.gradle.java-base

Build with JDK 25 and the included Gradle 9.8.2 wrapper (./gradlew). Projects applying this plugin require JDK 25 and Gradle 9.1.0 or newer.

Features:

  • Configurable Java toolchain (defaults to 25)
  • Spotless (Java formatting + local whitespace checks for Gradle files)
  • SpotBugs (HTML reports, shared exclude filter)
  • Checkstyle (10.12.4, project-relative config)
  • Gradle Versions plugin
  • OWASP Dependency Check conventions
  • GraalVM Native plugin (FormKiQ)
  • Repositories: mavenLocal, mavenCentral, Sonatype snapshots (optional)

Gradle files use local checks for two-space tab expansion, trailing whitespace, and a final newline. They do not use Groovy-Eclipse or contact Eclipse update sites. Full Groovy indentation and wrapping are no longer enforced. Java and XML formatting are unchanged.

Quick start

Set the JVM version

Set jvmVersion in your project's gradle.properties to choose the Java toolchain used for compilation and tests in the root project and all subprojects:

jvmVersion=21

You can also override it for a single build:

./gradlew build -PjvmVersion=21

The default is Java 25. This setting selects the project toolchain; running Gradle and loading this plugin still require JDK 25.

Apply Gradle plugin

Groovy

Using the plugins DSL:

plugins {
    id 'com.formkiq.gradle.java-base' version '1.0.3'
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.formkiq.gradle:java-base:1.0.3"
  }
}

apply plugin: "com.formkiq.gradle.java-base"

Kotlin

Using the plugins DSL:

plugins {
    id("com.formkiq.gradle.java-base") version "1.0.3"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.formkiq.gradle:java-base:1.0.3")
  }
}

apply(plugin = "com.formkiq.gradle.java-base")

About

FormKiQ Gradle Plugin for Java conventions

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.