Gradle Plugin Development

所在平台: Udemy

课程主页: https://www.udemy.com/course/gradle-development/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:Gradle插件开发 课程概述: 该课程面向哪些人群?如果你是一位有经验的Java或Android开发者,或者在私人时间、学校或工作中使用Gradle来自动化应用构建,并且面对日益复杂的构建脚本逻辑,那么这个课程非常适合你。课程将帮助你在多个独立项目中共享构建逻辑,也可帮助你了解Gradle插件的工作原理。 课程内容: 该课程将提供创建第一个Gradle插件或改进现有插件所需的全部信息,确保你对每一部分逻辑都有清晰的理解。你将体验到Gradle 8.x和Java 17的实际应用。 你将学习: 1. **脚本插件**:最简单的创建Gradle插件的方法,快速上手。 2. **预编译脚本插件**:了解如何将插件实现提升到更高级别,便于插件结构化、测试和调试。 3. **二进制插件**:使用Gradle API编写和打包插件,使用Java语言实现插件接口的apply()方法。 4. **发布**:将二进制插件发布到本地Maven仓库(测试)、私有Maven仓库(企业内部)以及Gradle插件门户(公共分享)。 5. **扩展**:通过DSL风格的扩展块配置来增强二进制Gradle插件的灵活性。 6. **测试**:学习如何使用JUnit5对插件逻辑进行测试,并用TestKit GradleRunner类编写功能测试以验证需求,防止回归。 课程结构: 每个主题将首先通过理论讲解进行阐述,完成幻灯片后,学员将通过丰富的测验挑战应用所学知识。课程的目标是在一个地方为你提供最全面的Gradle插件信息。

课程评论(0条)

课程详情

Is this course for you?Are you an experienced Java, Android developer or someone that is using Gradle to automate builds for applications in private time, at faculty or in your job? Is your Gradle logic in the build script getting complex? Do you need to share your build logic between multiple standalone projects within your team or would you like to make it public for the whole world? Would you like to understand how Gradle plugins work under the hood? Then this course is exactly for you. It's time to roll up your sleeves and get busy!ContentYou will find all the information you need to successfully create your first Gradle plugin or improve your existing Gradle plugins and understand every bit of the logic along the way. You'll experience Gradle 8.x and Java 17 in action.You will learn, how to create:Script PluginIt's the easiest and most straight forward way to create useful Gradle plugin in no time.Precompiled Script PluginIf you want to bring plugin implementation to advanced level you should get familiar with precompiled plugins. It brings the possibility to structure the plugin, easily test and debug it.Binary PluginWrite and package your plugin like ordinary application with the Gradle API. I will use Java language to write components of the plugin like the implementation of the Plugin interface that has to implement apply() method.PublishingPublish your binary plugin to Local Maven repo (testing)Private Maven Repo (enterprises, can't share)Gradle Plugin Portal (sharing is caring)ExtensionsMaking binary Gradle plugins flexible through the extension block configuration in a DSL fashion.TestingIf you are serious about your plugin then covering its logic with tests that will verify your requirements and protect you from regressions is the way to go. In the testing section you will see how you can test internal parts with JUnit5 and wrap it up with functional tests written with the help of TestKit GradleRunner class.StructureEvery topic will be explained through theory first. After going through presentations you will be challenged to apply acquired knowledge in extensive quizzes.The goal of the course is to give you the most in depth information about Gradle plugins in one place you can find online.

课程标签

0人关注该课程

主题相关的课程