version-plugin

Version Plugin for Spring Boot

License

License

GroupId

GroupId

com.blibli.oss
ArtifactId

ArtifactId

version-plugin
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

version-plugin
Version Plugin for Spring Boot
Project Organization

Project Organization

Pivotal Software, Inc.
Source Code Management

Source Code Management

https://github.com/bliblidotcom/version-plugin

Download version-plugin

How to add to project

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

Dependencies

provided (2)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-web jar 1.5.9.RELEASE
org.springframework.boot : spring-boot-configuration-processor Optional jar 1.5.9.RELEASE

test (1)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-test jar 1.5.9.RELEASE

Project Modules

There are no modules declared in this project.

Build Status

Spring Boot Version Plugin

Add this dependency in your pom.xml

<repositories>
    ...
    <repository>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <id>bintray-bliblidotcom-maven</id>
      <name>bintray</name>
      <url>https://dl.bintray.com/bliblidotcom/maven</url>
    </repository>
    ...
</repositories>
<dependencies>
  ...
  <dependency>
   <groupId>com.blibli.oss</groupId>
   <artifactId>version-plugin</artifactId>
   <version>...</version>
 </dependency>
 ...
</dependencies>

Add in your pom.xml properties tag

<properties>
    ...
    <timestamp>${maven.build.timestamp}</timestamp>
    <maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format>
    ...
</properties>

Add in your pom.xml build tag

<build>
    ...
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
      </resource>
    </resources>
    ...
</build>

Create version.properties file in src/main/resources

application.group-id[email protected]@
application.artifact-id[email protected]@
application.version[email protected]@
application.build-time=@timestamp@

Run your spring boot app, and see :

http://localhost:8080/version
maven.groupId=com.example
maven.artifactId=demo
maven.pom.version=0.0.1-SNAPSHOT
maven.build.time=2017-02-03 03:30:30
com.blibli.oss

Blibli.com

Big Choices Big Deals

Versions

Version
0.0.1