Skip to Content
Java持续交付
book

Java持续交付

by Daniel Bryant, Abraham Marín-Pérez
November 2019
Beginner to intermediate
406 pages
9h 21m
Chinese
Publishing House of Electronics Industry
Content preview from Java持续交付
Java
构建工具概述
69
注意插件的来源,避免“非我所创”的情况发生
正如我们之前在介绍构建依赖关系时所提到的,你应该负责应用程序中引入的
所有第三方库和依赖项以及插件。请务必在使用插件之前对它的质量进行研究,
并仔细检查相关的源代码。另一方面,这不应该成为我们自己编写每个插件的
借口。请避免”非我所创(
Not Invented Here
NIH
)“的想法,因为精心构建
和维护插件的人,已经帮你完成了许多困难的设计和异常处理。
发布和公开构件
每个构建工具都必须能够发布可供下游依赖项部署或消费的构件。大多数构建工具都具
发布
模块或代码构件的功能。它会为指定的构建分配一个唯一的版本号,并确保此坐
标在版本控制系统(
VCS
)中被正确标记。
语义版本控制
语义版本控制,或者称为
semver
,是一组简单的、用于分配和增加版本号的规
则。这些规则根据一些在闭源和开源软件中已经广为使用的办法形成。一旦你确
定了公共
API
(在
Java
中可以是一个代码级别的接口,或者是一个应用级别的
RESTful API
),就可以通过增加指定的值来修改版本号。
semver
使用
X.Y.Z
(主
版本号
.
次版本号
.
补丁号)的版本格式。对
API
没有影响的错误修复会增加补丁
号,向后兼容的
API
修改会增加次版本号,而向后不兼容的
API
修改会增加主版
本号。这样,我们通过版本号及其变更的方式,可以理解底层代码在两个版本之
间的修改内容。其他更多信息可以参考
Semantic Versioning 2.0.0
的网站上提供的
信息(
https://semver ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu
Java性能优化实践:JVM调优策略、工具与技巧

Java性能优化实践:JVM调优策略、工具与技巧

Benjamin J. Evans, James Gough, Chris Newland
Python和NLTK实现自然语言处理

Python和NLTK实现自然语言处理

Posts & Telecom Press, Nitin Hardeniya
C++语言导学(原书第2版)

C++语言导学(原书第2版)

本贾尼 斯特劳斯特鲁普

Publisher Resources

ISBN: 9787121374425