diff options
author | gjoranv <gv@verizonmedia.com> | 2019-10-22 16:46:47 +0200 |
---|---|---|
committer | gjoranv <gv@verizonmedia.com> | 2019-10-22 17:31:53 +0200 |
commit | b1d747423f4faf357d0e63982652078da4ddfc2c (patch) | |
tree | c48d9ecd56445ae2382d20e7c35ce6fc9ef8dd67 /bundle-plugin-test/test-bundles | |
parent | 7fb6576a7284be594386ac438caad8d34569ad53 (diff) |
Use project.version also for the dependency test bundle.
- The automated build process updates the project version for all
modules.
- Unfortunately, this reduces the value of one of the test cases,
because the versions of the dependent and dependency bundles are
now the same.
Diffstat (limited to 'bundle-plugin-test/test-bundles')
-rw-r--r-- | bundle-plugin-test/test-bundles/artifact-version-for-exports-dep/pom.xml | 16 | ||||
-rw-r--r-- | bundle-plugin-test/test-bundles/artifact-version-for-exports/pom.xml | 2 |
2 files changed, 8 insertions, 10 deletions
diff --git a/bundle-plugin-test/test-bundles/artifact-version-for-exports-dep/pom.xml b/bundle-plugin-test/test-bundles/artifact-version-for-exports-dep/pom.xml index e958618472b..34b250ae927 100644 --- a/bundle-plugin-test/test-bundles/artifact-version-for-exports-dep/pom.xml +++ b/bundle-plugin-test/test-bundles/artifact-version-for-exports-dep/pom.xml @@ -12,26 +12,24 @@ <relativePath>../pom.xml</relativePath> </parent> <artifactId>artifact-version-for-exports-dep</artifactId> - <version>3.2.1</version> + <!-- TODO: Should use a fixed version different than the dependent bundle. + But version is set to the release version by build scripts before building. + Then, the dependent bundle will not find the artifact. Skipping this step for a sub-module seems + impossible with the maven-versions-plugin, and cumbersome with factorylib. --> + <version>7-SNAPSHOT</version> <packaging>container-plugin</packaging> <dependencies> - <dependency> - <groupId>com.yahoo.vespa</groupId> - <artifactId>container-dev</artifactId> - <version>${project.parent.version}</version> - <scope>provided</scope> - </dependency> </dependencies> <build> <plugins> <plugin> <groupId>com.yahoo.vespa</groupId> <artifactId>bundle-plugin</artifactId> - <version>${project.parent.version}</version> + <version>${project.version}</version> <extensions>true</extensions> <configuration> <useArtifactVersionForExportPackages>true</useArtifactVersionForExportPackages> - <configGenVersion>${project.parent.version}</configGenVersion> + <configGenVersion>${project.version}</configGenVersion> </configuration> </plugin> </plugins> diff --git a/bundle-plugin-test/test-bundles/artifact-version-for-exports/pom.xml b/bundle-plugin-test/test-bundles/artifact-version-for-exports/pom.xml index ac7263c8846..619189cd874 100644 --- a/bundle-plugin-test/test-bundles/artifact-version-for-exports/pom.xml +++ b/bundle-plugin-test/test-bundles/artifact-version-for-exports/pom.xml @@ -18,7 +18,7 @@ <dependency> <groupId>com.yahoo.vespa.bundle-plugin</groupId> <artifactId>artifact-version-for-exports-dep</artifactId> - <version>3.2.1</version> + <version>${project.version}</version> </dependency> </dependencies> <build> |