Skip to content

Commit 0f410c0

Browse files
authored
Merge branch 'jMonkeyEngine:master' into master
2 parents 90e6cd8 + 56fecab commit 0f410c0

387 files changed

Lines changed: 39054 additions & 2642 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.

.github/workflows/format.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: auto-format
2+
on:
3+
push:
4+
5+
jobs:
6+
format:
7+
runs-on: ubuntu-latest
8+
if: ${{ false }}
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
- name: Prettify code
15+
uses: creyD/prettier_action@v4.3
16+
with:
17+
prettier_options: --tab-width 4 --print-width 110 --write **/**/*.java
18+
prettier_version: "2.8.8"
19+
only_changed: True
20+
commit_message: "auto-format"
21+
prettier_plugins: "prettier-plugin-java"

.github/workflows/main.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ jobs:
6565

6666
steps:
6767
- name: Clone the repo
68-
uses: actions/checkout@v3
68+
uses: actions/checkout@v4
6969
with:
7070
fetch-depth: 1
7171
- name: Validate the Gradle wrapper
72-
uses: gradle/wrapper-validation-action@v1.0.5
72+
uses: gradle/wrapper-validation-action@v2
7373
- name: Build
7474
run: |
7575
./gradlew -PuseCommitHashAsVersionName=true --no-daemon -PbuildNativeProjects=true \
@@ -108,12 +108,12 @@ jobs:
108108

109109
steps:
110110
- name: Clone the repo
111-
uses: actions/checkout@v3
111+
uses: actions/checkout@v4
112112
with:
113113
fetch-depth: 1
114114

115115
- name: Setup the java environment
116-
uses: actions/setup-java@v3
116+
uses: actions/setup-java@v4
117117
with:
118118
distribution: 'temurin'
119119
java-version: ${{ matrix.jdk }}
@@ -125,7 +125,7 @@ jobs:
125125
path: build/native
126126

127127
- name: Validate the Gradle wrapper
128-
uses: gradle/wrapper-validation-action@v1.0.5
128+
uses: gradle/wrapper-validation-action@v2
129129
- name: Build Engine
130130
shell: bash
131131
run: |
@@ -301,13 +301,13 @@ jobs:
301301

302302
# We need to clone everything again for uploadToMaven.sh ...
303303
- name: Clone the repo
304-
uses: actions/checkout@v3
304+
uses: actions/checkout@v4
305305
with:
306306
fetch-depth: 1
307307

308308
# Setup jdk 17 used for building Maven-style artifacts
309309
- name: Setup the java environment
310-
uses: actions/setup-java@v3
310+
uses: actions/setup-java@v4
311311
with:
312312
distribution: 'temurin'
313313
java-version: '17'
@@ -345,13 +345,13 @@ jobs:
345345

346346
# We need to clone everything again for uploadToMaven.sh ...
347347
- name: Clone the repo
348-
uses: actions/checkout@v3
348+
uses: actions/checkout@v4
349349
with:
350350
fetch-depth: 1
351351

352352
# Setup jdk 17 used for building Sonatype OSSRH artifacts
353353
- name: Setup the java environment
354-
uses: actions/setup-java@v3
354+
uses: actions/setup-java@v4
355355
with:
356356
distribution: 'temurin'
357357
java-version: '17'

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,5 @@ appveyor.yml
4848
javadoc_deploy
4949
javadoc_deploy.pub
5050
!.vscode/settings.json
51-
!.vscode/JME_style.xml
51+
!.vscode/JME_style.xml
52+
!.vscode/extensions.json

.vscode/JME_style.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation" value="do not insert"/>
4444
<setting id="org.eclipse.jdt.core.formatter.alignment_for_multiple_fields" value="16"/>
4545
<setting id="org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer" value="16"/>
46-
<setting id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression" value="80"/>
46+
<setting id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression" value="110"/>
4747
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for" value="insert"/>
4848
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_binary_operator" value="insert"/>
4949
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard" value="do not insert"/>
@@ -89,7 +89,7 @@
8989
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters" value="do not insert"/>
9090
<setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment" value="false"/>
9191
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration" value="insert"/>
92-
<setting id="org.eclipse.jdt.core.formatter.lineSplit" value="180"/>
92+
<setting id="org.eclipse.jdt.core.formatter.lineSplit" value="110"/>
9393
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if" value="insert"/>
9494
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference" value="do not insert"/>
9595
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression" value="do not insert"/>
@@ -220,7 +220,7 @@
220220
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement" value="do not insert"/>
221221
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant" value="16"/>
222222
<setting id="org.eclipse.jdt.core.formatter.comment.format_javadoc_comments" value="true"/>
223-
<setting id="org.eclipse.jdt.core.formatter.comment.line_length" value="80"/>
223+
<setting id="org.eclipse.jdt.core.formatter.comment.line_length" value="110"/>
224224
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package" value="insert"/>
225225
<setting id="org.eclipse.jdt.core.formatter.blank_lines_between_import_groups" value="1"/>
226226
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments" value="do not insert"/>
@@ -264,7 +264,7 @@
264264
<setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration" value="16"/>
265265
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer" value="insert"/>
266266
<setting id="org.eclipse.jdt.core.compiler.codegen.targetPlatform" value="1.8"/>
267-
<setting id="org.eclipse.jdt.core.formatter.alignment_for_resources_in_try" value="80"/>
267+
<setting id="org.eclipse.jdt.core.formatter.alignment_for_resources_in_try" value="110"/>
268268
<setting id="org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations" value="true"/>
269269
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation" value="0"/>
270270
<setting id="org.eclipse.jdt.core.formatter.comment.format_header" value="false"/>

.vscode/extensions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"vscjava.vscode-java-pack",
4+
"slevesque.shader"
5+
]
6+
}

.vscode/settings.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
{
22
"java.configuration.updateBuildConfiguration": "automatic",
3+
"java.compile.nullAnalysis.mode": "automatic",
34
"java.refactor.renameFromFileExplorer": "prompt",
45
"java.format.settings.url": "./.vscode/JME_style.xml",
56
"editor.formatOnPaste": true,
6-
"editor.formatOnType": true
7+
"editor.formatOnType": false,
8+
"editor.formatOnSave": true,
9+
"editor.formatOnSaveMode": "modifications" ,
10+
11+
"prettier.tabWidth": 4,
12+
"prettier.printWidth": 110,
13+
"prettier.enable": true,
14+
"prettier.resolveGlobalModules": true
715
}

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2009-2023 jMonkeyEngine.
1+
Copyright (c) 2009-2024 jMonkeyEngine.
22

33
Redistribution and use in source and binary forms, with or without
44
modification, are permitted provided that the following conditions

README.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,32 @@ The engine is used by several commercial game studios and computer-science cours
2424
- [Leap](https://gamejolt.com/games/leap/313308)
2525
- [Jumping Jack Flag](http://timealias.bplaced.net/jack/)
2626
- [PapaSpace Flight Simulation](https://www.papaspace.at/)
27-
- [Cubic Nightmare](https://jaredbgreat.itch.io/cubic-nightmare)
27+
- [Cubic Nightmare (on Itch)](https://jaredbgreat.itch.io/cubic-nightmare)
2828
- [Chatter Games](https://chatter-games.com)
2929
- [Exotic Matter](https://exoticmatter.io)
3030
- [Demon Lord (on Google Play)](https://play.google.com/store/apps/details?id=com.dreiInitiative.demonLord&pli=1)
31-
- [Wild Magic](http://wildmagicgame.ru/)
3231
- [Marvelous Marbles (on Steam)](https://store.steampowered.com/app/2244540/Marvelous_Marbles/)
3332
- [Boxer (on Google Play)](https://play.google.com/store/apps/details?id=com.tharg.boxer)
33+
- [Depthris (on Itch)](https://codewalker.itch.io/depthris)
34+
- [Stranded (on Itch)](https://tgiant.itch.io/stranded)
35+
- [The Afflicted Forests (Coming Soon to Steam)](https://www.indiedb.com/games/the-afflicted-forests)
3436

35-
## Getting started
37+
## Getting Started
3638

3739
Go to https://github.com/jMonkeyEngine/sdk/releases to download the jMonkeyEngine SDK.
38-
[Read the wiki](https://jmonkeyengine.github.io/wiki) for a complete install guide. Power up with some SDK Plugins and AssetPacks and you are off to the races. At this point you're gonna want to [join the forum](http://hub.jmonkeyengine.org/) so our tribe can grow stronger.
40+
Read [the wiki](https://jmonkeyengine.github.io/wiki) for the installation guide and tutorials.
41+
Join [the discussion forum](http://hub.jmonkeyengine.org/) to participate in our community,
42+
get your questions answered, and share your projects.
3943

40-
Note: The master branch on GitHub is a development version of the engine and is NOT MEANT TO BE USED IN PRODUCTION, it will break constantly during development of the stable jME versions!
44+
Note: The master branch on GitHub is a development version of the engine and is NOT MEANT TO BE USED IN PRODUCTION.
4145

4246
### Technology Stack
4347

44-
- Java
45-
- NetBeans Platform
46-
- Gradle
47-
48-
Plus a bunch of awesome libraries & tight integrations like Bullet, NiftyGUI and other goodies.
48+
- windowed, multi-platform IDE derived from NetBeans
49+
- libraries for GUI, networking, physics, SFX, terrain, importing assets, etc.
50+
- platform-neutral core library for scene graph, animation, rendering, math, etc.
51+
- LWJGL v2/v3 (to access GLFW, OpenAL, OpenGL, and OpenVR) or Android or iOS
52+
- Java Virtual Machine (v8 or higher)
4953

5054
### Documentation
5155

common.gradle

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ apply plugin: 'groovy'
77
apply plugin: 'maven-publish'
88
apply plugin: 'signing'
99
apply plugin: 'eclipse'
10+
apply plugin: 'checkstyle'
11+
1012
eclipse.jdt.file.withProperties { props ->
1113
props.setProperty "org.eclipse.jdt.core.circularClasspath", "warning"
1214
}
@@ -26,7 +28,7 @@ tasks.withType(JavaCompile) { // compile-time options:
2628
}
2729

2830
ext {
29-
lwjgl3Version = '3.3.2' // used in both the jme3-lwjgl3 and jme3-vr build scripts
31+
lwjgl3Version = '3.3.3' // used in both the jme3-lwjgl3 and jme3-vr build scripts
3032
niftyVersion = '1.4.3' // used in both the jme3-niftygui and jme3-examples build scripts
3133
}
3234

@@ -41,7 +43,7 @@ dependencies {
4143
// Adding dependencies here will add the dependencies to each subproject.
4244
testImplementation 'junit:junit:4.13.2'
4345
testImplementation 'org.mockito:mockito-core:3.12.4'
44-
testImplementation 'org.codehaus.groovy:groovy-test:3.0.17'
46+
testImplementation 'org.codehaus.groovy:groovy-test:3.0.19'
4547
}
4648

4749
// Uncomment if you want to see the status of every test that is run and
@@ -183,7 +185,7 @@ publishing {
183185
}
184186

185187
publishToMavenLocal.doLast {
186-
println 'published ' + project.getName() + "-${jmeFullVersion} to mavenLocal"
188+
println 'published ' + project.getName() + "-${jmeFullVersion} to mavenLocal"
187189
}
188190
task('install') {
189191
dependsOn 'publishToMavenLocal'
@@ -200,3 +202,24 @@ signing {
200202
tasks.withType(Sign) {
201203
onlyIf { gradle.rootProject.hasProperty('signingKey') }
202204
}
205+
206+
checkstyle {
207+
toolVersion '9.3'
208+
configFile file("${gradle.rootProject.rootDir}/config/checkstyle/checkstyle.xml")
209+
}
210+
211+
checkstyleMain {
212+
source ='src/main/java'
213+
}
214+
215+
checkstyleTest {
216+
source ='src/test/java'
217+
}
218+
219+
tasks.withType(Checkstyle) {
220+
reports {
221+
xml.enabled false
222+
html.enabled true
223+
}
224+
include("**/com/jme3/renderer/**/*.java")
225+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0"?>
2+
<!DOCTYPE suppressions PUBLIC "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN" "https://checkstyle.org/dtds/suppressions_1_2.dtd">
3+
4+
<suppressions>
5+
<!-- https://checkstyle.org/filters/suppressionfilter.html -->
6+
</suppressions>

0 commit comments

Comments
 (0)