Skip to content

Commit

Permalink
All examples are based on maven
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikebbers committed Feb 22, 2018
1 parent a301c47 commit 831abd5
Show file tree
Hide file tree
Showing 94 changed files with 1,185 additions and 704 deletions.
25 changes: 0 additions & 25 deletions distribution/client-javafx/distribution-client.gradle

This file was deleted.

33 changes: 33 additions & 0 deletions distribution/client-javafx/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>com.canoo.dolphin-platform.examples</groupId>
<artifactId>distribution</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>

<artifactId>distribution-client-javafx</artifactId>

<dependencies>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>distribution-common</artifactId>
<version>${version}</version>
</dependency>
<dependency>
<groupId>com.canoo.dolphin-platform</groupId>
<artifactId>dolphin-platform-remoting-client-javafx</artifactId>
<version>${dolphin-platform.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.25</version>
</dependency>
</dependencies>
</project>
20 changes: 0 additions & 20 deletions distribution/common/distribution-common.gradle

This file was deleted.

23 changes: 23 additions & 0 deletions distribution/common/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>com.canoo.dolphin-platform.examples</groupId>
<artifactId>distribution</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>

<artifactId>distribution-common</artifactId>

<dependencies>
<dependency>
<groupId>com.canoo.dolphin-platform</groupId>
<artifactId>dolphin-platform-remoting-common</artifactId>
<version>${dolphin-platform.version}</version>
</dependency>
</dependencies>
</project>
27 changes: 27 additions & 0 deletions distribution/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>com.canoo.dolphin-platform.examples</groupId>
<artifactId>dolphin-platform-examples</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>

<artifactId>distribution</artifactId>
<packaging>pom</packaging>

<modules>
<module>common</module>
<module>client-javafx</module>
<module>server-hazelcast</module>
<module>server-external</module>
<module>server-spring-base</module>
<module>server-spring-i1</module>
<module>server-spring-i2</module>
</modules>

</project>
25 changes: 0 additions & 25 deletions distribution/server-external/distribution-server-external.gradle

This file was deleted.

33 changes: 33 additions & 0 deletions distribution/server-external/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>com.canoo.dolphin-platform.examples</groupId>
<artifactId>distribution</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>

<artifactId>distribution-server-external</artifactId>

<dependencies>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.2</version>
</dependency>
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast-client</artifactId>
<version>3.9.1</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>1.5.9.RELEASE</version>
</dependency>
</dependencies>
</project>
24 changes: 0 additions & 24 deletions distribution/server-hazelcast/distribution-server-hazelcast.gradle

This file was deleted.

28 changes: 28 additions & 0 deletions distribution/server-hazelcast/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>com.canoo.dolphin-platform.examples</groupId>
<artifactId>distribution</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>

<artifactId>distribution-server-hazelcast</artifactId>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>1.5.9.RELEASE</version>
</dependency>
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast</artifactId>
<version>3.9.1</version>
</dependency>
</dependencies>
</project>

This file was deleted.

28 changes: 28 additions & 0 deletions distribution/server-spring-base/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>com.canoo.dolphin-platform.examples</groupId>
<artifactId>distribution</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>

<artifactId>distribution-server-spring-base</artifactId>

<dependencies>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>distribution-common</artifactId>
<version>${version}</version>
</dependency>
<dependency>
<groupId>com.canoo.dolphin-platform</groupId>
<artifactId>dolphin-platform-remoting-server-spring</artifactId>
<version>${dolphin-platform.version}</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
import com.canoo.platform.remoting.server.event.RemotingEventBus;
import com.canoo.platform.samples.distribution.common.model.ToDoList;
import com.canoo.platform.server.client.ClientSession;
import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.PostConstruct;
import javax.inject.Inject;
import java.util.function.Predicate;

import static com.canoo.platform.samples.distribution.common.DistributionAppConstants.ADD_ACTION;
Expand All @@ -46,7 +46,7 @@ public class DistributionController {
@RemotingModel
private ToDoList toDoList;

@Inject
@Autowired
public DistributionController(final RemotingEventBus eventBus, final ClientSession session) {
this.eventBus = eventBus;
this.session = session;
Expand Down

This file was deleted.

28 changes: 28 additions & 0 deletions distribution/server-spring-i1/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>com.canoo.dolphin-platform.examples</groupId>
<artifactId>distribution</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>

<artifactId>distribution-server-spring-i1</artifactId>

<dependencies>
<dependency>
<groupId>${groupId}</groupId>
<artifactId>distribution-server-spring-base</artifactId>
<version>${version}</version>
</dependency>
<dependency>
<groupId>com.canoo.dolphin-platform</groupId>
<artifactId>dolphin-platform-distributed-eventbus</artifactId>
<version>${dolphin-platform.version}</version>
</dependency>
</dependencies>
</project>
Loading

0 comments on commit 831abd5

Please sign in to comment.