An article takes you to the mystery of gradle from the perspective of source code

Hello, dear friends, Yien is seeing you again. Unlike the general introduction articles on the Internet, which only stay at the level of "how to use", this article understands gradle from the perspective of source code. Of course, if you haven't read my previous article "If you don't understand gradle after reading this ar ...

Posted by bhola on Sat, 05 Mar 2022 03:12:17 +0100

I always hear about AGP. What did it do?

preface The beginning of the story is like this. When reading "Android Development Master Course" before, it was mentioned in the column of startup optimization that systrace + function plug-in is a good way of Caton troubleshooting. The main way is through Transform + Asm. I believe you are an old acquaintance. When using the ...

Posted by fatfrank on Wed, 23 Feb 2022 16:32:56 +0100

Docker's one click deployment method of SpringBoot application is quick and easy for thieves to use!

stay Gradle can really kill Maven? Today I experienced it, thief cool In this article, we talked about using Gradle to build SpringBoot applications. These two days, we found another Gradle plug-in that supports one click packaging and push Docker images. Today, let's talk about this plug-in. I hope it will be helpful to you! SpringBoot e-co ...

Posted by thaynejo on Sat, 19 Feb 2022 16:56:43 +0100

Task of Gradle learning

1, Create tasks in multiple ways 1. Create task with task name Example: // Create task with task name def Task taskCreatedByName = task taskCreatedByName // def Task taskCreatedByName = task(taskCreatedByName) taskCreatedByName.doLast { println "This is a task created by task name" } Prototype: Task task(String name) throws InvalidU ...

Posted by skehoe on Sun, 13 Feb 2022 14:29:29 +0100

Quickly compile Spring source code under Macos to solve the problem of slow compilation

Environmental preparation OS: MacOSJDK: java version "1.8.0_231"idea: 2019.3.4Gradle: 5.6.4 1. Download Spring source code 1.1 method 1-Github official https://github.com/spring-projects/spring-framework Recommendations: Select the release version to downloadThe network speed is too slow. Select mode 2 1.2 mode 2-Gitee Code cloud acce ...

Posted by Hylian on Mon, 24 Jan 2022 22:51:48 +0100

Unified dependency management composition builds

background In our AS projects, we often refer to multiple modules and many people participate in project development. Under this background, we will often encounter version conflicts and different compilesdkversions, resulting in larger packages and longer project running time. Therefore, the only way to optimize a project is to unify the depen ...

Posted by mentorbassment on Fri, 14 Jan 2022 14:46:23 +0100

Gradle publishes the Java class library to the Maven central repository

Gradle publishes the Java class library to the Maven central repository Less nonsense. Let's start with a few websites: SonatypeGradleGitHub This article starts from scratch and uses Gradle 7 to publish the Java class library to the Maven central repository GitHub Action Automatically push the release when it is released. Register sonat ...

Posted by m0rpheu5 on Fri, 14 Jan 2022 12:56:12 +0100

Gradle and AGP build API: further improve your plug-in

Welcome to read MAD Skills Collection The third article on building API between Gradle and AGP. In the last article< Gradle and AGP build API: how to write plug-ins >You learned how to write your own plug-ins and how to use them Variants API. If you prefer to learn about this through video, please Click here see. In this article, yo ...

Posted by beachdaze on Thu, 06 Jan 2022 07:13:08 +0100

gradle build tool learning series – 012 task hook to execution diagram

gradle build tool learning series Sometimes you may want to execute code when a specific lifecycle event occurs. A lifecycle event may occur before, during, or after a construction phase. The lifecycle event that occurs after the execution phase is the completion of the build. Internal representation of Task execution diagram During config ...

Posted by expl0it on Tue, 28 Dec 2021 17:56:11 +0100

An Android Demo using APT + bytecode instrumentation to optimize code design

This article, in the form of a Demo, describes the use of APT and bytecode instrumentation, and how to use them to optimize code design. 1, Introduction of Demo 1.1 requirements description Assuming that there is such a scenario, we have an application to display various cards, including CNACard and CNBCard, which are only displayed at home, ...

Posted by nfr on Fri, 03 Dec 2021 06:47:50 +0100