Commit 974d4677 authored by Brian Long's avatar Brian Long
Browse files

fix module.version

parent f19e1ce7
Loading
Loading
Loading
Loading
+20 −3
Original line number Diff line number Diff line
@@ -30,6 +30,23 @@
			</resource>
		</resources>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
				<version>3.2.0</version>
				<executions>
					<execution>
						<id>module-snapshot-timestamp</id>
						<phase>initialize</phase>
						<goals><goal>timestamp-property</goal></goals>
						<configuration>
							<name>module.timestamp</name>
							<timeSource>build</timeSource>
							<pattern>yyyyMMddHHmmss</pattern>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>com.inteligr8</groupId>
				<artifactId>regex-maven-plugin</artifactId>
@@ -41,12 +58,12 @@
						<goals><goal>replace-text</goal></goals>
						<configuration>
							<text>${project.version}</text>
							<newProperty>project.moduleVersion</newProperty>
							<newProperty>module.version</newProperty>
							<regexes>
								<!-- turn -SNAPSHOT into A0 -->
								<!-- turn -SNAPSHOT into ATIMESTAMP -->
								<regex>
									<pattern>^(.*)-SNAPSHOT$</pattern>
									<replacement>$1-A0</replacement>
									<replacement>$1-A${module.timestamp}</replacement>
								</regex>
								<!-- all others are just a copy -->
								<regex>