Git Product home page Git Product logo

manifesto's Introduction

Manifesto plugin

Release Build Status Dependency Status SonarQube Coverage Status

A plugin for the Gradle build system that sets manifest data for JAr and WAr artifacts inferred from a project's Git status.

Usage

Applying the plugin

Include either of the following in your build script:

Gradle 2.1+

plugins {
    id 'com.github.dispader.manifesto' version '1.0.12'
}

Gradle 1.x/2.0

buildscript {
    repositories.jcenter()
    dependencies {
        classpath 'com.github.dispader:manifesto:1.0.12'
    }
}
apply plugin: 'com.github.dispader.manifesto'

Prerequisites

The plugin only affects configurations for the groovy, java, and war plugins; and only produces meaningful results for Git projects.

Configuration

default configuration

If the conventional project.group is defined (for the top-level project), this value will be used to set the Implementation-Vendor-Id.

extension configuration

Some elements of manifests which cannot be determined from the Git project status or the default project configuration can be set via the plugin's configuration object.

  • vendor sets Specification-Vendor and Implementation-Vendor
  • vendor_id sets Implementation-Vendor-Id (and overrides project.group default)
  • url sets Implementation-URL
manifesto {
    vendor = 'Jake Gage'
    vendor_id = 'com.github.dispader'
    url = 'https://github.com/Dispader/manifesto'
}

Behavior

  • Manifest-Version is set to 1.0
  • Specification-Title and Implementation-Title are set to the Gradle rootProject.name
  • Specification-Version and Implementation-Version are set based on Git commit status (see git describe)
    • IFF no version can be determined via a git describe, and a Gradle rootProject.version can be, this value will be used instead
  • Implementation-Timestamp is set to the build time

Thanks!

Thanks, everybody!

semver

manifesto's People

Contributors

cdinger avatar dispader avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.