Skip to content

🧩 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?).

License

Notifications You must be signed in to change notification settings

jonathanlermitage/oga-gradle-plugin

Repository files navigation

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 ([email protected])
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

🧩 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?).

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published