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

deblibs-gradle-plugin

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

DebLibs

A Gradle plugin that creates Github issue and Slack message for outdated project dependencies so theycan easily be tracked and manually upgraded.

This plugin builds on the Gradle Versions Plugin.

Screenshots

Sample Github Issue

Sample Slack Issue

Usage

plugins block:

Build script snippet for plugins DSL for Gradle 2.1 and later:

plugins {
  id "com.hellofresh.gradle.deblibs" version "$version"
}

Build script snippet for use in older Gradle versions or where dynamic configuration is required:

buildscript block:

apply plugin: "com.hellofresh.gradle.deblibs"

buildscript {

  repositories {
    maven { url "https://plugins.gradle.org/m2/"}
  }

  dependencies {
    classpath "com.hellofresh.gradle:deblibs:$version"
  }

}

The plugin show work with Gradle version 4.9 and above.

Configuration

The following configuration block is required.

If you don't configure the default will be used which are blank values. This will lead to undesirable behaviour which means info about outdated dependencies won't be uploaded.

deblibs {
   projectName ="Project name"
   githubRepo = "project-github-repo"
   githubToken = "github-token"
   slackToken = "slack-token"
   slackChannel = "#slack-channel"
   slackIconUrl = "url-to-an-icon-to-be-used-by-the-slack-bot"
   gitlabToken = "gitlab-personal-access-token"
   gitlabProjectId = "gitlab-project-id"    
}

Tasks

The plugin comes with two tasks. A task for publishing info about outdated dependencies to Github as an issue. This is useful when you want to track outdated dependencies as an issue on Github.

The second task is for publishing info about outdated dependencies to a Slack channel as a message. This is also useful when you want to post outdated dependencies to slack.

To create a Github issue, issue the command:

./gradlew createGithubIssue

To post to Slack, issue the command:

./gradlew createSlackMessage

To create a Gitlab issue, issue the command:

./gradlew createGitlabIssue

Development

Import

Import the settings.gradle.kts file into your IDE for development. Works well with IntelliJ Community edition or IntelliJ Ultimate compared to say Android studio.

Build

Build the plugin with: ./gradlew build

Publish to a local maven repository for testing with: ./gradlew publishToMavenLocal

Test

Change into the sample-deblibs project and issue any of the plugin tasks that you want to test.

Link

Deblibs Gradle Plugin on the Gradle Plugin Registry

License

Copyright (C) 2018 The DebLibs Authors

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.
 相关资料
  • Gradle 的核心为真实世界提供了很少的自动化. 所有的实用特性,类似编译java源码的能力, 是由插件提供的. 插件添加了新的任务(如:JavaCompile),域对象(如:SourceSet),公约(如:Java资源位置是src/main/java)以及来自其他插件延伸核心对象和对象。 在本章中,我们将讨论如何使用插件和关于插件的周边概念和术语。

  • Dexcount Gradle Plugin 是一款 Gradle 插件,用于计算每个版本的 APK 或 AAR 中的方法引用数量。 随着项目越来越大,Android 应用不得不面对 64k 方法数限制的问题,这个插件可帮助你监视 app 中的方法数增长情况,并避免通过消除方法或启用 multidex 来解决问题。 用法 在 app/build.gradle 中添加 buildscript {  

  • [Deprecated] 由于官方已经有相关的中文文档,译文不再维护。最新的内容请访问此链接,如果网页内容为英文版,请滚动到网页底部,并在右下角选择语言。 译者序 《Gradle Plugin User Guide》 官方地址 http://tools.android.com/tech-docs/new-build-system/user-guide 在线阅读译文 http://chaosleon

  • Gradle License Plugin This plugin provides a task to generate a HTML license report based on theconfiguration. (eg. licenseDebugReport for all debug dependencies in an Android project). Applying this

  • Mobbeel fat AAR Gradle plugin In Mobbeel we work with a complex hierarchy of modules that in turn must embed other dependencies in the resulting AAR. To do this we use this Gradle plugin that allows t

  • Calces �� wow Android辅助构建工具,机械性工作交给我来处理,把时间用在更有价值的工作上。 目录 介绍 教程 功能介绍 快速开始 演示 属性介绍 UPDATE TODO License 介绍 Android构建工具包,这个工具的主旨是使用脚本自动处理机械化的重复劳动,让开发者专注更有价值的工作。目前提供自动组件化控制与屏幕适配插件。 组件化构建Gradle插件插件包的名字叫: c