Skip to content

Commit

Permalink
added branch and hash to META-INF/MANIFEST.MF and X-Application-Id he…
Browse files Browse the repository at this point in the history
…ader as well as "version" field for /api/v1/ping
  • Loading branch information
shoeffner committed Sep 23, 2016
1 parent bf74eb3 commit f789af8
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*~
target
*.log
*.log.zip
*.idea
*.iml
*.ipr
Expand Down
4 changes: 2 additions & 2 deletions modules/api/src/main/resources/api.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
###############################################################################
application.id:${application.name}-${timestamp}
application.id:${application.name}-${scmBranch}-${buildNumber}-${timestamp}
default.time.zone:${default.time.zone}
default.time.format:${default.time.format}
default.time.format:${default.time.format}
37 changes: 30 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!--
Copyright 2016 Intuit
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down Expand Up @@ -84,11 +84,13 @@ http://www.w3.org/2001/XMLSchema-instance">
<assign.user.to.export>true</assign.user.to.export>
<assign.bucket.count>true</assign.bucket.count>
<assignment.decorator.enabled>false</assignment.decorator.enabled>

<!-- mutagen -->
<cassandra.mutagen.root.resource.path>com/intuit/wasabi/repository/impl/cassandra/experiments/mutation</cassandra.mutagen.root.resource.path>
<mysql.mutagen.root.resource.path>com/intuit/wasabi/repository/impl/mysql/migration</mysql.mutagen.root.resource.path>

<cassandra.mutagen.root.resource.path>com/intuit/wasabi/repository/impl/cassandra/experiments/mutation
</cassandra.mutagen.root.resource.path>
<mysql.mutagen.root.resource.path>com/intuit/wasabi/repository/impl/mysql/migration
</mysql.mutagen.root.resource.path>

<!-- FIXME: remove -->
<assignment.decorator.service>http://decorator.example.com</assignment.decorator.service>
<assignment.decorator.class.name>com.intuit.wasabi.assignment.impl.DefaultAssignmentDecorator
Expand Down Expand Up @@ -363,6 +365,9 @@ http://www.w3.org/2001/XMLSchema-instance">
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
<manifestEntries>
<Implementation-Build>${scmBranch}-${buildNumber}</Implementation-Build>
</manifestEntries>
</archive>
</configuration>
</plugin>
Expand Down Expand Up @@ -475,6 +480,24 @@ http://www.w3.org/2001/XMLSchema-instance">
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
<configuration>
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
<shortRevisionLength>8</shortRevisionLength>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changelog-plugin</artifactId>
Expand Down

0 comments on commit f789af8

Please sign in to comment.