Skip to content

Commit

Permalink
Prepare new release
Browse files Browse the repository at this point in the history
  • Loading branch information
JayDi85 committed Nov 10, 2020
1 parent 19887b1 commit ea46afb
Show file tree
Hide file tree
Showing 41 changed files with 47 additions and 47 deletions.
2 changes: 1 addition & 1 deletion Mage.Client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-common</artifactId>
Expand Down
6 changes: 3 additions & 3 deletions Mage.Common/src/main/java/mage/utils/MageVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ public class MageVersion implements Serializable, Comparable<MageVersion> {

public static final int MAGE_VERSION_MAJOR = 1;
public static final int MAGE_VERSION_MINOR = 4;
public static final int MAGE_VERSION_PATCH = 45;
public static final int MAGE_VERSION_PATCH = 46;
public static final String MAGE_EDITION_INFO = ""; // set "-beta2" for 1.4.32V1-beta2
public static final String MAGE_VERSION_MINOR_PATCH = "V1"; // default
public static final String MAGE_VERSION_MINOR_PATCH = "V0"; // default
// strict mode
private static final boolean MAGE_VERSION_MINOR_PATCH_MUST_BE_SAME = true; // set true on uncompatible github changes, set false after new major release (after MAGE_VERSION_PATCH changes)

Expand All @@ -23,7 +23,7 @@ public class MageVersion implements Serializable, Comparable<MageVersion> {
private final int patch;
private final String minorPatch; // doesn't matter for compatibility
private final String buildTime;
private String editionInfo;
private final String editionInfo;

public MageVersion(Class sourceClass) {
this(MAGE_VERSION_MAJOR, MAGE_VERSION_MINOR, MAGE_VERSION_PATCH, MAGE_VERSION_MINOR_PATCH, MAGE_EDITION_INFO, sourceClass);
Expand Down
2 changes: 1 addition & 1 deletion Mage.Plugins/Mage.Counter.Plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-counter-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Plugins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-plugins</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server.Console/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage.server.console</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server.Plugins/Mage.Deck.Constructed/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-deck-constructed</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server.Plugins/Mage.Deck.Limited/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-deck-limited</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server.Plugins/Mage.Game.BrawlDuel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-game-brawlduel</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server.Plugins/Mage.Game.BrawlFreeForAll/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-game-brawlfreeforall</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-game-canadianhighlanderduel</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server.Plugins/Mage.Game.CommanderDuel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-game-commanderduel</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server.Plugins/Mage.Game.CommanderFreeForAll/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-game-commanderfreeforall</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server.Plugins/Mage.Game.FreeForAll/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-game-freeforall</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-game-freeformcommanderduel</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-game-freeformcommanderfreeforall</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-game-freeformunlimitedcommander</artifactId>
Expand All @@ -23,7 +23,7 @@
<dependency>
<groupId>org.mage</groupId>
<artifactId>mage-game-freeformcommanderfreeforall</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server.Plugins/Mage.Game.MomirDuel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-game-momirduel</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server.Plugins/Mage.Game.MomirGame/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-game-momirfreeforall</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions Mage.Server.Plugins/Mage.Game.OathbreakerDuel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-game-oathbreakerduel</artifactId>
Expand All @@ -22,7 +22,7 @@
<dependency>
<groupId>org.mage</groupId>
<artifactId>mage-game-oathbreakerfreeforall</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-game-oathbreakerfreeforall</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-game-pennydreadfulcommanderfreeforall</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server.Plugins/Mage.Game.TinyLeadersDuel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-game-tinyleadersduel</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server.Plugins/Mage.Game.TwoPlayerDuel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-game-twoplayerduel</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server.Plugins/Mage.Player.AI.DraftBot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-player-ai-draftbot</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server.Plugins/Mage.Player.AI.MA/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-player-ai-ma</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server.Plugins/Mage.Player.AI/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-player-ai</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server.Plugins/Mage.Player.AIMCTS/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-player-ai-mcts</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server.Plugins/Mage.Player.AIMinimax/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-player-aiminimax</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server.Plugins/Mage.Player.Human/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-player-human</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server.Plugins/Mage.Tournament.BoosterDraft/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-tournament-boosterdraft</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server.Plugins/Mage.Tournament.Constructed/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-tournament-constructed</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server.Plugins/Mage.Tournament.Sealed/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-server-plugins</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-tournament-sealed</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server.Plugins/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-server-plugins</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-server</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Sets/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-sets</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion Mage.Tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-tests</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions Mage.Verify/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage-verify</artifactId>
Expand Down Expand Up @@ -49,7 +49,7 @@
<dependency>
<groupId>org.mage</groupId>
<artifactId>mage-client</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</dependency>

</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion Mage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.mage</groupId>
<artifactId>mage-root</artifactId>
<version>1.4.45</version>
<version>1.4.46</version>
</parent>

<artifactId>mage</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public enum CardRepository {
// raise this if db structure was changed
private static final long CARD_DB_VERSION = 53;

This comment has been minimized.

Copy link
@allentiak

allentiak Nov 12, 2020

Contributor

@JayDi85 Shouldn't this have been increased after merging #7127?

This comment has been minimized.

Copy link
@JayDi85

JayDi85 Nov 12, 2020

Author Member

@allentiak

Yes and no.

It's outdated code from old days. Years ago cards database syncing itself by individual cards on every connect. So it can't add new card to old structure and db must be deleted. Possible benefit: old clients was able to play on new servers (but it was very buggy and games freezes due java objects serialization problem).

Today updates are more strictly and cards db deleted on every new version. So no needs in db version number at all.

This comment has been minimized.

Copy link
@allentiak

allentiak Nov 12, 2020

Contributor

Thanks for the reply, @JayDi85.

Then... Should all that CARD_CONTENT and CARD_DB_VERSION information be removed?

This comment has been minimized.

Copy link
@JayDi85

JayDi85 Nov 13, 2020

Author Member

CARD_DB_VERSION can be removed potentially (but I don't recomment to do that -- see comments below). But other things with CARD_CONTENT_VERSION, EXPANSION_CONTENT_VERSION or even DB_VERSION for other tables -- all must be kept.

Example:

  • db version still uses for other tables like game statistics or users;
  • content version still uses for third party servers (if you want connect to another server with custom/special cards -- so client add that cards and you can play games with it).

Conclusion: no need in deleting, it must be kept.

This comment has been minimized.

Copy link
@allentiak

allentiak Nov 14, 2020

Contributor

Thanks for the detailed explanation, @JayDi85 !

// raise this if new cards were added to the server
private static final long CARD_CONTENT_VERSION = 233;
private static final long CARD_CONTENT_VERSION = 234;
private Dao<CardInfo, Object> cardDao;
private Set<String> classNames;
private final RepositoryEventSource eventSource = new RepositoryEventSource();
Expand Down
Loading

0 comments on commit ea46afb

Please sign in to comment.