在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):jjohannes/idiomatic-gradle开源软件地址(OpenSource Url):https://github.com/jjohannes/idiomatic-gradle开源编程语言(OpenSource Language):Kotlin 72.1%开源软件介绍(OpenSource Introduction):Example of how to idiomatically structure a large build with Gradle 7.2+For a better understanding of the concepts used in this example, check out Understanding Gradle. In addition to this, check How to set up a larger Gradle project. ExampleThere is now documentation and another sample on this topic in the Gradle User Manual. This example is a software product called Idiomatic Gradle (IG). To build the example, clone this repository and run the following for more information:
This example consists of: Production codeInside the 'product' folder, there are three components/builds:
For the sake of the sample each of these folders only contain one subproject. In a real-world application, this can be structured into many, many more Gradle subprojects. Packaging and PublishingBoth the server and the client API Jar require some special packaging to be published/distributed. Hence, this is configured in a separate component/build only responsible for aggregating build results:
TestingEach project contains unit tests using Gradle's default setup for Java projects with the Idiomatic Build Logic StructureThe build contains some standard configuration for Java compilation and testing. It contains more involved configuration code to configure the packaging/publishing and the end2end test setup. There are multiple ways to do all this in Gradle today. This sample employs the following good patterns which result in a good build structure (easy to maintain and fast for Gradle to execute) as described here. With this, the following outdated practices are avoided:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论