Search Gradle plugins

Version 0.1.2 (latest)

Created 02 February 2024.

Gradle plugin for publishing artifacts to Hangar

Add this plugin to your build using the plugins DSL:

plugins {
  id("io.papermc.hangar-publish-plugin") version "0.1.2"
}

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