Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge upstream #135

Closed
wants to merge 270 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
270 commits
Select commit Hold shift + click to select a range
93f3cd4
Fix lock code being null for newly placed blocks
SquidDev Jun 16, 2022
b7f698d
Switch over to using SLF4J
SquidDev Jun 19, 2022
a2e3d9d
Update JEI to 1.19
SquidDev Jun 19, 2022
f9f8233
Some "improvements" to our Gradle script
SquidDev Jun 19, 2022
6d5b13d
Revert "Switch over to using SLF4J"
SquidDev Jun 20, 2022
1a0e3fc
Use the Gradle shadow plugin to shade deps
SquidDev Jun 20, 2022
8fc7820
Sync each config type separately
SquidDev Jun 20, 2022
03f50f9
_Actually_ publish an API jar
SquidDev Jun 21, 2022
2d30208
Avoid early creation of tasks
SquidDev Jun 23, 2022
d1e9527
Bump version to 1.100.8
SquidDev Jun 23, 2022
ee495b3
Merge branch 'mc-1.16.x' into mc-1.18.x
SquidDev Jun 23, 2022
bb0e449
Switch over to using SLF4J
SquidDev Jun 19, 2022
7181117
Also propogate the Java launcher when copying tasks
SquidDev Jun 23, 2022
d2f94f2
Merge branch 'mc-1.16.x' into mc-1.18.x
SquidDev Jun 23, 2022
92c613a
Merge branch 'mc-1.18.x' into mc-1.19.x
SquidDev Jun 23, 2022
b7fa410
Fix spell err Turtle API Doc
JohnnyIrvin Jul 1, 2022
b8d7695
Merge pull request #1126 from JohnnyIrvin/mc-1.16.x
SquidDev Jul 1, 2022
41bddca
Use shorter mod version when publishing to Modrinth
SquidDev Jul 2, 2022
d6afee8
Document setting up a gps constellation (#1070)
Lupus590 Jul 2, 2022
d967730
Run the JSX transformer without type checking
SquidDev Jul 2, 2022
51c3a9d
Fix z-fighting on bold printout borders.
toad-dev Jan 20, 2022
4e438df
Update cct-javadoc
SquidDev Jul 2, 2022
56f0e06
Fix term.blit failing on substrings
SquidDev Jul 2, 2022
e906f3e
Remove IArguments.releaseImmediate
SquidDev Jul 2, 2022
954254e
Update Minecraft versions
SquidDev Jul 7, 2022
f25a73b
Fix packet ID conflict
SquidDev Jul 7, 2022
be3a960
Check for duplicate ids when registering channels
SquidDev Jul 8, 2022
4cfd0a2
Fix off-by-1 error in generic inventory's getItemLimit() (#1131)
heap-underflow Jul 8, 2022
6335e77
Add a code of conduct
SquidDev Jul 8, 2022
5366fcb
Point people towards the http.rules config option
SquidDev Jul 8, 2022
bd5de11
Add WAV support to speaker program (#1112)
MCJack123 Jul 9, 2022
4a273ae
Update to latest Forge
SquidDev Jul 16, 2022
969feb4
ItemGroup info on getItemDetail (#1127)
itisluiz Jul 16, 2022
ba976f9
Fix monitor depth blocker being too small
SquidDev Jul 16, 2022
48147fa
Don't use MultiBufferSource for monitors
SquidDev Jul 16, 2022
69b211b
Fix name of "ingame" time locale
SquidDev Jul 21, 2022
b28c1ac
Test various time locales exist
SquidDev Jul 21, 2022
25a44be
Correctly set VertexBuffer.format
SquidDev Jul 21, 2022
ebef311
Update npm packages
SquidDev Jul 21, 2022
abf857f
Clearify GPS documentation note (#1139)
Erb3 Jul 22, 2022
5d65b3e
Added translation for Norwegian Bokmål
weblate Jul 24, 2022
6ce88a7
Translations for Norwegian Bokmål
weblate Jul 26, 2022
d61202e
Fix location of language file
SquidDev Jul 27, 2022
e2041f7
Bump version to 1.100.9
SquidDev Jul 27, 2022
c3615d9
Update to 1.19.1
SquidDev Jul 28, 2022
bd19fdf
Merge branch 'mc-1.16.x' into mc-1.18.x
SquidDev Jul 28, 2022
50fe793
Merge branch 'mc-1.18.x' into mc-1.19.x
SquidDev Jul 28, 2022
c43d851
Register turtle upgrade models separately
SquidDev Jul 28, 2022
4228011
Support Occulus shaders
SquidDev Jul 30, 2022
ad4a2aa
Mirror Oculus with our maven
SquidDev Jul 30, 2022
feb7681
Add some missing test timeouts
SquidDev Jul 30, 2022
34a2e87
Merge branch 'mc-1.18.x' into mc-1.19.x
SquidDev Jul 30, 2022
9d18487
Fixed usage example of textuils.pagedTabulate
IvoLeal72 Aug 28, 2022
db8c979
Merge pull request #1156 from IvoLeal72/patch-1
SquidDev Aug 28, 2022
ba64e06
Use a Gradle plugin to download illuaminate
SquidDev Sep 11, 2022
d22e138
Fix numerous off-by-one errors in help program
SquidDev Sep 11, 2022
61ac48c
Mention audio formats in speaker help
SquidDev Sep 11, 2022
c3b7302
Remove some unused arguments in LuaDateTime
SquidDev Sep 11, 2022
76f8dd2
Properly bump to 1.19.2
SquidDev Sep 21, 2022
0b7fbcd
Send block updates to client when the turtle moves #1167 (#1170)
roland-a Sep 29, 2022
e7533f2
Improve community links a little
SquidDev Sep 29, 2022
da5956e
Make the sidebar a little wider
SquidDev Sep 29, 2022
371f931
Always add HTTP programs to the path (#1172)
SquidDev Sep 30, 2022
5be290a
Bump version to 1.100.10
SquidDev Oct 1, 2022
08895cd
Merge branch 'mc-1.16.x' into mc-1.18.x
SquidDev Oct 1, 2022
66dff15
Merge branch 'mc-1.18.x' into mc-1.19.x
SquidDev Oct 1, 2022
8564c1e
Add all but 3 of the missing dutch translations
Quezler Oct 8, 2022
cbfd83c
Merge pull request #1182 from Quezler/patch-2
SquidDev Oct 8, 2022
12b8a03
Dump Cobalt's internal state on timeouts
SquidDev Oct 9, 2022
a9b74dc
Make IRC links https
SquidDev Oct 9, 2022
9ed5ebb
Merge branch 'mc-1.16.x' into mc-1.18.x
SquidDev Oct 12, 2022
bc79100
Merge branch 'mc-1.18.x' into mc-1.19.x
SquidDev Oct 14, 2022
c8e15f2
Correctly bind VBOs before drawing them
SquidDev Oct 16, 2022
c49547b
Remove ClientComputer
SquidDev Oct 21, 2022
cf05ab1
Store colour support in the Terminal
SquidDev Oct 21, 2022
c0d20b7
Remove ClientTerminal/ServerTerminal
SquidDev Oct 21, 2022
695ef05
Don't store a mutable array in Colour
SquidDev Oct 21, 2022
cee60cd
Require computers to have a fixed ID
SquidDev Oct 21, 2022
b663028
Start work on curtailing our global state
SquidDev Oct 21, 2022
1e703f1
Fix several off-by-one issues in UploadFileMessage
SquidDev Oct 21, 2022
9db3e6d
Load the CC API with services loaders
SquidDev Oct 21, 2022
5d833ac
Expose getters for the detail registry too (#1188)
SquidDev Oct 21, 2022
cb97313
Give up on ComputerThreadTest being accurate
SquidDev Oct 21, 2022
0b26ab3
Rewrite the metrics system
SquidDev Oct 22, 2022
ff89e5f
Some datagen improvements
SquidDev Oct 22, 2022
0c3de10
Switch to vanilla's model data generators
SquidDev Oct 22, 2022
18d9993
Merge branch 'feature/more-datagen' into mc-1.16.x
SquidDev Oct 22, 2022
68da044
Merge branch 'feature/new-metrics' into mc-1.16.x
SquidDev Oct 22, 2022
e9cde9e
Refactor out main thread tasks into an interface
SquidDev Oct 22, 2022
57cf608
Manage ComputerThread's lifecycle in ComputerContext
SquidDev Oct 22, 2022
af5d816
Use spotless for enforcing licenses
SquidDev Oct 22, 2022
0cfdd7b
Move some more build logic to buildSrc
SquidDev Oct 22, 2022
6ab90dc
Convert build script to Kotlin
SquidDev Oct 22, 2022
b48f590
Merge branch 'feature/gradle-vice' into mc-1.16.x
SquidDev Oct 22, 2022
3e3bc8d
Fix a whole bunch of GH action issues
SquidDev Oct 22, 2022
f4e542b
Use our global logger instead of per-class ones
SquidDev Oct 23, 2022
8171578
Some minor build system improvements
SquidDev Oct 24, 2022
af7af61
Correctly shut down computer threads
SquidDev Oct 25, 2022
f456141
Some improvements to Javadoc publishing
SquidDev Oct 25, 2022
562f224
Refactor out our JEI plugin into reusable components
SquidDev Oct 25, 2022
be827a2
Merge branch 'mc-1.16.x' into mc-1.18.x
SquidDev Oct 25, 2022
158850b
Some Java-17ification
SquidDev Oct 25, 2022
a291103
Merge branch 'mc-1.18.x' into mc-1.19.x
SquidDev Oct 26, 2022
a9ef874
Regenerate assets using our new JSON printer
SquidDev Oct 26, 2022
1f910ee
Use a separate object for tracking TickScheduler state
SquidDev Oct 28, 2022
9738755
Handle file transfers inside CraftOS (#1190)
SquidDev Oct 29, 2022
1e88d37
Add peripheral_hub type for wired-modem-like peripherals (#1193)
SquidDev Oct 29, 2022
71f81e1
Move some test support code into testFixtues
SquidDev Oct 29, 2022
3d6ef0c
Fix peripheral API using the wrong methods
SquidDev Oct 29, 2022
b2d2153
Add several missing version annotations
SquidDev Oct 29, 2022
5ee5b11
Fix month and day names under Java 17
SquidDev Oct 29, 2022
38b2c94
Merge branch 'mc-1.16.x' into mc-1.18.x
SquidDev Oct 30, 2022
b5056fc
Merge branch 'mc-1.18.x' into mc-1.19.x
SquidDev Oct 30, 2022
b3702fe
Remove all Minecraft references from the core package
SquidDev Oct 30, 2022
c4184a3
Rewrite our gametest system
SquidDev Oct 30, 2022
1a87175
Be a little more rigorous in KotlinLuaMachine's threading
SquidDev Oct 30, 2022
f5b8998
Don't unnecessarily scroll in edit run wrapper (#1195)
SquidDev Oct 30, 2022
1490ca8
Bump Cobalt version
SquidDev Oct 30, 2022
14cb97c
Sort NBT when writing
SquidDev Oct 30, 2022
7701b34
Make PartialOptions immutable
SquidDev Oct 31, 2022
4c5b3a6
Clear Origin header on websockets
SquidDev Oct 31, 2022
5d4c34f
Merge branch 'mc-1.16.x' into mc-1.18.x
SquidDev Oct 31, 2022
93f747f
Fix incorrect reboot tooltip
SquidDev Oct 31, 2022
f528046
Add a whole bunch of missing @since annotations
SquidDev Oct 31, 2022
4b09887
Add include_hidden option to fs.complete (#1194)
IvoLeal72 Nov 1, 2022
1acb844
Add a couple of tests for file autocompletion
SquidDev Nov 1, 2022
6b93faf
Bump CC:T to 1.101.0
SquidDev Nov 1, 2022
11ac865
Merge branch 'mc-1.16.x' into mc-1.18.x
SquidDev Nov 1, 2022
629abb6
Merge branch 'mc-1.18.x' into mc-1.19.x
SquidDev Nov 1, 2022
c1bf9f0
Prepare the public API for multi-loader support
SquidDev Nov 1, 2022
aefda6a
Fix a couple of issues with the release process
SquidDev Nov 1, 2022
1d3ecb5
Improvee changelog
SquidDev Nov 2, 2022
0db32bd
Merge branch 'mc-1.16.x' into mc-1.18.x
SquidDev Nov 2, 2022
0f1f524
Merge branch 'mc-1.18.x' into mc-1.19.x
SquidDev Nov 2, 2022
c919011
Check for valid nSender field on RedNet message receive (#1200)
Ale32bit Nov 3, 2022
45c5de7
Correctly register turtle refuel handlers
SquidDev Nov 3, 2022
998efcc
Move our test thread scheduler into the main jar
SquidDev Nov 3, 2022
7df0412
Bump CC:T to 1.101.1
SquidDev Nov 3, 2022
f478c4f
Reformat everything
SquidDev Nov 3, 2022
6cc86b0
Exclude the previous commit from git blame
SquidDev Nov 3, 2022
e4e528e
Prepare dan200.computercraft.core for splitting off
SquidDev Nov 4, 2022
a17b001
Move the core API into a separate module
SquidDev Nov 4, 2022
acc254a
Move dan200.computercraft.core into a separate module
SquidDev Nov 4, 2022
c8c128d
Switch the core-api to be non-null by default
SquidDev Nov 6, 2022
c82f37d
Switch the core library to be non-null by default
SquidDev Nov 6, 2022
d8e2161
Move website source/build logic to projects/web
SquidDev Nov 6, 2022
76710ee
Move our public API into separate modules
SquidDev Nov 6, 2022
955b9c7
Default Forge/Common API to non-null
SquidDev Nov 6, 2022
1c890e5
Fix typo in speaker documentation (#1209)
9551-Dev Nov 6, 2022
9cd728f
Update parse-reports to handle new paths
SquidDev Nov 6, 2022
6d665ad
Rename Registry to ModRegistry
SquidDev Nov 6, 2022
564752c
Flesh out our registry abstraction layer
SquidDev Nov 6, 2022
53abe5e
Make net code more multi-loader friendly
SquidDev Nov 6, 2022
e8f9cdd
Attach capabilities to our BlockEntities externally
SquidDev Nov 6, 2022
0908acb
Move all event handlers to a common class
SquidDev Nov 8, 2022
320007d
Improve packaging of published jars
SquidDev Nov 8, 2022
7d47b21
Access capabilities using PlatformHelper
SquidDev Nov 8, 2022
55494b7
Rewrite how we do inventory transfers
SquidDev Nov 8, 2022
22729f6
Abstract our our use of Forge's tags
SquidDev Nov 9, 2022
cc73fcd
Move many Forge-specific methods behind PlatformHelper
SquidDev Nov 9, 2022
34c7fcf
Refactor the turtle model code a little
SquidDev Nov 9, 2022
b36b96e
Make the main mod non-null by default
SquidDev Nov 9, 2022
4828540
Move the rendering monitor code to the client side
SquidDev Nov 9, 2022
4d50b48
Remove all references to the ComputerCraft class
SquidDev Nov 9, 2022
8a71567
Refactor turtle actions for easier multi-loader support
SquidDev Nov 9, 2022
0c4fd2b
Make the shader mod system a little more flexible
SquidDev Nov 9, 2022
bdf590f
Clean up data generators a little
SquidDev Nov 9, 2022
f04acdc
Split CC:T into common and forge projects
SquidDev Nov 9, 2022
1d335f7
Add a couple of errorprone plugins
SquidDev Nov 10, 2022
77624fc
Update project paths in our utility build scripts
SquidDev Nov 10, 2022
8360e82
Post multi-loader cleanup
SquidDev Nov 10, 2022
b2b5889
Minor fixes and cleanup
SquidDev Nov 10, 2022
8152f19
Fabric lol
SquidDev Nov 10, 2022
8d2e150
Various improvements to packaging
SquidDev Nov 17, 2022
b58b9b7
Fix several issues with the Fabric API jar
SquidDev Nov 18, 2022
8f92417
Add a system for client-side tests (#1219)
SquidDev Nov 18, 2022
08df68d
Generate en_us.json via datagen
SquidDev Nov 20, 2022
3fa39b5
Translations for Russian (ru_ru)
weblate Nov 20, 2022
2255d49
Update to latest Fabric
SquidDev Nov 20, 2022
e2447bb
Fix path to Fabric mod icon
SquidDev Nov 20, 2022
737d8a2
Add a couple of tests for inventory transfer
SquidDev Nov 20, 2022
0fc78ac
Fix computer upgrade recipes
SquidDev Nov 21, 2022
3a96aea
Add a couple of tests for pocket computers
SquidDev Nov 21, 2022
ee2670d
Move some functions out of bios into their own APIs
SquidDev Nov 21, 2022
b8fce1e
Trim spaces from filesystem paths
SquidDev Nov 25, 2022
4781680
Check the filesystem for isReadOnly (#1226)
Lemmmy Nov 25, 2022
b13998d
Allow client tests to fail
SquidDev Nov 25, 2022
95c57e8
Pass project root to cct-javadoc
SquidDev Dec 2, 2022
87c6d3a
Initial pass of the API breaking changes for 1.19.3 (#1232)
SquidDev Dec 3, 2022
fa122a5
Resolve a few TODOs
SquidDev Dec 3, 2022
c96172e
Refactor common {Jar,Resource}Mount code into a parent class
SquidDev Dec 3, 2022
fc5f296
Make Mount.openForRead always return a SeekableByteChannel
SquidDev Dec 3, 2022
a9c0b02
Run core tests on Windows/OSX too
SquidDev Dec 4, 2022
020c5cd
Support renaming files directly without copying/deleting
SquidDev Dec 4, 2022
9f48395
Correctly format 12AM/PM with %I
SquidDev Dec 6, 2022
9962ce1
Finish a sentence
SquidDev Dec 7, 2022
3b42f22
A couple of fixes to the HTTP API
SquidDev Dec 7, 2022
c3fe9f0
Update to Minecraft 1.19.3
SquidDev Dec 8, 2022
df38f3e
Update README with the new maven coordinates
SquidDev Dec 8, 2022
8007a30
Actually update README with the new maven coordinates
SquidDev Dec 9, 2022
367773e
Some refactoring of mounts
SquidDev Dec 9, 2022
18fbd96
Some further improvemnets to mount error handling
SquidDev Dec 10, 2022
e30eca7
Merge remote-tracking branch 'squid/mc-1.19.x' into mc-1.19.x/stable
SquidDev Dec 11, 2022
67880cd
Add back config for publishing jars
SquidDev Dec 11, 2022
6ae8aa0
Don't sync modrinth markdown
SquidDev Dec 11, 2022
9d5012a
Fix the path upload-artifact uses
SquidDev Dec 11, 2022
f301b36
Add back the netherite pickaxe
SquidDev Dec 11, 2022
06163e4
Fix a couple of packaging issues
SquidDev Dec 12, 2022
0787e17
Use git shortlog for gathering contributors
SquidDev Dec 13, 2022
99a2b26
Fix some typos in ARCHITECTURE.md
SquidDev Dec 14, 2022
551f6ba
Fix out-of-bounds read in ByteBufferChannel
SquidDev Dec 14, 2022
1276478
Use the correct import path in import.lua
SquidDev Dec 14, 2022
2b23733
Update to latest Forge
SquidDev Dec 15, 2022
e7fe22d
Don't round trip values in executeMainThreadTask
SquidDev Dec 15, 2022
36ce490
Use RenderSystem for setting polygon offsets
SquidDev Dec 15, 2022
eeac86b
Satiate the demons of checkstyle
SquidDev Dec 15, 2022
4fa7f50
Time fs and peripheral operations
SquidDev Dec 15, 2022
27b732f
Make the turtle label move with the turtle
SquidDev Dec 15, 2022
6e5b724
Deliver x86_64 Illuaminate binaries to all Macs
toad-dev Dec 17, 2022
9d394f4
Merge pull request #1255 from toad-dev/patch/illuaminate-support-arm-…
SquidDev Dec 18, 2022
172d182
Fix duplicated swing animations on high-ping servers
emmachase Dec 20, 2022
9010219
Merge pull request #1262 from emmachase/mc-1.19.x
SquidDev Dec 20, 2022
86c4c74
Bump Cobalt and ForgeConfigAPI versions
SquidDev Dec 21, 2022
e241575
Prepare for 1.102.0
SquidDev Dec 24, 2022
d2c7b94
Fix crash on Fabric when attempting to use a non-fuel item as fuel. (…
emmachase Dec 29, 2022
2c59b91
Set location when creating a pocket modem
SquidDev Dec 29, 2022
bcdfa7c
Fix bug where turtle drops inventory when moving (#1276)
emmachase Dec 29, 2022
a1d5c76
Test for moving into a rotated container
SquidDev Dec 29, 2022
7a83a40
Fix OOB when item insertion wraps around (#1277)
emmachase Dec 29, 2022
3047e3c
Simplify cable/modem block breaking code
SquidDev Dec 29, 2022
7f34aff
Correctly handle double chests on Fabric
SquidDev Dec 29, 2022
77f62da
Fix mouse_up not being fired on Fabric
SquidDev Dec 29, 2022
1259e29
Fix full-block wired modems not connecting
SquidDev Dec 29, 2022
aa20380
Fix search tab showing up in itemGroups
SquidDev Dec 31, 2022
230c7ee
Clamp speaker volume again
SquidDev Jan 1, 2023
7b6caf7
Increase the distance from which we drop items
SquidDev Jan 1, 2023
8ea5b64
Improve our CI artifacts
SquidDev Jan 1, 2023
3a883db
Test that wired modems form networks
SquidDev Jan 1, 2023
af15030
Translations for Italian
weblate Jan 1, 2023
bdecb88
Support resource conditions in upgrade JSON
SquidDev Jan 2, 2023
34a31ab
Move our internal module into the main package path
SquidDev Jan 5, 2023
717e096
Include the licences of our dependencies in the credits
SquidDev Jan 6, 2023
4360458
Attempt to reduce test flakiness
SquidDev Jan 7, 2023
592ff84
Read computer threads directly from the config object (#1295)
SquidDev Jan 7, 2023
8024017
Bump CC:T to 1.102.1
SquidDev Jan 8, 2023
cdc91a8
Fix stack overflow in logging code
SquidDev Jan 8, 2023
2457a31
Fix printouts crashing in item frames
SquidDev Jan 9, 2023
28a5534
Move coverage to the Java side
SquidDev Jan 12, 2023
02b68b2
Correctly track coverage for startup.lua too
SquidDev Jan 12, 2023
1cc1fe5
Merge remote-tracking branch 'squid/mc-1.19.x' into feature/merge-ups…
SquidDev Jan 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,22 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

ij_continuation_indent_size = 4
ij_any_do_while_brace_force = if_multiline
ij_any_if_brace_force = if_multiline
ij_any_for_brace_force = if_multiline
ij_any_spaces_within_array_initializer_braces = true

ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = true
ij_kotlin_method_parameters_wrap = off
ij_kotlin_call_parameters_wrap = off

[*.md]
trim_trailing_whitespace = false

[*.sexp]
indent_size = 2

[*.yml]
indent_size = 2
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Reformat everything
f478c4ffc4fb9fc2200ec9b0bc751d047057ce81
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Ignore changes in generated files
src/generated/resources/data/** linguist-generated
projects/*/src/generated/** linguist-generated
projects/common/src/testMod/resources/data/cctest/structures/* linguist-generated

* text=auto

Expand Down
27 changes: 8 additions & 19 deletions .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: true

- name: Set up Java 17
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'

- name: Cache gradle dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle.properties') }}
Expand All @@ -31,29 +32,17 @@ jobs:
echo "org.gradle.daemon=false" >> ~/.gradle/gradle.properties

- name: Build with Gradle
run: |
./gradlew assemble || ./gradlew assemble
./gradlew build
run: ./gradlew build

- name: Upload Jar
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: cc-restitched
path: build/libs
path: projects/fabric/build/libs

- name: Parse test reports
run: ./tools/parse-reports.py
if: ${{ failure() }}

- name: Cache pre-commit
uses: actions/cache@v2
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-pre-commit-${{ hashFiles('config/pre-commit/config.yml') }}
restore-keys: |
${{ runner.os }}-pre-commit-

- name: Run linters
run: |
pip install pre-commit
pre-commit run --config config/pre-commit/config.yml --show-diff-on-failure --all --color=always
uses: pre-commit/[email protected]
73 changes: 35 additions & 38 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,44 @@
name: Release

on:
release:
types:
- published
workflow_dispatch:
release:
types:
- published
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/cache@v2
with:
path: |
~/.gradle/loom-cache
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
gradle-
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true

- name: Pull submodules
run: git submodule update --init --recursive
- uses: actions/cache@v3
with:
path: |
~/.gradle/loom-cache
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
gradle-

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Set up Java 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'

- name: Build and publish with Gradle
run: ./gradlew build publish
env:
CURSEFORGE: ${{ secrets.CURSEFORGE }}
MODRINTH: ${{ secrets.MODRINTH }}
CHANGELOG: ${{ github.event.release.body }}
- name: Build and publish with Gradle
run: ./gradlew build publish
env:
CURSEFORGE: ${{ secrets.CURSEFORGE }}
MODRINTH: ${{ secrets.MODRINTH }}
CHANGELOG: ${{ github.event.release.body }}

- name: Upload GitHub release
uses: AButler/[email protected]
with:
files: 'build/libs/*.jar;!build/libs/*-sources.jar;!build/libs/*-dev.jar'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload GitHub release
uses: AButler/[email protected]
with:
files: 'build/libs/*.jar;!build/libs/*-sources.jar;!build/libs/*-dev.jar'
repo-token: ${{ secrets.GITHUB_TOKEN }}
22 changes: 13 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,29 @@
/classes
/logs
/build
/projects/*/logs
/projects/*/build
/buildSrc/build
/out
/doc/out/
/node_modules
.jqwik-database

# Runtime directories
/run
/run-*
/test-files

# Autogenerated by IDE
/bin
/.settings
.classpath
/projects/*/run

*.ipr
*.iws
*.iml
.idea
.gradle
*.DS_Store
.project

/.classpath
/.project
/.settings
/.vscode
*.launch

/src/generated/resources/.cache
/projects/*/src/generated/resources/.cache
8 changes: 4 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "src/main/resources/resourcepacks/overhaul"]
path = src/main/resources/resourcepacks/overhaul
url = https://github.com/cc-orgs/cc-overhaul
branch = main
[submodule "projects/common/src/main/resources/resourcepacks/overhaul"]
path = projects/common/src/main/resources/resourcepacks/overhaul
url = https://github.com/cc-orgs/cc-overhaul.git
branch = "main"
9 changes: 7 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ ports:

vscode:
extensions:
- eamodio.gitlens
- github.vscode-pull-request-github
- ms-azuretools.vscode-docker
- redhat.java
- richardwillis.vscode-gradle
- vscjava.vscode-java-debug

- vscode.github

tasks:
- name: Setup pre-commit hool
init: pre-commit install --config config/pre-commit/config.yml --allow-missing-config
init: pre-commit install --allow-missing-config
- name: Install npm packages
init: npm ci
47 changes: 47 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict

# Quick syntax checkers
- id: check-xml
- id: check-yaml
- id: check-toml
- id: check-json
exclude: "tsconfig\\.json|\\.vscode/settings\\.json$"

- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 2.3.54
hooks:
- id: editorconfig-checker
args: ['-disable-indentation']
exclude: "^(.*\\.(bat)|LICENSE)$"

- repo: local
hooks:
- id: license
name: Spotless
files: ".*\\.(java|kt|kts)$"
language: system
entry: ./gradlew spotlessApply
pass_filenames: false
require_serial: true
- id: checkstyle
name: Check Java codestyle
files: ".*\\.java$"
language: system
entry: ./gradlew checkstyleMain checkstyleTest
pass_filenames: false
require_serial: true

exclude: |
(?x)^(
projects/[a-z]+/src/generated|
projects/core/src/test/resources/test-rom/data/json-parsing/|
.*\.dfpwm
)
12 changes: 6 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"files.exclude": {
// Default Java Dev
"files.exclude": {
// Default Java Dev
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true,

// Custom Hidden Files
"**/.bin": true,
"**/.editorconfig": true,
// Custom Hidden Files
"**/.bin": true,
"**/.editorconfig": true,
},

"java.configuration.updateBuildConfiguration": "automatic"
"java.configuration.updateBuildConfiguration": "automatic"
}
Loading