All Projects → rock3r → Deep Clean

rock3r / Deep Clean

Licence: apache-2.0
When Gradle or the IDE let you down, just --nuke all them caches

Programming Languages

kotlin
9241 projects
script
160 projects

Projects that are alternatives of or similar to Deep Clean

Fastdex
🚀 加快 apk 的编译速度 🚀
Stars: ✭ 1,457 (+111.47%)
Mutual labels:  gradle, androidstudio
Mvpautocodeplus
🔌An IDEA/Android Studio plug-in that automatically generates an MVP template code
Stars: ✭ 176 (-74.46%)
Mutual labels:  idea, androidstudio
Nodebb Webview
NodeBB WebView for Android
Stars: ✭ 64 (-90.71%)
Mutual labels:  gradle, androidstudio
Grabredenvelope
微信抢红包Android APP
Stars: ✭ 245 (-64.44%)
Mutual labels:  gradle, androidstudio
Autoarchive
一个基于Jenkins的iOS/Android自动构建系统,它实现了最大程度的自动化,让你的iOS自动打包,Android自动打包流程变得更加高效。此项目包含了各种实现细节的讲解说明,你能够使用它解决大多数跟客户端构建/分发相关的问题,并将这种能力进行开放,提高研发效率。
Stars: ✭ 248 (-64.01%)
Mutual labels:  gradle, androidstudio
RecyclerELE
Android Library for easy addition of Empty, Loading and Error views in a RecyclerView
Stars: ✭ 27 (-96.08%)
Mutual labels:  gradle, androidstudio
GradleDependencyHelper
An Android Studio Plugin for searching maven dependencies faster.
Stars: ✭ 13 (-98.11%)
Mutual labels:  idea, androidstudio
The Pit Of The Android Studio
👍 👍 👏 🌟 ⭐️ ⭐️ Everything about the Android Studio and Intellij IDEAfor example:Install,common problems and solutions,each libraries for android and androidx library,code and peoject templates,etc.全面总结Android Studio以及Intellij IDEA的填坑指南,详解AS版本号、Gradle版本、BuildTools三者的对照关系,AS模板配置,gradle插件,Android自带注解库详解,support详解等干货。
Stars: ✭ 296 (-57.04%)
Mutual labels:  gradle, androidstudio
Gradlekotlinconverter
Convert from Groovy to Kotlin DSL for Gradle, focused on Android.
Stars: ✭ 559 (-18.87%)
Mutual labels:  gradle
Spock Example
Spock example specifications along with ready-to-go Gradle and Maven builds
Stars: ✭ 595 (-13.64%)
Mutual labels:  gradle
Translatorx
JetBrains 系列软件汉化包 关键字: Android Studio 3.5 汉化包 CLion 2019.3 汉化包 DataGrip 2019.3 汉化包 GoLand 2019.3 汉化包 IntelliJ IDEA 2019.3 汉化包 PhpStorm 2019.3 汉化包 PyCharm 2019.3 汉化包 Rider 2019.3 汉化包 RubyMine 2019.3 汉化包 WebStorm 2019.3 汉化包
Stars: ✭ 4,856 (+604.79%)
Mutual labels:  androidstudio
Learning Resources
"Technology Gold mine" to collect and share materials/resources
Stars: ✭ 573 (-16.84%)
Mutual labels:  gradle
Charlatano
Proves JVM cheats are viable on native games, and demonstrates the longevity against anti-cheat signature detection systems
Stars: ✭ 599 (-13.06%)
Mutual labels:  gradle
Gradle Git
Git plugin for Gradle
Stars: ✭ 559 (-18.87%)
Mutual labels:  gradle
Bottomdialogs
An Android library that shows a customizable Material-based bottom sheet. API 11+ required.
Stars: ✭ 624 (-9.43%)
Mutual labels:  gradle
Mixin
Mixin is a trait/mixin and bytecode weaving framework for Java using ASM
Stars: ✭ 557 (-19.16%)
Mutual labels:  gradle
Gradle Advanced Build Version
A plugin to generate the Android version code and version name automatically based on git commits number, date and ...
Stars: ✭ 545 (-20.9%)
Mutual labels:  gradle
Minecraftdev
Plugin for IntelliJ IDEA that gives special support for Minecraft modding projects.
Stars: ✭ 645 (-6.39%)
Mutual labels:  gradle
Zoomrecylerlayout
🎢 Zoom Recycler Layout Manager For Android Kotlin
Stars: ✭ 618 (-10.3%)
Mutual labels:  androidstudio
Gradle Tips
Gradle tips for all of us
Stars: ✭ 588 (-14.66%)
Mutual labels:  gradle

deep-clean

A Kotlin script that nukes all build caches from Gradle/Android projects. Useful when Gradle or the IDE let you down 💔

deep-clean in action

🎩 h/t to @Takhion for the original idea, and to @holgerbrandl for KScript.

The script has been tested on macOS 🍎, but it is completely untested on Linux 🐧 and Windows 🖥️.

⚠️There may be major issues on Windows/Linux when using -n, please let me know if you encounter any such issue!

USE AT YOUR OWN RISK IN ANY CASE!

Running the script

deep-clean requires three components to be on your PATH:

If you have all three commands on your PATH, then you can simply download and execute the script:

$ cd /your/project/root.folder
$ [kscript] deep-clean.kts [options]

Note: on macOS and Linux the script does not need kscript to be invoked, because it has a shebang. On Windows, you will need to explicitly specify you want to use kscript to run it.

Where the options are:

-b --backup           Renames files and folders instead of deleting them. Implies
                      --verbose.
-d --dry-run          Don't delete anything. Useful for testing. Implies --verbose.
-i --ide-files        This also deletes IDEA/Android Studio project files (*.iml).
                      If used in conjunction with --nuke it will also delete the
                      .idea folder in the current directory.
-p --ide-preferences  ⚠️  THIS IS DANGEROUS SHIT ⚠️  Will wipe your IDE settings!
                      This deletes the GLOBAL IDEA/Android Studio preferences.
                      This option requires the --nuke option to be active too, since
                      it touches global system state.
--not-recursive       Don't recursively search sub-folders of this folder for matches.
                      The default behaviour is to look for matches in sub-directories,
                      since things like 'build' folders and '.iml' files are not all
                      found at the top level of a project directory structure. This
                      flag is useful if you know you have matches you want to keep,
                      e.g., if your code contains a package with a name like 'build'.
                      This option severely limits the effectiveness of the deep clean.
-n --nuke             ⚠️  THIS IS DANGEROUS SHIT ⚠️  Super-deep clean
                      This includes clearing out global folders, including:
                       * the global Gradle cache
                       * the wrapper-downloaded Gradle distros
                       * the Gradle daemon data (logs, locks, etc.)
                       * the Android build cache
                      Nukes the entire thing from orbit — it's the only way to be sure.
-v --verbose          Print detailed information about all commands.

If you DON'T have all three commands on your PATH, then read on to the next section to install them.

Installing the script dependencies

To make the script run, we'll first need to install all the required dependencies. All dependencies are available on SDKMan! (Windows, Linux, macOS) and on Homebrew (macOS only).

Windows, Linux:

$ sdk install kotlin
$ sdk install maven
$ sdk install kscript

macOS:

$ brew install kotlin maven holgerbrandl/tap/kscript

Licence

Copyright 2021 Sebastiano Poggi

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.

For more information please refer to the LICENSE file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].