Search Gradle plugins

software.amazon.smithy.gradle.smithy-jar

Owner: Smithy

Adds built Smithy files to an existing jar task such as that createdby the Java or Kotlin plugins. The smithy-jar plugin also adds build metadataand tags to the JAR's MANIFEST. The smithy-jar plugin applies the smithy-baseplugin when it is applied.

https://smithy.io

Sources: https://github.com/smithy-lang/smithy-gradle-plugin

Version 1.1.0 (latest)

Created 18 July 2024.

Adds built Smithy files to an existing jar task such as that created by the Java or Kotlin plugins. The smithy-jar plugin also adds build metadata and tags to the JAR's MANIFEST. The smithy-jar plugin applies the smithy-base plugin when it is applied.

Add this plugin to your build using the plugins DSL:

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