官术网_书友最值得收藏!

Chapter 2. Building Java Projects

In the previous chapter, we saw a very basic build script, which just printed the customary Hello World on the console. Now that we are comfortable with the Gradle command line interface, it's a perfect time for us to jump-start our journey with a simple Java project.

In this chapter, we will see how to build and test simple Java projects with Gradle, how external dependencies are added to the classpath, and how building distributable binaries work.

We will try to keep the Java code as minimal as possible so that we can focus more on the build of the project. Along the way, we will learn some best practices that a Gradle-based project should follow. It's okay if we are not able to comprehend all the build script syntax in this chapter because we are going to see that in detail in Chapter 4, Demystifying Build Scripts.

主站蜘蛛池模板: 海伦市| 仙居县| 陆良县| 大方县| 万山特区| 天气| 普兰县| 大邑县| 新乡县| 三台县| 叙永县| 宜昌市| 内丘县| 黄石市| 株洲市| 徐州市| 花莲县| 津南区| 富阳市| 仪陇县| 蓝田县| 凤凰县| 岗巴县| 时尚| 阜阳市| 临澧县| 繁峙县| 北海市| 湟源县| 苏尼特右旗| 屏东市| 罗平县| 阿克苏市| 濮阳市| 鞍山市| 驻马店市| 临江市| 洛浦县| 新郑市| 夏邑县| 临泽县|