Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dimaslanjaka/gradle-plugin
Offline gradle plugin. Fully Automated And Useful Gradle Plugin
https://github.com/dimaslanjaka/gradle-plugin
android auto cache dependencies fix manifest offline repositories
Last synced: 25 days ago
JSON representation
Offline gradle plugin. Fully Automated And Useful Gradle Plugin
- Host: GitHub
- URL: https://github.com/dimaslanjaka/gradle-plugin
- Owner: dimaslanjaka
- Created: 2020-10-07T18:28:31.000Z (about 4 years ago)
- Default Branch: composite-build
- Last Pushed: 2023-08-12T22:09:26.000Z (about 1 year ago)
- Last Synced: 2023-08-12T22:27:58.731Z (about 1 year ago)
- Topics: android, auto, cache, dependencies, fix, manifest, offline, repositories
- Language: Java
- Homepage:
- Size: 76.3 MB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Offline gradle plugin
Plugin
Portal [https://plugins.gradle.org/plugin/com.dimaslanjaka](https://plugins.gradle.org/plugin/com.dimaslanjaka)## Requirements
- Java 11
Environment Variable
```properties
# specify maven local repository (windows sample)
MAVEN_REPO="%userprofile%\.m2"
# specify java home
JAVA_HOME="path/to/folder/java"
```## How to manual import
- copy this project inside your project
- then import like bellow### settings.gradle
```gradle
includeBuild("plugin") //name folder of this project
```## Usage Sample
how to apply this plugin to your root project
### build.gradle root project
```gradle
// repository
repositories {
mavenLocal() // make sure local maven included
mavenCentral()
google()
jcenter()
maven {
url = uri("https://plugins.gradle.org/m2/")
}
}// activate plugin
plugins {
id("com.dimaslanjaka")
}// configurations
offlineConfig {
// Unlimited Cached Artifacts
limit = Integer.MAX_VALUE
// local folder location
localRepository = new File("build/repository")
// debug while processing (dump)
debug = false
// forget expire time, do copy each project sync
force = false
// extension of artifacts went to save locally
extensions = {".module", ".jar", ".pom", ".aar", ".sha1", ".xml"}
}
```### Optional in settings.gradle
```kotlin
pluginManagement {
repositories {
gradlePluginPortal()
mavenLocal() // make sure local maven included
mavenCentral()
google()
jcenter()
maven("https://plugins.gradle.org/m2/")
maven("https://maven.springframework.org/release")
maven("https://maven.restlet.com")
maven("https://repo.gradle.org/gradle/libs-releases")
maven("https://repo.gradle.org/gradle/enterprise-libs-release-candidates-local")
maven("https://dl.bintray.com/kotlin/kotlin-eap")
maven("https://plugins.gradle.org/m2/")
maven("https://repo.spring.io/simple/libs-release-local/")
maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev/")
}
}rootProject.name = "your project name"
```