Skip to content

Commit

Permalink
Fix CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
peterarsentev committed Mar 27, 2024
1 parent 78a8098 commit 6bfab24
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
1 change: 1 addition & 0 deletions packman/src/main/java/ru/job4j/packman/PackMan.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ private void move() {
case LEFT -> el.setX(el.getX() - 40);
case UP -> el.setY(el.getY() - 40);
case DOWN -> el.setY(el.getY() + 40);
default -> throw new RuntimeException("Not found direction!");
}
}
}
Expand Down
23 changes: 17 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<version>3.13.0</version>
</plugin>
</plugins>
</pluginManagement>
Expand All @@ -104,21 +104,27 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>14</source>
<target>14</target>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.1.1</version>
<version>3.2.0</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>10.3.3</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>validate</id>
<phase>validate</phase>
<configuration>
<configLocation>checkstyle.xml</configLocation>
<encoding>UTF-8</encoding>
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
Expand All @@ -132,7 +138,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M7</version>
<version>3.2.5</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version>
</plugin>
</plugins>
</build>
Expand Down
2 changes: 1 addition & 1 deletion snake/src/main/java/ru/job4j/snake/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void start(Stage stage) {
case "Right" : snake.directionTo(Direction.RIGHT); break;
case "Up" : snake.directionTo(Direction.UP); break;
case "Left" : snake.directionTo(Direction.LEFT); break;
case "Down" : snake.directionTo(Direction.DOWN); break;
default: snake.directionTo(Direction.DOWN); break;
}
});
var grid = buildGrid();
Expand Down

0 comments on commit 6bfab24

Please sign in to comment.