Gradle plugin that displays jitpack.io dependencies as their git URLs
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'
}
}
./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
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 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.
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.