How To Install gradle-apt-plugin on Kali Linux
Introduction
In this tutorial we learn how to install gradle-apt-plugin on Kali Linux.
What is gradle-apt-plugin
gradle-apt-plugin is:
This plugin does a few things to make it easier/safer to use Java annotation processors in a Gradle build:
- it ensures the presence of configurations for your compile-time only dependencies (annotations, generally) and annotation processors, consistently across all supported Gradle versions;
- automatically configures the corresponding JavaCompile and GroovyCompile tasks to make use of these configurations, when the java or groovy plugin is applied;
- automatically configures IntelliJ IDEA and/or Eclipse when the net.ltgt.apt-idea or net.ltgt.apt-eclipse plugins are applied.
There are three methods to install gradle-apt-plugin on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install gradle-apt-plugin Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install gradle-apt-plugin using apt-get by running the following command:
sudo apt-get -y install gradle-apt-pluginInstall gradle-apt-plugin Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install gradle-apt-plugin using apt by running the following command:
sudo apt -y install gradle-apt-pluginInstall gradle-apt-plugin Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install gradle-apt-plugin using aptitude by running the following command:
sudo aptitude -y install gradle-apt-pluginHow To Uninstall gradle-apt-plugin on Kali Linux
To uninstall only the gradle-apt-plugin package we can use the following command:
sudo apt-get remove gradle-apt-pluginUninstall gradle-apt-plugin And Its Dependencies
To uninstall gradle-apt-plugin and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove gradle-apt-pluginRemove gradle-apt-plugin Configurations and Data
To remove gradle-apt-plugin configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge gradle-apt-pluginRemove gradle-apt-plugin configuration, data, and all of its dependencies
We can use the following command to remove gradle-apt-plugin configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge gradle-apt-pluginDependencies
gradle-apt-plugin have the following dependencies:
References
Summary
In this tutorial we learn how to install gradle-apt-plugin package on Kali Linux using different package management tools: apt, apt-get and aptitude.