Incremental Builds

Incremental Builds Extension for GIT.

License

License

GroupId

GroupId

com.ikelin
ArtifactId

ArtifactId

incremental-builds
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

Incremental Builds
Incremental Builds Extension for GIT.
Project URL

Project URL

https://github.com/ikelin/incremental-builds.git
Source Code Management

Source Code Management

http://github.com/ikelin/incremental-builds/tree/master

Download incremental-builds

How to add to project

<!-- https://jarcasting.com/artifacts/com.ikelin/incremental-builds/ -->
<dependency>
    <groupId>com.ikelin</groupId>
    <artifactId>incremental-builds</artifactId>
    <version>0.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.ikelin/incremental-builds/
implementation 'com.ikelin:incremental-builds:0.0.2'
// https://jarcasting.com/artifacts/com.ikelin/incremental-builds/
implementation ("com.ikelin:incremental-builds:0.0.2")
'com.ikelin:incremental-builds:jar:0.0.2'
<dependency org="com.ikelin" name="incremental-builds" rev="0.0.2">
  <artifact name="incremental-builds" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.ikelin', module='incremental-builds', version='0.0.2')
)
libraryDependencies += "com.ikelin" % "incremental-builds" % "0.0.2"
[com.ikelin/incremental-builds "0.0.2"]

Dependencies

compile (1)

Group / Artifact Type Version
org.eclipse.jgit : org.eclipse.jgit jar 5.2.1.201812262042-r

provided (1)

Group / Artifact Type Version
org.apache.maven : maven-core jar 3.6.0

test (4)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-api jar 5.3.2
org.junit.jupiter : junit-jupiter-engine jar 5.3.2
org.mockito : mockito-core jar 2.24.0
org.mockito : mockito-junit-jupiter jar 2.24.0

Project Modules

There are no modules declared in this project.

Incremental Builds Extension for GIT

In a Maven multi-module project using GIT, this extension only builds modules that changed or impacted by the changes.

Maven Central Build Status Coverage Status Codacy Badge

Usage

Maven pom.xml:

<build>
  <extensions>
    <extension>
      <groupId>com.ikelin</groupId>
      <artifactId>incremental-builds</artifactId>
      <version>{VERSION}</version>
    </extension>
  </extensions>
</build>

Maven command:

mvn package -Dincremental.enable=true

This enables the extension and builds modules that changed between the current branch, including uncommitted files and untraced files, and the master branch.

To compare current branch against another commit, branch, or tag:

mvn package -Dincremental.enable=true -Dincremental.commit=5a6e149
mvn package -Dincremental.enable=true -Dincremental.branch=staging
mvn package -Dincremental.enable=true -Dincremental.tag=1.0.2

Note that Maven options -pl or --projects will override this extension's changed modules list.

Versions

Version
0.0.2
0.0.1