Search Gradle plugins

io.ktor.plugin

Owner: KtorTeam

Provides the ability to package and containerize your Ktor application

https://ktor.io

Sources: https://github.com/ktorio/ktor

Version 3.0.3 (latest)

Created 19 December 2024.

Ktor Gradle Plugin configures deployment and version management for Ktor applications

Add this plugin to your build using the plugins DSL:

plugins {
  id("io.ktor.plugin") version "3.0.3"
}

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