Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does gradle stores the jars of external plugins?

Tags:

gradle

I am using an external gradle plugin called jsonschema2pojo. For that I added the following code inside build.gradle file and I could successfully use that plugin. But I cannot locate the jar that must be downloaded and stored somewhere.

Where do I find the jar that is downloaded for external plugin?

I looked inside ~/.gradle/caches/ folder. For me the caches folder contains the following subfolders: 2.11, 3.3, jars-1, modules-2, artifacts-24, jars-2.

In this project I am using gradle wrapper (with gradle version 2.11) to build the project. So I looked inside ~/.gradle/caches/2.11 folder which contains the following subdirectories: plugin-resolution, scripts, workerMain.

I was expecting a jar starts with jsonschema2pojo somewhere here, but could not locate one.

buildscript {
    repositories {
        mavenLocal()
    }

    dependencies {
        classpath 'org.jsonschema2pojo:jsonschema2pojo-gradle-plugin:0.4.29'
    }
}

apply plugin: 'jsonschema2pojo'
like image 985
amy Avatar asked Jan 23 '17 04:01

amy


People also ask

Where are gradle jars stored?

The Jar is created under the $project/build/libs/ folder.

Where does gradle store plugin dependencies?

Gradle declares dependencies on JAR files inside your project's module_name /libs/ directory (because Gradle reads paths relative to the build.gradle file). This declares a dependency on version 12.3 of the "app-magic" library, inside the "com.example.android" namespace group.

Where is Android gradle plugin located?

You can specify the Gradle version in either the File > Project Structure > Project menu in Android Studio, or update your Gradle version using the command line. The preferred way is to use the Gradle Wrapper command line tool, which updates the gradlew scripts.


1 Answers

You will find the plugin .jar file inside the ~/.gradle/caches/modules-2/files-2.1/ folder.

like image 118
Egor Neliuba Avatar answered Jan 03 '23 17:01

Egor Neliuba