Skip to content

Commit

Permalink
Merge pull request #30 from mrglavas/tck-skeleton-and-maven-publish
Browse files Browse the repository at this point in the history
Adding a TCK POM and updating publishing info for sonatype.
  • Loading branch information
arthurdm committed Nov 14, 2017
2 parents 767d865 + 832b789 commit 4c3e80b
Show file tree
Hide file tree
Showing 3 changed files with 135 additions and 12 deletions.
2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<artifactId>microprofile-openapi-api</artifactId>
<name>MicroProfile OpenAPI API</name>

<description>MicroProfile OpenAPI API :: API</description>

<dependencies>
<dependency>
Expand Down
21 changes: 10 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>MicroProfile OpenAPI</name>
<description>Eclipse MicroProfile OpenAPI Feature - Parent POM</description>
<description>Eclipse MicroProfile OpenAPI Feature :: Parent POM</description>

<url>http://microprofile.io</url>

Expand Down Expand Up @@ -57,7 +57,7 @@
<scm>
<url>https://github.com/eclipse/microprofile-openapi</url>
<connection>scm:git:https://github.com/eclipse/microprofile-openapi.git</connection>
<developerConnection>scm:git:https://github.com/eclipse/microprofile-openapi.git</developerConnection>
<developerConnection>scm:git:git@github.com:eclipse/microprofile-openapi.git</developerConnection>
<tag>HEAD</tag>
</scm>

Expand All @@ -68,24 +68,23 @@

<distributionManagement>
<repository>
<id>repo.eclipse.org</id>
<name>Eclipse MicroProfile Repository - Releases</name>
<url>https://repo.eclipse.org/content/repositories/microprofile-releases/</url>
<id>ossrh</id>
<name>Sonatype OSSRH - Release Staging Area</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<snapshotRepository>
<id>repo.eclipse.org</id>
<name>Eclipse MicroProfile Repository - Snapshots</name>
<url>https://repo.eclipse.org/content/repositories/microprofile-snapshots/</url>
<id>ossrh</id>
<name>Sonatype OSSRH Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<uniqueVersion>true</uniqueVersion> <!-- for keeping multipe snapshot versions - maybe for staging a final version besides nightly versions -->
</snapshotRepository>
</distributionManagement>

<modules>
<module>api</module>
<module>tck</module>
<!--
<module>spec</module>
<module>tck/rest</module>
<module>tck/api</module>
-->
</modules>

Expand Down Expand Up @@ -115,7 +114,7 @@
<version>2.5.3</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<pushChanges>false</pushChanges>
<useReleaseProfile>false</useReleaseProfile>
<localCheckout>true</localCheckout>
</configuration>
</plugin>
Expand Down
124 changes: 124 additions & 0 deletions tck/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
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>

<parent>
<!-- This is just for now and will not work if the API has a separate release cycle than the rest. -->
<groupId>org.eclipse.microprofile.openapi</groupId>
<artifactId>microprofile-openapi-parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>microprofile-openapi-api-tck</artifactId>
<name>MicroProfile OpenAPI API-TCK</name>
<description>MicroProfile OpenAPI API :: TCK</description>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</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>
</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>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
</plugin>
</plugins>
</build>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-bom</artifactId>
<version>1.1.8.Final</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<!-- mp-openapi dependencies: -->
<dependency>
<groupId>org.eclipse.microprofile.openapi</groupId>
<artifactId>microprofile-openapi-api</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<version>1.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-integration</artifactId>
<version>1.2.1</version>
</dependency>

<!-- Arquillian dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-container</artifactId>
<scope>compile</scope>
</dependency>

<!-- Container adapters: -->
<dependency>
<groupId>org.jboss.arquillian.container</groupId>
<artifactId>arquillian-wlp-managed-8.5</artifactId>
<version>1.0.0.Beta2</version>
</dependency>

</dependencies>
</project>

0 comments on commit 4c3e80b

Please sign in to comment.