Introducing Ivy

Ivy files describe the dependencies of a Java library or application, something they term a module

 

Every module or child project in a big application has its own ivy.xml file. This file lists what configurations

the module has, such as compile, test, standalone, or embedded.

 

Each configuration lists the artifacts it depends on and the artifacts it generates.

 

The dependencies can be used to set up the classpath for part of the project or to compile files for 

redistribution.

 

The generated artifacts can be published to a repository, including the local file system. Other projects can declare a dependency on the published artifacts, listing the name of the project, the module, and the version required.

 

They can also declare the configurations of a module on which they want to depend.

 

A module not only exports its own artifacts, but it can also export those artifacts on which it depends.

 

Our first ivy.xml file

The first action is to create the ivy.xml file for diary/core, our core diary library. 

 Listing 11.1 The ivy.xml file for the diary-core module

<ivy-module version="1.4">

  <info organisation="org.antbook" module="diary-core" />

  <configurations defaultconfmapping="default">

    <conf name="compile" visibility="private"/>

    <conf name="test" extends="compile" visibility="private"/>   

    <conf name="master" />

    <conf name="runtime" extends="compile"/>

    <conf name="default" extends="master,runtime"/>   

  </configurations>

  <publications>

    <artifact conf="master"/>   

  </publications>

  <dependencies>

    <dependency org="log4j" name="log4j" rev="1.2.13" 

        conf="compile->default;runtime->default"/>

<dependency org="junit" name="junit" rev="3.8.2" 

        conf="test->default"/>

  </dependencies>

</ivy-module>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Learn the Fundamentals of JavaFX 8 from Programming Guru Herb Schildt Introducing JavaFX 8 Programming provides a fast-paced, practical introduction to JavaFX, Java’s next-generation GUI programming framework. In this easy-to-read guide, best-selling author Herb Schildt presents the key topics and concepts you’ll need to start developing modern, dynamic JavaFX GUI applications. The book begins with the fundamentals, including the general form of a JavaFX program. You then advance to event handling, controls, images, fonts, layouts, effects, transforms, animations (including 3-D animations), menus, and more. Numerous complete examples are included that put key topics and techniques into action. Designed for Java programmers, the book’s focus is on the JavaFX API and all examples are written entirely in Java. Best of all, the book is written in the clear, crisp, uncompromising style that has made Herb Schildt the choice of millions worldwide. Learn the general form of a JavaFX program Work with scenes and stages Understand the fundamentals of JavaFX event handling Explore several controls, such as buttons, list views, sliders, trees, tables, scroll panes, and more Work with images, fonts, and layouts Explore the JavaFX menu system Use visual effects and transforms Incorporate 2-D and 3-D animation Present data in JavaFX charts Display Web-based content using WebView and WebEngine Table of Contents Chapter 1 JavaFX Fundamentals Chapter 2 Introducing Events and Controls Chapter 3 Exploring JavaFX Controls, Part One Chapter 4 Exploring JavaFX Controls, Part Two Chapter 5 Work with Images, Fonts, and Layouts Chapter 6 Effects and Transforms Chapter 7 Animation Chapter 8 Explore Menus Chapter 9 Charts, WebView, and Canvas
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值