Gradle URL Cache

Gradle plugin that facilitates the caching of urls.

License

License

Categories

Categories

Gradle Build Tools Net
GroupId

GroupId

net.vrallev.gradle
ArtifactId

ArtifactId

url-cache-plugin
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

Gradle URL Cache
Gradle plugin that facilitates the caching of urls.
Project URL

Project URL

https://github.com/vRallev/gradle-url-cache-plugin
Source Code Management

Source Code Management

https://github.com/vRallev/gradle-url-cache-plugin

Download url-cache-plugin

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

gradle-url-cache-plugin

Build Status

Gradle plugin that facilitates the caching of urls.

Usage

The plugin is available on Jcenter

To use the plugin with Gradle 2.1 or later, add the following to your build.gradle:

plugins {
  id 'com.kageiit.url-cache' version '1.0.0'
}

To use the plugin with Gradle 2.0 or older, add the following to build.gradle:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath "com.kageiit:url-cache-plugin:1.0.0"
    }
}
apply plugin: 'com.kageiit.url-cache'

This plugin was created mainly to address the problem of not being able to cache shared build configuration files using apply from: . You can now simply do:

apply plugin: 'com.kageiit.url-cache'
apply from: urlCache.get('http://example.com/shared-build-config.gradle')

It tries to fetch/refetch urls on every run. If the url could not be fetched or the --offline switch is used to start the build, the cached version is used instead. The cache is stored in the standard gradle user home caches directory.

License

Copyright 2014 Gautam Korlam

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.

Versions

Version
1.0.1