This is an automated email from the ASF dual-hosted git repository. nferraro pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit fae70b1a132058635da85f4c715ef4ad0eab8040 Author: lburgazzoli <lburgazz...@gmail.com> AuthorDate: Thu Dec 13 00:26:33 2018 +0100 chore(build): add a simple profile to check for dependencies updates --- runtime/.maven-versions-rules.xml | 39 +++++++++++++++++++++++++++ runtime/pom.xml | 56 +++++++++++++++++++++++++++++++-------- 2 files changed, 84 insertions(+), 11 deletions(-) diff --git a/runtime/.maven-versions-rules.xml b/runtime/.maven-versions-rules.xml new file mode 100644 index 0000000..44e512b --- /dev/null +++ b/runtime/.maven-versions-rules.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You 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. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<ruleset xmlns="http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + comparisonMethod="maven" + xsi:schemaLocation="http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0 http://mojo.codehaus.org/versions-maven-plugin/xsd/rule-2.0.0.xsd"> + + <ignoreVersions> + <!-- Ignore Alpha's, Beta's, release candidates and milestones --> + <ignoreVersion type="regex">(?i).*Alpha(?:-?\d+)?</ignoreVersion> + <ignoreVersion type="regex">(?i).*a(?:-?\d+)?</ignoreVersion> + <ignoreVersion type="regex">(?i).*Beta(?:-?\d+)?</ignoreVersion> + <ignoreVersion type="regex">(?i).*-B(?:-?\d+)?</ignoreVersion> + <ignoreVersion type="regex">(?i).*RC(?:-?\d+)?</ignoreVersion> + <ignoreVersion type="regex">(?i).*CR(?:-?\d+)?</ignoreVersion> + <ignoreVersion type="regex">(?i).*M(?:-?\d+)?</ignoreVersion> + </ignoreVersions> + + <rules> + </rules> + +</ruleset> \ No newline at end of file diff --git a/runtime/pom.xml b/runtime/pom.xml index e7f2c3a..7e421b9 100644 --- a/runtime/pom.xml +++ b/runtime/pom.xml @@ -17,22 +17,17 @@ limitations under the License. --> -<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> - <groupId>org.apache.camel.k</groupId> <artifactId>camel-k-runtime-parent</artifactId> <version>0.1.1-SNAPSHOT</version> <packaging>pom</packaging> - + <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> - <camel.version>2.23.0</camel.version> <junit.version>4.12</junit.version> <junit-jupiter.version>5.3.2</junit-jupiter.version> @@ -49,11 +44,12 @@ <spock.version>1.2-groovy-2.5</spock.version> <jackson.version>2.9.7</jackson.version> <spring-boot.version>2.1.0.RELEASE</spring-boot.version> - <gmavenplus-plugin.version>1.6.1</gmavenplus-plugin.version> <fabric8-maven-plugin.version>3.5.40</fabric8-maven-plugin.version> <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version> <maven-surefire-plugin.version>2.22.1</maven-surefire-plugin.version> + <versions-maven-plugin.version>2.7</versions-maven-plugin.version> + <directory-maven-plugin.version>0.3.1</directory-maven-plugin.version> </properties> <dependencyManagement> @@ -79,7 +75,7 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> - <version>3.8.0</version> + <version>${maven-compiler-plugin.version}</version> <configuration> <source>1.8</source> <target>1.8</target> @@ -96,7 +92,7 @@ </plugins> </pluginManagement> </build> - + <modules> <module>jvm</module> <module>groovy</module> @@ -108,4 +104,42 @@ <module>camel-knative</module> </modules> -</project> + <profiles> + <profile> + <id>deps</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <build> + <defaultGoal>initialize versions:display-dependency-updates</defaultGoal> + <plugins> + <plugin> + <groupId>org.commonjava.maven.plugins</groupId> + <artifactId>directory-maven-plugin</artifactId> + <version>${directory-maven-plugin.version}</version> + <executions> + <execution> + <id>directories</id> + <goals> + <goal>highest-basedir</goal> + </goals> + <phase>initialize</phase> + <configuration> + <property>camel-k.project.root</property> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>versions-maven-plugin</artifactId> + <version>${versions-maven-plugin.version}</version> + <configuration> + <rulesUri>file:///${camel-k.project.root}/.maven-versions-rules.xml</rulesUri> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> +</project> \ No newline at end of file