![]() 作者:Tim Berglund 出版社: O'Reilly Media 副标题: Customiziing Next-Generation Builds 出版年: 2013-8-15 页数: 80 定价: USD 24.99 装帧: Paperback ISBN: 9781449304676 内容简介 · · · · · ·One of Gradle's special strengths is its ability to let you define your own build vocabulary, rather than imposing its design on you. Domain-specific languages are great tools for turning your build process from mysticism into something that the entire team can understand. The result is that your build and deployment process becomes more reliable and predictable. 目录 · · · · · ·1. File Operations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Copy Task Transforming Directory Structure Renaming Files During Copy Filtering and Transforming Files Keyword Expansion Filtering Line by Line Filtering File by File The File Methods file() · · · · · ·() 1. File Operations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Copy Task Transforming Directory Structure Renaming Files During Copy Filtering and Transforming Files Keyword Expansion Filtering Line by Line Filtering File by File The File Methods file() 1 1 3 3 4 4 6 8 9 9 files() 11 fileTree() 12 The FileCollection Interface 12 Converting to a Set 14 Converting to a Path String 14 Module Dependencies as FileCollections 15 Adding and Subtracting FileCollections 16 SourceSets as FileCollections 17 Lazy Files 18 Conclusion 19 2. Custom Plug-Ins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Plug-In Philosophy 21 The Plug-In API 22 The Example Plug-In 22 Setup 23 Sketching Out Your Plug-In 24 Table of Contents Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v iii Custom Liquibase Tasks 24 Applying Yourself 25 Extensions 26 Packaging a Plug-In 31 Conclusion 33 3. Build Hooks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 The Gradle Lifecycle: A Review 35 Advising the Build Graph 36 Advising Project Evaluation 36 Global Project Loading and Evaluation Hooks 38 Build Finished 39 Rules 41 Creating a Rule 42 Dealing with Imperative Rule Code 43 Generalizing Rules Beyond Tasks 45 Conclusion 46 4. Dependency Management. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 What Is Dependency Management? 47 Dependency Concepts 48 Configurations 49 Module Dependencies 51 Dynamic Versions 53 File Dependencies 53 Project Dependencies 54 Internal Dependencies 55 Repositories: Dependency Resolution 56 Maven Repositories 56 Ivy 59 Repository Credentials 60 Static Dependencies 61 Buildscript Dependencies 63 Dependency Caching 64 Configuring Resolution Strategy 66 Failing on Version Conflict 66 Forcing Versions 66 Cache Expiration 67 Conclusion 67 Afterword. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 · · · · · · () |
好书.值得观看.更是值得收藏.
以后一直来!
让人叹为观止。
好评!有一本神奇的新书!