Search Gradle plugins

ch.essmann.gradle.check-java-version

This plugin checks the Java version your Gradle build is running with. If the version is lower than the required minimum version or it exceeds the maximum version accepted, then the build is aborted with an friendly, easy to spot error message pointing towards the problem. This should help to avoid having to dig through the build output to find only to find an unsupported class file version error messages buried somehere in the output due to a bad Java runtime version.

https://github.com/brunoessmann/check-java-version-gradle-plugin

Version 1 (latest)

Created 03 July 2022.

This plugin checks the Java version your Gradle build is running with.

If the version is lower than the required minimum version or it exceeds the maximum version accepted,
then the build is aborted with an friendly, easy to spot error message pointing towards the problem.

This should help to avoid having to dig through the build output to find only to find an unsupported class
file version error messages buried somehere in the output due to a bad Java runtime version.

Using the plugins DSL:

plugins {
  id "ch.essmann.gradle.check-java-version" version "1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "ch.essmann.gradle:check-java-version:1"
  }
}

apply plugin: "ch.essmann.gradle.check-java-version"

Using the plugins DSL:

plugins {
  id("ch.essmann.gradle.check-java-version") version "1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("ch.essmann.gradle:check-java-version:1")
  }
}

apply(plugin = "ch.essmann.gradle.check-java-version")

Learn how to apply plugins to subprojects