Skip to content

Commit 88541f8

Browse files
Merge remote-tracking branch 'origin/rogue_backend' into develop
# Conflicts: # .yarn/install-state.gz # spellsource-game/src/main/java/net/demilich/metastone/game/cards/Attribute.java # spellsource-game/src/main/java/net/demilich/metastone/game/cards/desc/CardDescArg.java # spellsource-game/src/main/java/net/demilich/metastone/game/entities/heroes/HeroClass.java # spellsource-game/src/main/java/net/demilich/metastone/game/logic/GameLogic.java # spellsource-protos/src/main/csharp/HiddenSwitch/Framework/Sources/Spellsource.cs # spellsource-protos/src/main/proto/spellsource.proto
2 parents ca55e01 + aba741d commit 88541f8

749 files changed

Lines changed: 16612 additions & 58422 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.yarn/install-state.gz

-59.6 KB
Binary file not shown.

README.md

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Hit `Win + X` and click Windows PowerShell (Admin). Then run the following:
5353
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
5454
# install dependencies
5555
wsl --install
56-
choco install -y gsudo git.portable 7zip openjdk vcredist140 docker-desktop dotnet-sdk nvm python gradle
56+
choco install -y gsudo git.portable 7zip openjdk vcredist140 docker-desktop dotnet-sdk nvm python
5757
# separately add vs2022 compilation tools with clang
5858
# must be run separately
5959
choco install -y visualstudio2022buildtools
@@ -89,18 +89,18 @@ git submodule update --init --recursive
8989
You should now be able to run the tests.
9090

9191
```shell
92-
gradle test
92+
./gradlew.bat test
9393
```
9494

9595
Start a local server and website using:
9696

9797
```shell
98-
gradle runServer
98+
./gradlew.bat runServer
9999
```
100100

101101
### Unity Requirements
102102

103-
Install Unity 6 with the iOS, macOS, Windows, and Android modules for your platform. You should not install Visual Studio.
103+
Install Unity 6.2 beta with the iOS, macOS, Windows, and Android modules for your platform. You should not install Visual Studio.
104104

105105
##### Getting Around Unity
106106

@@ -217,10 +217,8 @@ Requirements: **Java 21 or later** and **Docker**. Check your current version of
217217
# Docker. Look carefully at any messages brew tells you and do them
218218
brew cask install docker
219219
# Java (if required)
220-
# Install openjdk 21 or later, dotnet 6.0 & gradle 8.3 or higher
221-
brew install openjdk dotnet-sdk gradle
222-
sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
223-
brew link --force openjdk
220+
# Install openjdk 21 or later, dotnet 6.0 or higher
221+
brew install openjdk dotnet-sdk
224222
```
225223
2. Clone the repository:
226224
```shell script
@@ -229,7 +227,7 @@ Requirements: **Java 21 or later** and **Docker**. Check your current version of
229227
```
230228
3. See Spellsource-specific tasks using `./gradlew tasks --group spellsource`.
231229
4. Run tests using `./gradlew test`
232-
5. Start a local server using `./gradlew run`. This will download about 9GB of content.
230+
5. Start a local server using `./gradlew runServer`.
233231

234232
macOS requires larger receive buffer limits:
235233

@@ -251,11 +249,17 @@ Increase the `allprojects.version` in `build.gradle`, then merge into the `maste
251249
**Windows**
252250

253251
```shell
254-
if ! grep -q "\[merge \"unityyamlmerge\"\]" .git/modules/unityclient/config; then
255-
echo -e "[merge \"unityyamlmerge\"]\ndriver = 'C:/Program Files/Unity/Hub/Editor/6000.0.27f1/Editor/Data/Tools/UnityYamlMerge.exe' merge -h -p --force %O %B %A %A\nname = Unity SmartMerge (UnityYamlMerge)\nrecursive = binary" >> .git/modules/unityclient/config
256-
else
257-
echo "Merge tool configuration already exists."
258-
fi
252+
git config --local merge.unityyamlmerge.driver "'C:/Program Files/Unity/Hub/Editor/6000.2.0b7/Editor/Data/Tools/UnityYamlMerge.exe' merge --fallback none -h -p --force %O %B %A %A"
253+
git config --local merge.unityyamlmerge.name "Unity SmartMerge (UnityYamlMerge)"
254+
git config --local merge.unityyamlmerge.recursive binary
255+
```
256+
257+
**macOS**
258+
259+
```shell
260+
git config --local merge.unityyamlmerge.driver "'/Applications/Unity/Hub/Editor/6000.2.0b7/Unity.app/Contents/Tools/UnityYAMLMerge' merge --fallback none -h -p --force %O %B %A %A"
261+
git config --local merge.unityyamlmerge.name "Unity SmartMerge (UnityYamlMerge)"
262+
git config --local merge.unityyamlmerge.recursive binary
259263
```
260264

261265
### Troubleshooting

build.gradle

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import groovy.json.JsonSlurper
55

66
buildscript {
77
repositories {
8-
maven { url "file://${rootDir}/mavenRepository" }
98
mavenCentral()
109
}
1110
}
@@ -29,7 +28,6 @@ allprojects {
2928

3029
subprojects {
3130
repositories {
32-
maven { url "file://${rootDir}/mavenRepository" }
3331
mavenCentral()
3432
maven { url 'https://jitpack.io' }
3533
}
@@ -205,6 +203,18 @@ subprojects {
205203
if (details.requested.group == 'org.objenesis') {
206204
details.useVersion '3.4'
207205
}
206+
207+
if (details.requested.group == 'com.graphql-java' && details.requested.name == 'graphql-java') {
208+
details.useVersion '20.1'
209+
}
210+
211+
if (details.requested.group == 'org.apache.commons' && details.requested.name == 'commons-lang3') {
212+
details.useVersion '3.13.0'
213+
}
214+
215+
if (details.requested.group == 'org.wildfly.common' && details.requested.name == 'wildfly-common') {
216+
details.useVersion '1.5.1.Final'
217+
}
208218
}
209219
}
210220
}
@@ -333,15 +343,17 @@ def packageJson = new JsonSlurper().parseText(file('package.json').text)
333343
def yarnVersionStr = (packageJson.packageManager as String).split("@")[1]
334344
def binExt = isWindows ? ".cmd" : ""
335345

336-
tasks.register("corepack") {
346+
tasks.register("corepack", Exec) {
337347
def dirPath = ".gradle/yarn/yarn-v${yarnVersionStr}/${isWindows ? "" : "/bin"}"
348+
def path = "corepack${binExt}"
349+
if (isMacOs) {
350+
path = "/opt/homebrew/bin/corepack"
351+
}
338352
outputs.dir(dirPath)
339-
doLast {
353+
doFirst {
340354
mkdir(dirPath)
341-
exec {
342-
commandLine "corepack${binExt}", "enable", "--install-directory", dirPath
343-
}
344355
}
356+
commandLine path, "enable", "--install-directory", dirPath
345357
}
346358

347359
tasks.named("yarnSetup").configure {

buildSrc/spellsource-gradle-plugins/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ repositories {
1313
}
1414
gradlePlugin {
1515
plugins {
16-
nativeImage {
17-
id = 'native-image'
18-
implementationClass = 'com.spellsource.tasks.GraalPlugin'
19-
}
2016
unity {
2117
id = 'unity'
2218
implementationClass = 'com.spellsource.tasks.UnityPlugin'

buildSrc/spellsource-gradle-plugins/src/main/java/com/spellsource/tasks/GraalPlugin.java

Lines changed: 0 additions & 101 deletions
This file was deleted.

buildSrc/spellsource-gradle-plugins/src/main/java/com/spellsource/tasks/GraalUtil.java

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)