Skip to content

Commit 5586b88

Browse files
authored
Merge pull request #4 from XenFork/ecs
2 parents 348ed9a + 8957ff6 commit 5586b88

File tree

84 files changed

+3041
-960
lines changed

Some content is hidden

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

84 files changed

+3041
-960
lines changed

.github/workflows/gradle.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
matrix:
2121
java: [
22-
22-ea
22+
22
2323
]
2424
os: [ ubuntu-latest, windows-latest, macos-latest ]
2525
runs-on: ${{ matrix.os }}
@@ -30,7 +30,6 @@ jobs:
3030
with:
3131
java-version: |
3232
${{ matrix.java }}
33-
21
3433
distribution: 'temurin'
3534
- name: Grant execute permission for gradlew
3635
if: ${{ runner.os != 'Windows' }}
@@ -39,15 +38,15 @@ jobs:
3938
uses: gradle/actions/setup-gradle@v3
4039
- name: Execute Gradle build
4140
run: ./gradlew build
42-
- name: Upload build reports
43-
if: ${{ runner.os == 'Linux' && matrix.java == '22-ea' && failure() }}
44-
uses: actions/upload-artifact@v4
45-
with:
46-
name: build-reports
47-
path: |
48-
modules/**/build/reports/
41+
# - name: Upload build reports
42+
# if: ${{ runner.os == 'Linux' && matrix.java == '22-ea' && failure() }}
43+
# uses: actions/upload-artifact@v4
44+
# with:
45+
# name: build-reports
46+
# path: |
47+
# modules/**/build/reports/
4948
- name: Capture build artifacts
50-
if: ${{ runner.os == 'Linux' && matrix.java == '22-ea' }}
49+
if: ${{ runner.os == 'Linux' && matrix.java == '22' }}
5150
uses: actions/upload-artifact@v4
5251
with:
5352
name: Artifacts

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ build/
88
!**/src/test/**/build/
99

1010
### IntelliJ IDEA ###
11-
.idea/
11+
.idea/*
12+
!.idea/copyright/
1213
#.idea/modules.xml
1314
#.idea/jarRepositories.xml
1415
#.idea/compiler.xml

.idea/copyright/lgpl.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/copyright/profiles_settings.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle.kts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* version 2.1 of the License, or (at your option) any later version.
99
*/
1010

11-
// last updated: 2024/3/30
11+
// last updated: 2024/6/10
1212

1313
plugins {
1414
`java-platform`
@@ -82,33 +82,37 @@ val publicationRepo: PublicationRepo? = if (hasPublication.toBoolean()) Publicat
8282
val projVersion: String by rootProject
8383
val coreVersion: String by rootProject
8484
val clientVersion: String by rootProject
85+
val mathVersion: String by rootProject
8586

8687
val annotationsVersion: String by rootProject
8788
val commonsPoolVersion: String by rootProject
8889
val gsonVersion: String by rootProject
89-
val jomlVersion: String by rootProject
9090
val logbackVersion: String by rootProject
9191
val reactorVersion: String by rootProject
9292

9393
class GameModule(
9494
val artifactId: String,
9595
val version: String,
96-
val mavenName: String,
9796
val description: String
9897
)
9998

10099
val moduleCore = GameModule(
101-
"freeworld", coreVersion, "Core",
100+
"freeworld", coreVersion,
102101
"freeworld core library"
103102
)
104103
val moduleClient = GameModule(
105-
"freeworld-client", clientVersion, "Client",
104+
"freeworld-client", clientVersion,
106105
"freeworld client library"
107106
)
107+
val moduleMath = GameModule(
108+
"freeworld-math", mathVersion,
109+
"freeworld math library"
110+
)
108111

109112
val gameModules = listOf(
110113
moduleCore,
111-
moduleClient
114+
moduleClient,
115+
moduleMath
112116
)
113117

114118
version = projVersion
@@ -134,7 +138,6 @@ subprojects {
134138
val implementation by configurations
135139
dependencies {
136140
compileOnly("org.jetbrains:annotations:$annotationsVersion")
137-
implementation("org.joml:joml:$jomlVersion")
138141
implementation("ch.qos.logback:logback-classic:$logbackVersion")
139142
implementation("com.google.code.gson:gson:$gsonVersion")
140143
implementation("org.apache.commons:commons-pool2:$commonsPoolVersion")
@@ -277,7 +280,7 @@ if (hasPublication.toBoolean() && publicationRepo != null) {
277280
}
278281

279282
gameModules.forEach { gameModule ->
280-
register<MavenPublication>("mavenJava${gameModule.mavenName}") {
283+
register<MavenPublication>("mavenJava${gameModule.artifactId}") {
281284
groupId = projGroupId
282285
artifactId = gameModule.artifactId
283286
version = gameModule.version
@@ -315,7 +318,7 @@ if (hasPublication.toBoolean() && publicationRepo != null) {
315318

316319
signing {
317320
if (!publicationRepo.snapshotPredicate(projVersion) && publicationSigning.toBoolean()) {
318-
gameModules.forEach { sign(publishing.publications["mavenJava${it.mavenName}"]) }
321+
gameModules.forEach { sign(publishing.publications["mavenJava${it.artifactId}"]) }
319322
sign(publishing.publications["mavenBOM"])
320323
}
321324
}

doc/legal/LICENSE_JOML

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015-2023 JOML
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ jdkEnablePreview=true
4646
projVersion=0.1.0-SNAPSHOT
4747
coreVersion=0.1.0-SNAPSHOT
4848
clientVersion=0.1.0-SNAPSHOT
49+
mathVersion=0.1.0-SNAPSHOT
4950

5051
annotationsVersion=24.1.0
5152
commonsPoolVersion=2.12.0
5253
gsonVersion=2.10.1
53-
jomlVersion=1.10.5
5454
logbackVersion=1.4.14
5555
overrunglVersion=0.1.0-SNAPSHOT
5656
reactorVersion=2023.0.6

modules/freeworld.client/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ dependencies {
4747
api(project(":freeworld"))
4848
implementation(platform("io.github.over-run:overrungl-bom:$overrunglVersion"))
4949
implementation("io.github.over-run:overrungl")
50-
implementation("io.github.over-run:overrungl-joml")
5150
implementation("io.github.over-run:overrungl-glfw")
5251
implementation("io.github.over-run:overrungl-opengl")
5352
implementation("io.github.over-run:overrungl-stb")

0 commit comments

Comments
 (0)