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

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

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.

Add this plugin to your build using the plugins DSL:

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

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("ch.essmann.gradle.check-java-version:ch.essmann.gradle.check-java-version.gradle.plugin:1")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("ch.essmann.gradle.check-java-version")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("ch.essmann.gradle.check-java-version:ch.essmann.gradle.check-java-version.gradle.plugin:1")
      }
    }
    
    apply(plugin = "ch.essmann.gradle.check-java-version")
  • Applying plugins to all subprojects .