gradle在哪里存储外部插件的罐子? [英] Where does gradle stores the jars of external plugins?

查看:81
本文介绍了gradle在哪里存储外部插件的罐子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个名为jsonschema2pojo的外部gradle插件.为此,我在build.gradle文件中添加了以下代码,我可以成功使用该插件.但是我找不到必须下载并存储在某个地方的jar.

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.

在哪里可以找到下载用于外部插件的jar?

我查看了〜/.gradle/caches/文件夹.对我而言,缓存文件夹包含以下子文件夹: 2.11、3.3,jars-1,modules-2,artifacts-24,jars-2.

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.

在这个项目中,我使用gradle包装器(带有gradle版本2.11)来构建项目.因此,我查看了〜/.gradle/caches/2.11文件夹,其中包含以下子目录: 插件解析,脚本,workerMain.

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.

我期望一个罐子在这里某处以jsonschema2pojo开头,但找不到它.

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'

推荐答案

您将在~/.gradle/caches/modules-2/files-2.1/文件夹中找到插件.jar文件.

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

这篇关于gradle在哪里存储外部插件的罐子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆