当前位置: 首页 > 软件库 > 手机/移动开发 > >

deep-clean

授权协议 Apache-2.0 License
开发语言 Kotlin
所属分类 手机/移动开发
软件类型 开源软件
地区 不详
投 递 者 陆博易
操作系统 Android
开源组织
适用人群 未知
 软件概览

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 onLinux �� 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 downloadand 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, becauseit has a shebang. On Windows, youwill 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 global Maven artefacts
                       * 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 nextsection 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.

  • 2.Select a relatively large file containing Python source code 选择一个比较大的python源码文件 a. Build an index of all the words in the source file (feel free to make your tokenization as simple or as complex as

 相关资料
  • DEEP(Digital Enterprise End-to-end Platform)是由 AWS 支持的成本低,维护成本低的数字化平台。帮助企业开发人员提高工作效率。 使用DEEP Framework,开发人员可以立即使用: 简化的“类似于生产”的开发环境 使用微服务架构的企业级平台 零发展几乎无限的可扩展性(又名无服务器计算) 来自云提供商(例如AWS,GCP等)的Web服务的抽象使用

  • 人工神经网络(ANN)是一种高效的计算系统,其中心主题借鉴了生物神经网络的类比。 神经网络是机器学习的一种模型。 在20世纪80年代中期和90年代初期,在神经网络中进行了许多重要的建筑改进。 在本章中,您将了解有关深度学习的更多信息,这是一种人工智能的方法。 深度学习源自十年来爆炸性的计算增长,成为该领域的一个重要竞争者。 因此,深度学习是一种特殊的机器学习,其算法受到人脑结构和功能的启发。 机器

  • 本教程的前四章旨在为初学者提供IntelliJ的基本概述。 本节深入探讨了IntelliJ,并讨论了有关项目,其格式以及其他内容的更多信息。 了解项目 项目是您正在使用的应用程序或软件。 它可以包含多个模块,类,库,配置等。 它是层次结构中最顶层的元素。 了解模块 模块在“项目”下面有一个梯级。 模块是一个独立的实体,可以独立于其他模块进行编译,调试和运行。 单个项目可以包含多个模块。 您可以随时

  • deep-listening Deep learning experiments for audio classification A full write-up, including technical explanations and design decisions, as well as a summary of results achieved can be found within t

  • New books available for subscription Deep Diamond Adopt your pet function and become a patron. Deep Diamond is a Clojure library for fast tensors and neural network related computations based on the h

  • DEEP Framework DEEP Framework is a Full-Stack JavaScript Framework for building cloud-native web applications. This framework is a core component of a larger ecosystem, calledDigital Enterprise End-to