https://github.com/succlz123/ramdiskgradleplugin
https://github.com/succlz123/ramdiskgradleplugin
gradle-plugin ram ramdisk
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/succlz123/ramdiskgradleplugin
- Owner: succlz123
- Created: 2020-11-11T09:45:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-22T11:23:24.000Z (over 5 years ago)
- Last Synced: 2024-12-27T11:23:07.814Z (over 1 year ago)
- Topics: gradle-plugin, ram, ramdisk
- Language: Kotlin
- Homepage:
- Size: 74.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## RAM Disk plugin for Gradle
A Gradle plugin that can help developer to use RAM disk to speed up compilation in an easy way.
## Usage
~~~
repositories {
maven { url 'https://jitpack.io' }
}
~~~
~~~
dependencies {
classpath 'com.github.succlz123:ramdisk:0.0.1'
}
~~~
**Just need to apply plugin in the app module once**
~~~
apply plugin: 'org.succlz123.ramdisk'
~~~
### Windows
For Windows platform, there is no convenient way to use system tool to create a RAM disk, so please download the imdisk to work with it.
https://sourceforge.net/projects/imdisk-toolkit/
## Option
gradle.properties
~~~
# if your RAM is smaller than 16GB, you need to enable the plugin manually
RAMDisk.enable=true
RAMDisk.name=RAMDiskForGradle
# 1024MB = 1GB
RAMDisk.size=1024
# apfs or hfs+, defalut is apfs
RAMDisk.mac.format=apfs
~~~
## Other
if you encouter some stranger issues with this plugin, please clean the build cache and delete the .gradle dir which locate in the project root path.
## ToDo
> Crazy Mode
Move the Gradle .cache dir into RAM disk.