Search Gradle plugins

com.github.snowdream.gradle.java-version-check

Owner: yanghui

a gradle plugin to avoid the error: "java.lang.UnsupportedClassVersionError: Unsupported major.minor version **"

https://github.com/snowdream/java-version-check

Sources: https://github.com/snowdream/java-version-check

Version 0.1 (latest)

Created 03 October 2016.

a gradle plugin to avoid the error: "java.lang.UnsupportedClassVersionError: Unsupported major.minor version **"

Add this plugin to your build using the plugins DSL:

plugins {
  id("com.github.snowdream.gradle.java-version-check") version "0.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("com.github.snowdream.gradle.java-version-check:com.github.snowdream.gradle.java-version-check.gradle.plugin:0.1")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("com.github.snowdream.gradle.java-version-check")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("com.github.snowdream.gradle.java-version-check:com.github.snowdream.gradle.java-version-check.gradle.plugin:0.1")
      }
    }
    
    apply(plugin = "com.github.snowdream.gradle.java-version-check")
  • Applying plugins to all subprojects .