Skip to content

Commit

Permalink
Rename example packages
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Jan 31, 2021
1 parent 4cce3bd commit 4eb778b
Show file tree
Hide file tree
Showing 49 changed files with 116 additions and 116 deletions.
2 changes: 1 addition & 1 deletion plugin-example/greeter-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<modelVersion>4.0.0</modelVersion>

<groupId>com.example.greeter</groupId>
<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 @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.greeter.api;
package org.moditect.layrry.example.greeter.api;

public interface Greeter {
String greet(String name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.greeter.api;
package org.moditect.layrry.example.greeter.api;

public interface GreeterFactory {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.greeter.app;
package org.moditect.layrry.example.greeter.app;

import java.io.BufferedReader;
import java.io.IOException;
Expand All @@ -24,8 +24,8 @@
import java.util.Map.Entry;
import java.util.ServiceLoader;

import com.example.greeter.api.GreeterFactory;
import com.example.greeter.app.internal.GreeterPluginLifecycleListener;
import org.moditect.layrry.example.greeter.api.GreeterFactory;
import org.moditect.layrry.example.greeter.app.internal.GreeterPluginLifecycleListener;

/**
* Hello world!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.greeter.app.internal;
package org.moditect.layrry.example.greeter.app.internal;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
Expand Down
10 changes: 5 additions & 5 deletions plugin-example/greeter-core/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

import org.moditect.layrry.platform.PluginLifecycleListener;

import com.example.greeter.api.GreeterFactory;
import com.example.greeter.app.internal.GreeterPluginLifecycleListener;
import org.moditect.layrry.example.greeter.api.GreeterFactory;
import org.moditect.layrry.example.greeter.app.internal.GreeterPluginLifecycleListener;

module com.example.greeter.core {
module org.moditect.layrry.example.greeter.core {
requires org.moditect.layrry.platform;
exports com.example.greeter.api;
exports com.example.greeter.app;
exports org.moditect.layrry.example.greeter.api;
exports org.moditect.layrry.example.greeter.app;
provides PluginLifecycleListener with GreeterPluginLifecycleListener;
uses GreeterFactory;
}
2 changes: 1 addition & 1 deletion plugin-example/greeter-date-util-1.0.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<modelVersion>4.0.0</modelVersion>

<groupId>com.example.greeter</groupId>
<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 @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.greeter.dateutil;
package org.moditect.layrry.example.greeter.dateutil;

import java.util.Date;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module com.example.greeter.dateutil {
exports com.example.greeter.dateutil;
module org.moditect.layrry.example.greeter.dateutil {
exports org.moditect.layrry.example.greeter.dateutil;
}
2 changes: 1 addition & 1 deletion plugin-example/greeter-date-util-2.0.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<modelVersion>4.0.0</modelVersion>

<groupId>com.example.greeter</groupId>
<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 @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.greeter.dateutil;
package org.moditect.layrry.example.greeter.dateutil;

import java.time.Instant;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module com.example.greeter.dateutil {
exports com.example.greeter.dateutil;
module org.moditect.layrry.example.greeter.dateutil {
exports org.moditect.layrry.example.greeter.dateutil;
}
2 changes: 1 addition & 1 deletion plugin-example/greeter-de/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<modelVersion>4.0.0</modelVersion>

<groupId>com.example.greeter</groupId>
<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 @@ -13,13 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.greeter.de;
package org.moditect.layrry.example.greeter.de;

import java.util.Date;

import com.example.greeter.api.Greeter;
import com.example.greeter.api.GreeterFactory;
import com.example.greeter.dateutil.DateUtil;
import org.moditect.layrry.example.greeter.api.Greeter;
import org.moditect.layrry.example.greeter.api.GreeterFactory;
import org.moditect.layrry.example.greeter.dateutil.DateUtil;

public class GermanGreeterFactory implements GreeterFactory {

Expand Down
10 changes: 5 additions & 5 deletions plugin-example/greeter-de/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import com.example.greeter.api.GreeterFactory;
import com.example.greeter.de.GermanGreeterFactory;
import org.moditect.layrry.example.greeter.api.GreeterFactory;
import org.moditect.layrry.example.greeter.de.GermanGreeterFactory;

module com.example.greeter.de {
requires com.example.greeter.core;
requires com.example.greeter.dateutil;
module org.moditect.layrry.example.greeter.de {
requires org.moditect.layrry.example.greeter.core;
requires org.moditect.layrry.example.greeter.dateutil;
provides GreeterFactory with GermanGreeterFactory;
}
2 changes: 1 addition & 1 deletion plugin-example/greeter-en/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<modelVersion>4.0.0</modelVersion>

<groupId>com.example.greeter</groupId>
<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 @@ -13,13 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.greeter.en;
package org.moditect.layrry.example.greeter.en;

import java.time.Instant;

import com.example.greeter.api.Greeter;
import com.example.greeter.api.GreeterFactory;
import com.example.greeter.dateutil.DateUtil;
import org.moditect.layrry.example.greeter.api.Greeter;
import org.moditect.layrry.example.greeter.api.GreeterFactory;
import org.moditect.layrry.example.greeter.dateutil.DateUtil;

public class EnglishGreeterFactory implements GreeterFactory {

Expand Down
10 changes: 5 additions & 5 deletions plugin-example/greeter-en/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import com.example.greeter.api.GreeterFactory;
import com.example.greeter.en.EnglishGreeterFactory;
import org.moditect.layrry.example.greeter.api.GreeterFactory;
import org.moditect.layrry.example.greeter.en.EnglishGreeterFactory;

module com.example.greeter.en {
requires com.example.greeter.core;
requires com.example.greeter.dateutil;
module org.moditect.layrry.example.greeter.en {
requires org.moditect.layrry.example.greeter.core;
requires org.moditect.layrry.example.greeter.dateutil;
provides GreeterFactory with EnglishGreeterFactory;
}
2 changes: 1 addition & 1 deletion plugin-example/greeter-fr/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<modelVersion>4.0.0</modelVersion>

<groupId>com.example.greeter</groupId>
<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 @@ -13,13 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.greeter.fr;
package org.moditect.layrry.example.greeter.fr;

import java.time.Instant;

import com.example.greeter.api.Greeter;
import com.example.greeter.api.GreeterFactory;
import com.example.greeter.dateutil.DateUtil;
import org.moditect.layrry.example.greeter.api.Greeter;
import org.moditect.layrry.example.greeter.api.GreeterFactory;
import org.moditect.layrry.example.greeter.dateutil.DateUtil;

public class FrenchGreeterFactory implements GreeterFactory {

Expand Down
10 changes: 5 additions & 5 deletions plugin-example/greeter-fr/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import com.example.greeter.api.GreeterFactory;
import com.example.greeter.fr.FrenchGreeterFactory;
import org.moditect.layrry.example.greeter.api.GreeterFactory;
import org.moditect.layrry.example.greeter.fr.FrenchGreeterFactory;

module com.example.greeter.fr {
requires com.example.greeter.core;
requires com.example.greeter.dateutil;
module org.moditect.layrry.example.greeter.fr {
requires org.moditect.layrry.example.greeter.core;
requires org.moditect.layrry.example.greeter.dateutil;
provides GreeterFactory with FrenchGreeterFactory;
}
6 changes: 3 additions & 3 deletions plugin-example/greeter-runner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.example.greeter</groupId>
<groupId>org.moditect.layrry.example.greeter</groupId>
<artifactId>greeter-en</artifactId>
<version>1.0.0</version>
<type>zip</type>
Expand All @@ -105,7 +105,7 @@
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.example.greeter</groupId>
<groupId>org.moditect.layrry.example.greeter</groupId>
<artifactId>greeter-de</artifactId>
<version>1.0.0</version>
<type>zip</type>
Expand All @@ -124,7 +124,7 @@
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.example.greeter</groupId>
<groupId>org.moditect.layrry.example.greeter</groupId>
<artifactId>greeter-fr</artifactId>
<version>1.0.0</version>
<type>zip</type>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
[layers.layrry-platform]
modules = ["org.moditect.layrry:layrry-platform:1.0.0.Alpha1"]
[layers.api]
modules = ["com.example.greeter:greeter-core:1.0.0"]
modules = ["org.moditect.layrry.example.greeter:greeter-core:1.0.0"]
parents = ["layrry-platform"]
[layers.plugins]
parents = ["api"]
directory = "target/layers"
[main]
module = "com.example.greeter.core"
class = "com.example.greeter.app.App"
module = "org.moditect.layrry.example.greeter.core"
class = "org.moditect.layrry.example.greeter.app.App"
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ layers:
- "org.moditect.layrry:layrry-platform:1.0.0.Alpha1"
api:
modules:
- "com.example.greeter:greeter-core:1.0.0"
- "org.moditect.layrry.example.greeter:greeter-core:1.0.0"
parents:
- "layrry-platform"
plugins:
parents:
- "api"
directory: target/layers
main:
module: com.example.greeter.core
class: com.example.greeter.app.App
module: org.moditect.layrry.example.greeter.core
class: org.moditect.layrry.example.greeter.app.App
6 changes: 3 additions & 3 deletions plugin-example/greeter-runner/src/test/resources/layers.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
[layers.layrry-platform]
modules = ["org.moditect.layrry:layrry-platform:1.0.0.Alpha1"]
[layers.api]
modules = ["com.example.greeter:greeter-core:1.0.0"]
modules = ["org.moditect.layrry.example.greeter:greeter-core:1.0.0"]
parents = ["layrry-platform"]
[layers.plugins]
parents = ["api"]
directory = "../../../target/layers"
[main]
module = "com.example.greeter.core"
class = "com.example.greeter.app.App"
module = "org.moditect.layrry.example.greeter.core"
class = "org.moditect.layrry.example.greeter.app.App"
6 changes: 3 additions & 3 deletions plugin-example/greeter-runner/src/test/resources/layers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ layers:
- "org.moditect.layrry:layrry-platform:1.0.0.Alpha1"
api:
modules:
- "com.example.greeter:greeter-core:1.0.0"
- "org.moditect.layrry.example.greeter:greeter-core:1.0.0"
parents:
- "layrry-platform"
plugins:
parents:
- "api"
directory: ../../../target/layers
main:
module: com.example.greeter.core
class: com.example.greeter.app.App
module: org.moditect.layrry.example.greeter.core
class: org.moditect.layrry.example.greeter.app.App
2 changes: 1 addition & 1 deletion vertx-example/layrry-links-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<version>1.0.0.Alpha1</version>
</parent>

<groupId>com.example.layrry.links</groupId>
<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 @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.layrry.links.core;
package org.moditect.layrry.example.links.core;

import com.example.layrry.links.core.internal.LayrryLinksVerticle;
import org.moditect.layrry.example.links.core.internal.LayrryLinksVerticle;

import io.vertx.core.Vertx;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.layrry.links.core.internal;
package org.moditect.layrry.example.links.core.internal;

import java.util.HashSet;
import java.util.Map;
Expand All @@ -29,7 +29,7 @@
import org.moditect.layrry.platform.PluginDescriptor;
import org.moditect.layrry.platform.PluginLifecycleListener;

import com.example.layrry.links.core.spi.RouterContributor;
import org.moditect.layrry.example.links.core.spi.RouterContributor;

import io.vertx.core.AbstractVerticle;
import io.vertx.core.Vertx;
Expand Down
Loading

0 comments on commit 4eb778b

Please sign in to comment.