Skip to content

Commit

Permalink
Update to GameBox v3.0.0-beta.2
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasEi committed Apr 2, 2020
1 parent acd2b4f commit aa78f74
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 9 deletions.
36 changes: 28 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
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>

<groupId>me.nikl</groupId>
<groupId>me.nikl.gamebox.games</groupId>
<artifactId>connectfour</artifactId>
<name>ConnectFour</name>
<packaging>jar</packaging>
<version>3.0.0-alpha</version>
<description>Connect four chips before your opponent does</description>
<version>3.0.0-beta</version>
<description>Line up four chips before your opponent does</description>

<distributionManagement>
<repository>
<id>nikl-repo</id>
<url>https://repo.nikl.me/artifactory/public</url>
<url>http://repo.nikl.me/artifactory/public</url>
</repository>
</distributionManagement>

Expand Down Expand Up @@ -47,6 +47,19 @@
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create-timestamp</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand All @@ -57,7 +70,7 @@
</repository>
<repository>
<id>nikl-repo</id>
<url>https://repo.nikl.me/artifactory/public</url>
<url>http://repo.nikl.me/artifactory/public</url>
</repository>
</repositories>

Expand All @@ -70,8 +83,14 @@
</dependency>
<dependency>
<groupId>me.nikl</groupId>
<artifactId>gamebox-core</artifactId>
<version>3.0.0-alpha</version>
<artifactId>gamebox</artifactId>
<version>${gamebox.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>me.nikl</groupId>
<artifactId>calendarevents</artifactId>
<version>1.4.2</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand All @@ -81,5 +100,6 @@
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<gamebox.version>3.0.0-beta.2</gamebox.version>
</properties>
</project>
</project>
2 changes: 1 addition & 1 deletion src/main/java/me/nikl/connectfour/ConnectFour.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
public class ConnectFour extends Game {

public ConnectFour(GameBox gameBox) {
super(gameBox, GameBox.MODULE_CONNECTFOUR);
super(gameBox, ConnectFourModule.CONNECT_FOUR);
}

@Override
Expand Down
16 changes: 16 additions & 0 deletions src/main/java/me/nikl/connectfour/ConnectFourModule.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package me.nikl.connectfour;

import me.nikl.gamebox.module.GameBoxModule;

public class ConnectFourModule extends GameBoxModule {
public static final String CONNECT_FOUR = "connectfour";
@Override
public void onEnable() {
registerGame(CONNECT_FOUR, ConnectFour.class, "cf");
}

@Override
public void onDisable() {

}
}
10 changes: 10 additions & 0 deletions src/main/resources/module.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
id: ${project.artifactId}
version: ${project.version}
authors: ["Niklas Eicker"]
name: ${project.name}
description: ${project.description}
sourceUrl: ${project.scm.url}
updatedAt: !!java.lang.Long ${timestamp}
dependencies:
- id: gamebox
versionConstrain: ">= ${gamebox.version}"

0 comments on commit aa78f74

Please sign in to comment.