Skip to content

Commit

Permalink
Move examples to subdir
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Jan 31, 2021
1 parent 4eb778b commit 1ff1599
Show file tree
Hide file tree
Showing 63 changed files with 82 additions and 79 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<parent>
<groupId>org.moditect.layrry</groupId>
<groupId>org.moditect.layrry.example.greeter</groupId>
<artifactId>layrry-plugin-example</artifactId>
<version>1.0.0.Alpha1</version>
</parent>

<modelVersion>4.0.0</modelVersion>

<groupId>org.moditect.layrry.example.greeter</groupId>
<artifactId>greeter-core</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<parent>
<groupId>org.moditect.layrry</groupId>
<groupId>org.moditect.layrry.example.greeter</groupId>
<artifactId>layrry-plugin-example</artifactId>
<version>1.0.0.Alpha1</version>
</parent>

<modelVersion>4.0.0</modelVersion>

<groupId>org.moditect.layrry.example.greeter</groupId>
<artifactId>greeter-date-util</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<parent>
<groupId>org.moditect.layrry</groupId>
<groupId>org.moditect.layrry.example.greeter</groupId>
<artifactId>layrry-plugin-example</artifactId>
<version>1.0.0.Alpha1</version>
</parent>

<modelVersion>4.0.0</modelVersion>

<groupId>org.moditect.layrry.example.greeter</groupId>
<artifactId>greeter-date-util</artifactId>
<version>2.0.0</version>
<packaging>jar</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<parent>
<groupId>org.moditect.layrry</groupId>
<groupId>org.moditect.layrry.example.greeter</groupId>
<artifactId>layrry-plugin-example</artifactId>
<version>1.0.0.Alpha1</version>
</parent>

<modelVersion>4.0.0</modelVersion>

<groupId>org.moditect.layrry.example.greeter</groupId>
<artifactId>greeter-de</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<parent>
<groupId>org.moditect.layrry</groupId>
<groupId>org.moditect.layrry.example.greeter</groupId>
<artifactId>layrry-plugin-example</artifactId>
<version>1.0.0.Alpha1</version>
</parent>

<modelVersion>4.0.0</modelVersion>

<groupId>org.moditect.layrry.example.greeter</groupId>
<artifactId>greeter-en</artifactId>
<version>1.0.0</version>
<name>Greeter EN</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<parent>
<groupId>org.moditect.layrry</groupId>
<groupId>org.moditect.layrry.example.greeter</groupId>
<artifactId>layrry-plugin-example</artifactId>
<version>1.0.0.Alpha1</version>
</parent>

<modelVersion>4.0.0</modelVersion>

<groupId>org.moditect.layrry.example.greeter</groupId>
<artifactId>greeter-fr</artifactId>
<version>1.0.0</version>
<name>Greeter FR</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<parent>
<groupId>org.moditect.layrry</groupId>
<groupId>org.moditect.layrry.example.greeter</groupId>
<artifactId>layrry-plugin-example</artifactId>
<version>1.0.0.Alpha1</version>
</parent>
Expand Down
57 changes: 57 additions & 0 deletions examples/plugin-example/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<!--
Copyright 2020 The ModiTect authors
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>
<groupId>org.moditect.layrry.example</groupId>
<artifactId>layrry-examples-aggregator</artifactId>
<version>1.0.0.Alpha1</version>
</parent>

<groupId>org.moditect.layrry.example.greeter</groupId>
<artifactId>layrry-plugin-example</artifactId>
<packaging>pom</packaging>
<name>Layrry Plug-in Example</name>

<properties>
<target.assembly.directory>${project.build.directory}/layers</target.assembly.directory>
</properties>

<modules>
<module>greeter-core</module>
<module>greeter-date-util-1.0.0</module>
<module>greeter-date-util-2.0.0</module>
<module>greeter-en</module>
<module>greeter-de</module>
<module>greeter-fr</module>
<module>greeter-runner</module>
</modules>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>greeter-core</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
</dependencyManagement>

</project>
File renamed without changes.
27 changes: 7 additions & 20 deletions plugin-example/pom.xml → examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,34 +25,21 @@
<version>1.0.0.Alpha1</version>
</parent>

<artifactId>layrry-plugin-example</artifactId>
<groupId>org.moditect.layrry.example</groupId>
<artifactId>layrry-examples-aggregator</artifactId>
<packaging>pom</packaging>
<name>Layrry Plug-in Example</name>
<name>Layrry Example Aggregator</name>

<properties>
<maven.javadoc.skip>true</maven.javadoc.skip>
<maven.source.skip>true</maven.source.skip>
<target.assembly.directory>UNDEFINED</target.assembly.directory>
</properties>

<modules>
<module>greeter-core</module>
<module>greeter-date-util-1.0.0</module>
<module>greeter-date-util-2.0.0</module>
<module>greeter-en</module>
<module>greeter-de</module>
<module>greeter-fr</module>
<module>greeter-runner</module>
<module>plugin-example</module>
<module>vertx-example</module>
</modules>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>greeter-core</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
</dependencyManagement>

<build>
<pluginManagement>
Expand All @@ -63,7 +50,7 @@
<version>${version.assembly.plugin}</version>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<outputDirectory>${project.build.directory}/layers</outputDirectory>
<outputDirectory>${target.assembly.directory}</outputDirectory>
<attach>true</attach>
<descriptors>
<descriptor>src/main/assembly/assembly.xml</descriptor>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.moditect.layrry</groupId>
<groupId>org.moditect.layrry.example.links</groupId>
<artifactId>layrry-links-example</artifactId>
<version>1.0.0.Alpha1</version>
</parent>

<groupId>org.moditect.layrry.example.links</groupId>
<artifactId>layrry-links-core</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.moditect.layrry</groupId>
<groupId>org.moditect.layrry.example.links</groupId>
<artifactId>layrry-links-example</artifactId>
<version>1.0.0.Alpha1</version>
</parent>

<groupId>org.moditect.layrry.example.links</groupId>
<artifactId>layrry-links-greenkeeping</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.moditect.layrry</groupId>
<groupId>org.moditect.layrry.example.links</groupId>
<artifactId>layrry-links-example</artifactId>
<version>1.0.0.Alpha1</version>
</parent>

<groupId>org.moditect.layrry.example.links</groupId>
<artifactId>layrry-links-logconfig</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.moditect.layrry</groupId>
<groupId>org.moditect.layrry.example.links</groupId>
<artifactId>layrry-links-example</artifactId>
<version>1.0.0.Alpha1</version>
</parent>

<groupId>org.moditect.layrry.example.links</groupId>
<artifactId>layrry-links-membership</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<parent>
<groupId>org.moditect.layrry</groupId>
<groupId>org.moditect.layrry.example.links</groupId>
<artifactId>layrry-links-example</artifactId>
<version>1.0.0.Alpha1</version>
</parent>

<modelVersion>4.0.0</modelVersion>

<groupId>org.moditect.layrry.example.links</groupId>
<artifactId>layrry-links-runner</artifactId>
<packaging>jar</packaging>
<name>Layrry Links Runner</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.moditect.layrry</groupId>
<groupId>org.moditect.layrry.example.links</groupId>
<artifactId>layrry-links-example</artifactId>
<version>1.0.0.Alpha1</version>
</parent>

<groupId>org.moditect.layrry.example.links</groupId>
<artifactId>layrry-links-tournament</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
Expand Down
35 changes: 4 additions & 31 deletions vertx-example/pom.xml → examples/vertx-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.moditect.layrry</groupId>
<artifactId>layrry-aggregator</artifactId>
<groupId>org.moditect.layrry.example</groupId>
<artifactId>layrry-examples-aggregator</artifactId>
<version>1.0.0.Alpha1</version>
</parent>

<groupId>org.moditect.layrry.example.links</groupId>
<artifactId>layrry-links-example</artifactId>
<packaging>pom</packaging>
<name>Layrry Links Example</name>
Expand All @@ -33,8 +34,7 @@

<properties>
<vertx.version>4.0.0</vertx.version>
<maven.javadoc.skip>true</maven.javadoc.skip>
<maven.source.skip>true</maven.source.skip>
<target.assembly.directory>${project.build.directory}/plugins</target.assembly.directory>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -71,31 +71,4 @@
<module>layrry-links-runner</module>
</modules>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>${version.assembly.plugin}</version>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<outputDirectory>${project.build.directory}/plugins</outputDirectory>
<attach>true</attach>
<descriptors>
<descriptor>src/main/assembly/assembly.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
1 change: 0 additions & 1 deletion plugin-example/greeter-runner/.gitignore

This file was deleted.

3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@
<module>layrry-core</module>
<module>layrry-launcher</module>
<module>integration-test</module>
<module>plugin-example</module>
<module>vertx-example</module>
<module>examples</module>
</modules>

<dependencyManagement>
Expand Down

0 comments on commit 1ff1599

Please sign in to comment.