separate into different modules
This commit is contained in:
parent
ca8d059292
commit
792caa39a4
|
@ -0,0 +1,19 @@
|
|||
<?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">
|
||||
<parent>
|
||||
<artifactId>mars-rover</artifactId>
|
||||
<groupId>cat.hack3.codingtests</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>mars-station</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
</project>
|
8
pom.xml
8
pom.xml
|
@ -5,9 +5,15 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>cat.hack3.codingtests</groupId>
|
||||
<artifactId>wallapop-backend-test</artifactId>
|
||||
<artifactId>mars-rover</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
|
||||
<modules>
|
||||
<module>mars-station</module>
|
||||
<module>user-interface-console</module>
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
|
|
|
@ -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">
|
||||
<parent>
|
||||
<artifactId>mars-rover</artifactId>
|
||||
<groupId>cat.hack3.codingtests</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>user-interface-console</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>cat.hack3.codingtests</groupId>
|
||||
<artifactId>mars-station</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
|
@ -1,10 +1,10 @@
|
|||
package cat.hack3.codingtests.marsrover.ui;
|
||||
package cat.hack3.codingtests.marsrover.ui.console;
|
||||
|
||||
import cat.hack3.codingtests.marsrover.MarsRover;
|
||||
|
||||
import java.util.Scanner;
|
||||
|
||||
import static cat.hack3.codingtests.marsrover.ui.UICommons.output;
|
||||
import static cat.hack3.codingtests.marsrover.ui.console.UICommons.output;
|
||||
|
||||
public class ClientCommandInterface {
|
||||
|
|
@ -1,10 +1,11 @@
|
|||
package cat.hack3.codingtests.marsrover.ui;
|
||||
package cat.hack3.codingtests.marsrover.ui.console;
|
||||
|
||||
|
||||
import cat.hack3.codingtests.marsrover.Direction;
|
||||
|
||||
import java.util.Scanner;
|
||||
|
||||
import static cat.hack3.codingtests.marsrover.ui.UICommons.*;
|
||||
import static cat.hack3.codingtests.marsrover.ui.console.UICommons.*;
|
||||
|
||||
public class DirectionRetriever {
|
||||
private final Scanner reader;
|
|
@ -1,4 +1,4 @@
|
|||
package cat.hack3.codingtests.marsrover.ui;
|
||||
package cat.hack3.codingtests.marsrover.ui.console;
|
||||
|
||||
public interface PresentationMessage {
|
||||
String INTRO = """
|
|
@ -1,11 +1,11 @@
|
|||
package cat.hack3.codingtests.marsrover.ui;
|
||||
package cat.hack3.codingtests.marsrover.ui.console;
|
||||
|
||||
import cat.hack3.codingtests.marsrover.MarsRover;
|
||||
|
||||
import java.util.Scanner;
|
||||
|
||||
import static cat.hack3.codingtests.marsrover.ui.UICommons.isNotExitSignal;
|
||||
import static cat.hack3.codingtests.marsrover.ui.UICommons.output;
|
||||
import static cat.hack3.codingtests.marsrover.ui.console.UICommons.isNotExitSignal;
|
||||
import static cat.hack3.codingtests.marsrover.ui.console.UICommons.output;
|
||||
|
||||
public class RoverCommandsPerformer {
|
||||
private final Scanner reader;
|
|
@ -1,4 +1,4 @@
|
|||
package cat.hack3.codingtests.marsrover.ui;
|
||||
package cat.hack3.codingtests.marsrover.ui.console;
|
||||
|
||||
import cat.hack3.codingtests.marsrover.Coordinates;
|
||||
import cat.hack3.codingtests.marsrover.Direction;
|
||||
|
@ -9,7 +9,7 @@ import java.util.InputMismatchException;
|
|||
import java.util.List;
|
||||
import java.util.Scanner;
|
||||
|
||||
import static cat.hack3.codingtests.marsrover.ui.UICommons.output;
|
||||
import static cat.hack3.codingtests.marsrover.ui.console.UICommons.output;
|
||||
|
||||
public class RoverInitializer {
|
||||
private final Scanner reader;
|
|
@ -1,4 +1,4 @@
|
|||
package cat.hack3.codingtests.marsrover.ui;
|
||||
package cat.hack3.codingtests.marsrover.ui.console;
|
||||
|
||||
public class UICommons {
|
||||
|
Loading…
Reference in New Issue