Skip to content

Commit 563a7a9

Browse files
andralungucristianconstantin
authored andcommitted
Versioning based on the Maven Assembly plugin. (#18)
1 parent b45a2c1 commit 563a7a9

File tree

4 files changed

+138
-0
lines changed

4 files changed

+138
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
.idea/
12
target/**
23
dump.rdb
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
###############################################################################
2+
# Copyright 2016 Adobe Systems Incorporated. All rights reserved.
3+
#
4+
# This file is licensed to you under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software distributed
11+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR RESPRESENTATIONS
12+
# OF ANY KIND, either express or implied. See the License for the
13+
# specific language governing permissions and limitations under the License.
14+
###############################################################################
15+
16+
location = /api-gateway-request-validation-version {
17+
return 200 '${project.version}#${buildNumber}';
18+
}

dist/maven/distribution.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!--
2+
~ Copyright 2016 Adobe Systems Incorporated. All rights reserved.
3+
~
4+
~ This file is licensed to you under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software distributed
11+
~ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR RESPRESENTATIONS
12+
~ OF ANY KIND, either express or implied. See the License for the
13+
~ specific language governing permissions and limitations under the License.
14+
-->
15+
16+
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
17+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
19+
<id>distribution</id>
20+
<formats>
21+
<format>tar.gz</format>
22+
</formats>
23+
<includeBaseDirectory>false</includeBaseDirectory>
24+
<files>
25+
<file>
26+
<source>api-gateway-request-validation-version.conf</source>
27+
<outputDirectory>meta</outputDirectory>
28+
<filtered>true</filtered>
29+
</file>
30+
</files>
31+
<fileSets>
32+
<fileSet>
33+
<directory>../../src/lua</directory>
34+
<outputDirectory>lualib</outputDirectory>
35+
<includes>
36+
<include>**/*.lua</include>
37+
</includes>
38+
</fileSet>
39+
</fileSets>
40+
</assembly>

dist/maven/pom.xml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<!--
2+
~ Copyright 2016 Adobe Systems Incorporated. All rights reserved.
3+
~
4+
~ This file is licensed to you under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License. You may obtain a copy of the License at
6+
~
7+
~ http://www.apache.org/licenses/LICENSE-2.0
8+
~
9+
~ Unless required by applicable law or agreed to in writing, software distributed under the License
10+
~ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND,
11+
~ either express or implied. See the License for the specific language governing permissions and
12+
~ limitations under the License.
13+
-->
14+
15+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
16+
<modelVersion>4.0.0</modelVersion>
17+
18+
<groupId>com.adobe.api.gateway</groupId>
19+
<artifactId>api-gateway-request-validation</artifactId>
20+
<version>1.2.3-SNAPSHOT</version>
21+
22+
<packaging>pom</packaging>
23+
24+
<name>API Gateway Request Validation</name>
25+
26+
<properties>
27+
<git.repo>[email protected]:adobe-apiplatform/api-gateway-request-validation.git</git.repo>
28+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
29+
</properties>
30+
31+
<scm>
32+
<connection>scm:git:${git.repo}</connection>
33+
<developerConnection>scm:git:${git.repo}</developerConnection>
34+
<tag>HEAD</tag>
35+
</scm>
36+
37+
<build>
38+
<plugins>
39+
<plugin>
40+
<artifactId>maven-assembly-plugin</artifactId>
41+
<version>2.6</version>
42+
<configuration>
43+
<descriptors>
44+
<descriptor>distribution.xml</descriptor>
45+
</descriptors>
46+
<appendAssemblyId>false</appendAssemblyId>
47+
</configuration>
48+
<executions>
49+
<execution>
50+
<id>dist-assembly</id>
51+
<phase>package</phase>
52+
<goals>
53+
<goal>single</goal>
54+
</goals>
55+
</execution>
56+
</executions>
57+
</plugin>
58+
<plugin>
59+
<groupId>org.codehaus.mojo</groupId>
60+
<artifactId>buildnumber-maven-plugin</artifactId>
61+
<version>1.4</version>
62+
<executions>
63+
<execution>
64+
<phase>validate</phase>
65+
<goals>
66+
<goal>create</goal>
67+
</goals>
68+
</execution>
69+
</executions>
70+
<configuration>
71+
<shortRevisionLength>7</shortRevisionLength>
72+
<doCheck>false</doCheck>
73+
<doUpdate>true</doUpdate>
74+
</configuration>
75+
</plugin>
76+
</plugins>
77+
</build>
78+
</project>
79+

0 commit comments

Comments
 (0)