Search Gradle plugins

com.github.onslip.gradle-one-jar

The gradle-one-jar project is a Gradle plugin that uses One-JAR, a specialized Class-Loader written by Simon Tuffs (http://one-jar.sourceforge.net/), for building self-contained executable jars that include all dependencies.

https://github.com/Onslip/gradle-one-jar/

Sources: https://github.com/Onslip/gradle-one-jar.git

Version 1.1.0 (latest)

Created 12 April 2023.

The gradle-one-jar project is a Gradle plugin that uses One-JAR, a specialized Class-Loader written by Simon Tuffs (http://one-jar.sourceforge.net/), for building self-contained executable jars that include all dependencies.

Add this plugin to your build using the plugins DSL:

plugins {
  id("com.github.onslip.gradle-one-jar") version "1.1.0"
}

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