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

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.

主站蜘蛛池模板: 吉林省| 连云港市| 昌黎县| 体育| 伊川县| 墨竹工卡县| 郎溪县| 平远县| 姚安县| 沙雅县| 龙泉市| 金华市| 井冈山市| 黄冈市| 江山市| 翁牛特旗| 大安市| 滁州市| 都江堰市| 平邑县| 临泉县| 金湖县| 茶陵县| 西安市| 通许县| 林甸县| 丰县| 固阳县| 秀山| 水城县| 浮山县| 博兴县| 五河县| 平塘县| 监利县| 潜江市| 义马市| 苏尼特左旗| 内黄县| 大庆市| 新巴尔虎右旗|