Search Gradle plugins

Version 2.2.4 (latest)

Created 10 December 2024.

A Gradle plugin used to connect to Artifact Registry Maven repositories.

Add this plugin to your build using the plugins DSL:

plugins {
  id("com.google.cloud.artifactregistry.gradle-plugin") version "2.2.4"
}

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