jonathanlermitage / oga-gradle-plugin

:jigsaw: Old GroupIds Alerter - A Gradle plugin that checks for deprecated groupId+artifactId (e.g. did you know that graphql-spring-boot-starter moved from com.graphql-java to com.graphql-java-kickstart?).

Home Page:https://plugins.gradle.org/plugin/biz.lermitage.oga

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Old GroupIds Alerter - Gradle Plugin

Looking for a Maven plugin? Check oga-maven-plugin.

A Gradle plugin that checks for deprecated groupId + artifactId couples, in order to reduce usage of non-maintained 3rd-party code (e.g. did you know that artifact graphql-spring-boot-starter moved from from com.graphql-java to com.graphql-java-kickstart?).

Tested with Gradle 4.10.3, 5.6.4, 6.9.1 and 7.3.1 on JDK8 and JDK11.

Author

Jonathan Lermitage (jonathan.lermitage@gmail.com)
Linkedin profile: jonathan-lermitage-092711142

Usage

Using the plugins DSL:

plugins {
  id "biz.lermitage.oga" version "1.1.1"
}

Otherwise, using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.biz.lermitage.oga:oga-gradle-plugin:1.1.1"
  }
}

apply plugin: "biz.lermitage.oga"

Then launch ./gradlew biz-lermitage-oga-gradle-check. If any deprecated groupId + artifactId couple is found, error message(s) will be displayed and the Gradle build will fail.

See plugins.gradle.org/plugin/biz.lermitage.oga for details.

Screenshot

Build

./gradlew build

Contribution

Code

Open an issue or a pull-request. Contributions must be tested at least on JDK8.
Please reformat new code only: do not reformat the whole project or entire existing file (in other words, try do limit the amount of changes in order to speed up code review).

Definitions file

See oga-maven-plugin#definitions-file. The same definitions file is used for both Maven and Gradle plugins.

Find new entries for definitions file

See oga-maven-plugin#find-new-entries-for-definitions-file.

License

MIT License. In other words, you can do what you want: this project is entirely OpenSource, Free and Gratis.

About

:jigsaw: Old GroupIds Alerter - A Gradle plugin that checks for deprecated groupId+artifactId (e.g. did you know that graphql-spring-boot-starter moved from com.graphql-java to com.graphql-java-kickstart?).

https://plugins.gradle.org/plugin/biz.lermitage.oga

License:MIT License


Languages

Language:Java 95.2%Language:Batchfile 4.8%