AutoGradlePlugin

Generate META-INF gradle-plugins for standalone Gradle plugins

License

License

Categories

Categories

Gradle Build Tools Net Auto Application Layer Libs Code Generators
GroupId

GroupId

co.netscal
ArtifactId

ArtifactId

auto-gradle-plugin
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

AutoGradlePlugin
Generate META-INF gradle-plugins for standalone Gradle plugins
Project URL

Project URL

https://github.com/Netscal/autogradleplugin
Source Code Management

Source Code Management

https://github.com/Netscal/autogradleplugin.git

Download auto-gradle-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/co.netscal/auto-gradle-plugin/ -->
<dependency>
    <groupId>co.netscal</groupId>
    <artifactId>auto-gradle-plugin</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/co.netscal/auto-gradle-plugin/
implementation 'co.netscal:auto-gradle-plugin:1.0.0'
// https://jarcasting.com/artifacts/co.netscal/auto-gradle-plugin/
implementation ("co.netscal:auto-gradle-plugin:1.0.0")
'co.netscal:auto-gradle-plugin:jar:1.0.0'
<dependency org="co.netscal" name="auto-gradle-plugin" rev="1.0.0">
  <artifact name="auto-gradle-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='co.netscal', module='auto-gradle-plugin', version='1.0.0')
)
libraryDependencies += "co.netscal" % "auto-gradle-plugin" % "1.0.0"
[co.netscal/auto-gradle-plugin "1.0.0"]

Dependencies

runtime (3)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib jar 1.3.72
com.google.guava : guava jar 25.1-jre
co.netscal : auto-gradle-plugin-annotations jar 1.0.0

Project Modules

There are no modules declared in this project.

Auto Gradle Plugin Download Build Status

When implementing standalone Gradle Plugins you can use @AutoGradlePlugin in order to register implementations of well-known types using META-INF metadata.

Download

Download the latest JAR or grab via Maven:

<dependency>
  <groupId>co.netscal</groupId>
  <artifactId>auto-gradle-plugin-annotations</artifactId>
  <version>1.0.0</version>
</dependency>
<dependency>
  <groupId>co.netscal</groupId>
  <artifactId>auto-gradle-plugin</artifactId>
  <version>1.0.0</version>
</dependency>

or Gradle:

implementation 'co.netscal:auto-gradle-plugin-annotations:1.0.0'
annotationProcessor 'co.netscal:auto-gradle-plugin:1.0.0'

Kotlin

implementation 'co.netscal:auto-gradle-plugin-annotations:1.0.0'
kapt 'co.netscal:auto-gradle-plugin:1.0.0'

Example

Say you have:

package foo.bar;

import org.gradle.api.Plugin;
import org.gradle.api.Project;

@AutoGradlePlugin("com.example")
final class MyPlugin implements Plugin<Project> {
  //
}

AutoGradlePlugin will generate the file META-INF/gradle-plugins/com.example.properties in the output classes

License

Copyright 2020 Netscal

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

co.netscal

Netscal

Versions

Version
1.0.0