From bccd54b330dfac0d0637fd1c33aecd5b7e89d94d Mon Sep 17 00:00:00 2001 From: jberclaz Date: Fri, 19 Jul 2024 08:25:40 -0700 Subject: [PATCH] include dependencies in jar --- README.md | 19 +++++++++---------- pom.xml | 44 +++++++++++++++++++++++++++++++++++++++----- 2 files changed, 48 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index e7b161c..e63597d 100644 --- a/README.md +++ b/README.md @@ -18,21 +18,20 @@ Make sure `JAVA_HOME` is defined. Then: If you make the jar file executable, you can double-click on the file to launch the client. -## Computer player -The latest version has now a computer player, which can help if you cannot find four participants. The strategy is clearly not state-of-the-art, but it is loosely based on Monte-Carlo sampling and does not play too badly. - -You can connect a computer player with -```bash -java -cp target/jass-2.1.3.jar com.leflat.jass.client.ArtificialClient [] -``` -Note that the computer player name is optional. - ## How to run on Windows The game uses Java 11. Unfortunately, Oracle abandoned the JRE starting from version 11. You will need to install the [full JDK](https://www.oracle.com/java/technologies/javase-jdk14-downloads.html#license-lightbox). +### Classic UI ![Jass client screenshot](doc/screenjass.jpg) ### Modern UI -![Modern UI screenshot](doc/modern_ui.png) \ No newline at end of file +![Modern UI screenshot](doc/modern_ui.png) + +## Development + +- Compile and test: `mvn package` +- Compile without tests: `mvn -Dmaven.test.skip=true package` +- Update dependencies: `mvn versions:use-latest-releases` +- Create new release: `mvn release:prepare` and `mvn release:perform` diff --git a/pom.xml b/pom.xml index e991e22..31bff05 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,6 @@ - + 4.0.0 com.leflat @@ -12,8 +13,8 @@ scm:git:git@github.com:jberclaz/jass.git - jass-2.2.1 - + jass-2.2.1 + @@ -68,7 +69,7 @@ maven-compiler-plugin 3.13.0 - 11 + 17 @@ -76,6 +77,9 @@ org.apache.maven.plugins maven-surefire-plugin 3.3.0 + + -XX:+EnableDynamicAgentLoading + @@ -125,7 +129,37 @@ org.apache.maven.plugins maven-release-plugin - 3.1.0 + 3.1.1 + + + + org.apache.maven.plugins + maven-shade-plugin + 3.6.0 + + + package + + shade + + + + + com.intellij:forms_rt + + + + + + + + + org.codehaus.mojo + versions-maven-plugin + 2.17.1 + + false +