Skip to content

Commit

Permalink
Create runtime bom apache#12
Browse files Browse the repository at this point in the history
  • Loading branch information
lburgazzoli committed Feb 24, 2019
1 parent a9f6a69 commit 41052b8
Show file tree
Hide file tree
Showing 3 changed files with 201 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

import com.vdurmont.semver4j.Semver;

import org.apache.camel.Ordered;
import org.apache.camel.catalog.CamelCatalog;
import org.apache.camel.k.tooling.maven.model.CamelArtifact;
import org.apache.camel.k.tooling.maven.model.CatalogProcessor;
Expand Down Expand Up @@ -93,7 +92,6 @@ public void process(MavenProject project, CamelCatalog catalog, Map<String, Came
CamelArtifact artifact = new CamelArtifact();
artifact.setGroupId("org.apache.camel.k");
artifact.setArtifactId("camel-k-runtime-jvm");
artifact.setVersion(project.getVersion());
artifact.addDependency("org.apache.camel", "camel-core");

artifacts.put(artifact.getArtifactId(), artifact);
Expand All @@ -109,7 +107,6 @@ public void process(MavenProject project, CamelCatalog catalog, Map<String, Came
CamelArtifact artifact = new CamelArtifact();
artifact.setGroupId("org.apache.camel.k");
artifact.setArtifactId("camel-k-runtime-groovy");
artifact.setVersion(project.getVersion());
artifact.addDependency("org.apache.camel", "camel-groovy");

artifacts.put(artifact.getArtifactId(), artifact);
Expand All @@ -125,7 +122,20 @@ public void process(MavenProject project, CamelCatalog catalog, Map<String, Came
CamelArtifact artifact = new CamelArtifact();
artifact.setGroupId("org.apache.camel.k");
artifact.setArtifactId("camel-k-runtime-kotlin");
artifact.setVersion(project.getVersion());

artifacts.put(artifact.getArtifactId(), artifact);
}

// ************************
//
// camel-k-runtime-yaml
//
// ************************

{
CamelArtifact artifact = new CamelArtifact();
artifact.setGroupId("org.apache.camel.k");
artifact.setArtifactId("camel-k-runtime-yaml");

artifacts.put(artifact.getArtifactId(), artifact);
}
Expand All @@ -140,7 +150,6 @@ public void process(MavenProject project, CamelCatalog catalog, Map<String, Came
CamelArtifact artifact = new CamelArtifact();
artifact.setGroupId("org.apache.camel.k");
artifact.setArtifactId("camel-knative");
artifact.setVersion(project.getVersion());
artifact.createScheme("knative").setHttp(true);
artifact.addDependency("org.apache.camel", "camel-netty4-http");

Expand Down
182 changes: 182 additions & 0 deletions camel-k-runtime-bom/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2016 Red Hat, Inc.
Licensed 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.
-->
<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-bom</artifactId>
<version>0.3.0-SNAPSHOT</version>
<packaging>pom</packaging>

<developers>
<developer>
<name>The Apache Camel Team</name>
<email>dev@camel.apache.org</email>
<url>http://camel.apache.org</url>
<organization>Apache Software Foundation</organization>
<organizationUrl>http://apache.org/</organizationUrl>
<properties>
<picUrl>http://camel.apache.org/banner.data/apache-camel-7.png</picUrl>
</properties>
</developer>
</developers>

<issueManagement>
<system>github</system>
<url>https://github.com/apache/camel-k-runtime/issues</url>
</issueManagement>

<scm>
<connection>scm:git:http://gitbox.apache.org/repos/asf/camel-k-runtime.git</connection>
<developerConnection>scm:git:https://gitbox.apache.org/repos/asf/camel-k-runtime.git</developerConnection>
<url>https://gitbox.apache.org/repos/asf?p=camel-k-runtime.git;a=summary</url>
<tag>HEAD</tag>
</scm>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.camel.k</groupId>
<artifactId>camel-k-maven-plugin</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel.k</groupId>
<artifactId>camel-k-runtime-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel.k</groupId>
<artifactId>camel-k-runtime-jvm</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel.k</groupId>
<artifactId>camel-k-runtime-groovy</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel.k</groupId>
<artifactId>camel-k-runtime-kotlin</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel.k</groupId>
<artifactId>camel-k-runtime-yaml</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel.k</groupId>
<artifactId>camel-k-runtime-spring-boot</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel.k</groupId>
<artifactId>camel-k-runtime-spring-boot-layout</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel.k</groupId>
<artifactId>camel-knative</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.camel.k</groupId>
<artifactId>camel-knative-http</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

<profiles>
<profile>
<id>release</id>
<activation>
<property>
<name>release</name>
</property>
</activation>
<build>
<plugins>
<!-- We want to deploy the artifact to a staging location for perusal -->
<plugin>
<inherited>true</inherited>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<updateReleaseInfo>true</updateReleaseInfo>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<additionalOptions>${javadoc.opts}</additionalOptions>
</configuration>
</plugin>
<!-- We want to sign the artifact, the POM, and all attached artifacts -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<configuration>
<passphrase>${gpg.passphrase}</passphrase>
<useAgent>${gpg.useagent}</useAgent>
</configuration>
<executions>
<execution>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>doclint-java8-disable</id>
<activation>
<jdk>[1.8,)</jdk>
</activation>
<properties>
<javadoc.opts>-Xdoclint:none</javadoc.opts>
</properties>
</profile>
</profiles>
</project>
9 changes: 5 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@

<issueManagement>
<system>github</system>
<url>https://github.com/apache/camel-k/issues</url>
<url>https://github.com/apache/camel-k-runtime/issues</url>
</issueManagement>

<scm>
<connection>scm:git:http://gitbox.apache.org/repos/asf/camel-k.git</connection>
<developerConnection>scm:git:https://gitbox.apache.org/repos/asf/camel-k.git</developerConnection>
<url>https://gitbox.apache.org/repos/asf?p=camel-k.git;a=summary</url>
<connection>scm:git:http://gitbox.apache.org/repos/asf/camel-k-runtime.git</connection>
<developerConnection>scm:git:https://gitbox.apache.org/repos/asf/camel-k-runtime.git</developerConnection>
<url>https://gitbox.apache.org/repos/asf?p=camel-k-runtime.git;a=summary</url>
<tag>HEAD</tag>
</scm>

Expand Down Expand Up @@ -142,6 +142,7 @@
<module>camel-k-runtime-spring-boot</module>
<module>camel-knative-http</module>
<module>camel-knative</module>
<module>camel-k-runtime-bom</module>
</modules>

<repositories>
Expand Down

0 comments on commit 41052b8

Please sign in to comment.