Skip to content

Gradle plugin that displays jitpack.io dependencies as their git URLs

License

Notifications You must be signed in to change notification settings

Commit451/jitpacktogit

Repository files navigation

jitpacktogit

Gradle plugin that displays jitpack.io dependencies as their git URLs

Build Status

Gradle Dependency

This plugin is available via JitPack. Go figure!

apply plugin: 'com.commit451.jitpacktogit'

buildscript {
  repositories {
    jcenter()
    maven { url "https://jitpack.io" }
  }

  dependencies {
    classpath 'com.github.Commit451:jitpacktogit:latest.version.here'
  }
}

Usage

./gradlew jitpacktogit

Output looks like:

com.github.Commit451:jitpacktogit:1.0.0 -> https://github.com/Commit451/jitpacktogit
com.github.Commit451.Reptar:reptar:2.2.1 -> https://github.com/Commit451/Reptar
com.github.Commit451:bypasses:1.0.4 -> https://github.com/Commit451/bypasses
com.github.Commit451:ElasticDragDismissLayout:1.0.4 -> https://github.com/Commit451/ElasticDragDismissLayout
com.github.Commit451.AdapterLayout:adapterlayout:1.1.0 -> https://github.com/Commit451/AdapterLayout
com.github.Commit451.Easel:easel:2.1.1 -> https://github.com/Commit451/Easel

Note

This will only work for JitPack dependencies that follow the normal com.github.{user} structure. If the dependency is using a custom domain within JitPack, the URL will not be resolved.

Thanks

Thanks to Ben Manes for his versions plugin and Square for SQLDelight which were both great references for creating a Gradle plugin. The docs also helped out immensely.

License

Copyright 2017 Commit 451

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.