# first-gradle-plugin **Repository Path**: Terry_/first-gradle-plugin ## Basic Information - **Project Name**: first-gradle-plugin - **Description**: first-gradle-plugin用于将生成的apk 文件按指定名称更改,并复制到指定目录下。 - **Primary Language**: Groovy - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-08-10 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # first-gradle-plugin gradle plugin 用于将生成的apk 文件按指定名称更改,并复制到指定目录下。 ## 发布到本来maven 路径下 1.将 def LOCAL_REPO_URL ="file:///D:/maven/android/repo" 修改成你本地任意路径 ## 在其实使plugin 的方式 如:针对上面的路径 在项目的gradle 中配置 ``` buildscript { repositories { maven{ url "file:///D:/maven/android/repo" } jcenter() } dependencies { // 设置groupid 及 版本 classpath 'com.terry:first-gradle-plugin:1.0.6' } } ``` 在使用到的module 中的gradle 引用配置 ``` apply plugin: 'first-gradle-plugin' copyApkPlugin{ version '1.1.2' someWordsBeforeVersion "test" bakApkPath "${buildDir}/bak" } ``` **由于在任务执行主要是添加到android 相关的task 中去了, 所以不需要单独执行什么命令**