WIFI-2026 Updating submodules for 1.1.0-SNAPSHOT

This commit is contained in:
Akshay Jagadish
2021-04-17 14:00:27 -04:00
parent 21d8ad82a6
commit ccd99b96e0
3 changed files with 67 additions and 3 deletions

View File

@@ -1,10 +1,9 @@
<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">
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.telecominfraproject.wlan</groupId>
<artifactId>tip-wlan-cloud-root-pom</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>1.1.0-SNAPSHOT</version>
<relativePath>../wlan-cloud-root</relativePath>
</parent>

View File

@@ -0,0 +1,25 @@
#!/bin/bash
if [ "x$1" == "x" ]
then
echo Usage: make_release.sh new_version
exit 1
fi
new_version=$1
PREVIOUS_VERSION=$(grep "<version>" ../wlan-cloud-root/pom.xml |head -2|tail -1|cut -d '>' -f2|cut -d '<' -f 1)
echo "Updating TIP pom.xml files from $PREVIOUS_VERSION to version $new_version "
# update versions on TIP modules using special all-modules-release
mvn --batch-mode release:update-versions -DdevelopmentVersion="$new_version" -DautoVersionSubmodules=true
# update version that are not automatically updated
sed -i '' "s/<tip-wlan-cloud.release.version>$PREVIOUS_VERSION<\/tip-wlan-cloud.release.version>/<tip-wlan-cloud.release.version>$new_version<\/tip-wlan-cloud.release.version>/g" ../wlan-cloud-root/pom.xml
#update protobuff dependency under opensync-ext-interface
sed -i '' "s/<version>$PREVIOUS_VERSION<\/version>/<version>$new_version<\/version>/g" ../wlan-cloud-opensync-controller/opensync-ext-interface/pom.xml
echo "Updated TIP pom.xml files to version $new_version"

View File

@@ -0,0 +1,40 @@
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.telecominfraproject.wlan</groupId>
<artifactId>tip-wlan-cloud-root-pom</artifactId>
<version>1.1.0-SNAPSHOT</version>
<relativePath>../wlan-cloud-root</relativePath>
</parent>
<artifactId>tip-wlan-workspace-all-modules-release</artifactId>
<packaging>pom</packaging>
<description>Aggregation of all TIP modules - to release them in one shot.</description>
<profiles>
<profile>
<id>full-build</id>
<activation>
<property>
<name>full-build</name>
</property>
<activeByDefault>true</activeByDefault>
</activation>
<modules>
<module>../all-modules-build</module>
<module>../wlan-cloud-services/all-cloud-and-opensync-gw-in-one-docker</module>
<module>../wlan-cloud-services/all-cloud-in-one-docker</module>
<module>../wlan-cloud-services/all-cloud-in-one-docker-with-persistence</module>
<module>../wlan-cloud-services/port-forwarding-gateway-docker</module>
<module>../wlan-cloud-services/portal-docker</module>
<module>../wlan-cloud-services/prov-docker</module>
<module>../wlan-cloud-services/spc-docker</module>
<module>../wlan-cloud-services/ssc-docker</module>
<module>../wlan-cloud-opensync-controller/opensync-gateway-cloud-docker</module>
<module>../wlan-cloud-opensync-controller/opensync-gateway-static-docker</module>
</modules>
</profile>
</profiles>
</project>