64 Commits
Author SHA1 Message Date
Wilhelm Schuster 18a99f3775 Exclude .github/scripts/update_version for real now (#202) 2023-07-19 17:37:18 +01:00
Wilhelm Schuster 9742286cf1 Exclude .github/scripts/update-version from release zips (#201)
This script is only relevant for the buildscript repo itself and not downstream users.
2023-07-19 08:55:48 +02:00
Raven Szewczyk 467051589b Replace the two settings.gradle files to have a more sensible starter package layout. (#143) 2023-02-24 17:16:03 +01:00
Raven Szewczyk 05882a56a0 Fix wrong shared actions branch 2023-02-01 16:24:02 +00:00
Raven Szewczyk 136b0a0cc7 RFG bump and remove broken part of the maintenance gh action 2023-01-30 20:31:19 +00:00
Raven Szewczyk 1d5c51c7b8 RetroFuturaGradle port (#109)
* Update gradlew to 7.6

* Minimal changes to not crash when loading RFG instead of FG, remove some no longer necessary workarounds

* Update gradlew to 8.0-rc-1

* Fix build.gradle IntelliJ warnings, use configuration avoidance api for faster gradle startup

* Fix crash in processResources due to file duplication with the implicit from() block

* Working runClient/runServer

* Use RFG's jar/reobfJar instead of hacks around FG's sometimes reobfed jar

* Fix spotless using the wrong sourcesets

* Fix publishing issues

* Bring back jvm8 compatibility

* Add documentation to `dependencies.gradle`

* Add `compile` config backwards compat with a deprecation notice

* Add AT support

* Add IDEA config

* Add a testCompile backwards compat configuration

* Maven and mixin fixes

* Squash more publishing bugs

* Bump settings.gradle commits

* Switch gradle distribution back to bin

* Add a mod buildscript&gradle updating helper script (temporary, remove before merging)

* Rerun actions

* Add IJ-native run configs, pass javac options

* Switch the default tag injection mechanism to a generated class

* Bump the RFG version

* Inject coremods in intellij-native run configurations

* Update gradle to 8.0-rc-2

* Bump RFG version

* Fix missing toolchain provider in Gradle 8

* Make minimization of shadow jars optional, fix missing runClient->shadowJar dependency

* Update RFG, enable assertions only in the current mod, update gtnhmixins, configure idea projects after all jvm args are set up

fixes <https://github.com/GTNewHorizons/RetroFuturaGradle/issues/1>

* Add a workaround for repackaged CCL not finding mappings

* Remove the silly 1.7.10- prefix to all mod versions, it's stripped in publishing anyway

* wip: Jabel

* Add opt-in Jabel support for Java 17 syntax compiled to Java 8 bytecode

* Point actions to the rfg branch

* Configure the IDEA inspection to ban Java 9+ standard library usage

* Remove inspectionProfiles, they seem to not work after all

* Add optional generic injection settings from RFG

* Move updated spotless configs to `gtnhShared`

* Downgrade gradlew to 7.6 from the RC versions

* Spotless apply with the new settings

* Cleanups before the PR is ready to review

* Bump RFG to fix Windows path escaping in Java code
2023-01-28 21:58:52 +00:00
Raven SzewczykandConnor-Colenso 87e65c226a Use shared github actions workflows (#35)
* Use shared github actions workflows

* Oops, switched the conditions around

Co-authored-by: Connor-Colenso <52056774+Connor-Colenso@users.noreply.github.com>
2022-07-12 21:45:21 +07:00
MuXiu1997 b53871c2cf Update buildscript maintenance workflow (#30) 2022-06-05 18:19:43 +02:00
52bb73b6fd shellcheck (#23)
* shellcheck

* fix(script): shellcheck and refactor

* fix(scripts): rename snake_casing no .sh

Follows Google's Shell Style Guide:
https://google.github.io/styleguide/shellguide.html

Script names must use snake_casing

Remove the `.sh` extension on `chmod +x` scripts because
the shell interpreter choice is in the shebang.

The `.sh` extension is to be maintained for sourced scripts because
those are not stand-alone executables:

```sh
. sourced_script.sh # . sourcing
source sourced_script.sh # alternate syntax
```

* decomp

* Stay CI

Co-authored-by: Léa Gris <lea.gris@noiraude.net>
Co-authored-by: Martin Robertz <dream-master@gmx.net>
2022-02-20 18:02:33 +01:00
bombcar a71130d437 Kotlin (#19)
* spaces

* revert kotlin ver

* more framework for kotlin

* make it available to external consumers

* vscode

* update scripts to properly catch broken runserveR

* editor config

* fix recursive zips

* improve

* update links

* more cleanup
2022-02-14 15:44:40 -06:00
Jason Mitchell 46f0223898 Adds publish to GTNH Maven 2022-01-17 18:39:50 -08:00
Dmytro be36e1399d Merge pull request #51 from SinTh0r4s/setup-publishing-configuration
add publish configuration for github
2021-12-15 20:53:06 +02:00
Telan 2c72a3924d ci: update publishing in release-tags.yml workflow; revert build-and-test.yml 2021-12-13 17:29:40 +02:00
Telan 5af85c307d buildscript: fix artifact id and group id being incorrect 2021-12-13 17:20:27 +02:00
Telan 659ad055d4 buildscript: configure publication with correct parameters 2021-12-13 17:09:06 +02:00
Telan fae84dcbe0 ci: fix typo 2021-12-13 16:41:56 +02:00
Telan 5e3126770e ci: fix typo 2021-12-13 16:37:34 +02:00
Dmytro 2b14550d8f fix test publish 2021-12-13 16:19:11 +02:00
Dmytro 02b223347d ci: provide repository owner and name on publishing 2021-12-13 16:18:23 +02:00
Dmytro 5c23b1d012 ci: use wrapper when publishing tag 2021-12-13 16:10:56 +02:00
Dmytro 1420dfb862 cI: fix test publish 2021-12-13 16:10:34 +02:00
Dmytro 029275a7fc ci: use generic repository name for group 2021-12-13 16:04:02 +02:00
Dmytro 0979732423 ci: test publishing 2021-12-13 16:03:17 +02:00
Dmytro 48b397dc69 add artifact publish step to release process 2021-12-13 16:00:43 +02:00
Dmytro 71fb844748 ci: decrease server run time in test 2021-12-13 15:52:20 +02:00
Dmytro bec70198b8 fix workflow referencing moved file 2021-12-13 15:51:02 +02:00
Dmytro 74d9da327a ci: increase server running period during tests 2021-12-13 15:36:34 +02:00
Dmytro fb3beeb4db ci-persist-server-log-in-test-run 2021-12-13 15:27:18 +02:00
Dmytro af18a3d24e fix timeout in server run 2021-12-01 22:39:15 +02:00
Johann Bernhardt 27d13a6944 Remove toolchain compatibility test since Java 11 support was dropped for now 2021-12-01 20:30:35 +01:00
Dmytro ceb86c4377 removing latest tag
people depending on it will cause more trouble then it's worth
2021-11-27 21:28:30 +03:00
Telan 3d6187a192 ci: also run build and test on main branches; adjust naming 2021-11-21 21:23:52 +02:00
Telan 7a003806b8 Merge branch 'automatic-release-only-on-tags' into ensure-decompilation-tasks-use-toolchain
# Conflicts:
#	.github/workflows/release-packages-tags.yml
2021-11-21 21:22:06 +02:00
Telan 05489dee31 ci: make "latest" releases on each push to master and remove "latest" releases from tags 2021-11-21 21:20:43 +02:00
Telan c46bab50ce ci: fix timeout step failing
We don't want to fail on timeout, it's probably good if job didn't stop before timeout was reached, which means server is still working
2021-11-21 21:09:01 +02:00
Telan 09410d48d0 ci: refine naming 2021-11-21 21:01:07 +02:00
Telan f6d48a2287 ci: fix naming in toolchain-compatibility.yml; rename pull-request.yml -> build-and-test.yml; add server run check to build-and-test.yml 2021-11-21 20:58:13 +02:00
Telan 76dcb6109e Merge branch 'automatic-release-only-on-tags' into ensure-decompilation-tasks-use-toolchain
# Conflicts:
#	.github/workflows/release-packages.yml
2021-11-21 20:56:20 +02:00
Telan 3676bedbb9 ci: fix repo_token and tag expansion 2021-11-21 20:42:00 +02:00
Telan 139c3d8229 ci: fix tag name not being resolved 2021-11-21 20:38:03 +02:00
Telan 25c09c555c ci: rename job 2021-11-21 20:32:24 +02:00
Telan a02e17bc9e ci: refine release structure to work both for example mod and any derivative 2021-11-21 20:29:15 +02:00
Telan 13b5dec6d6 ci: try fixing test-crash-reports.sh permissions 2021-11-21 20:11:43 +02:00
Telan 2c27858ae5 ci: try to only setup CI workspace 2021-11-21 20:11:04 +02:00
Telan a5d5ea510a ci: workaround server crash not resulting in gradle error; add step to check generated crash report 2021-11-21 20:06:39 +02:00
Telan 0fdac33782 ci: configure automatic release only on tags 2021-11-21 19:51:19 +02:00
Telan 86de13e712 ci: add step to test toolchain compatibility with newer java version > 8 2021-11-21 19:44:37 +02:00
Johann Bernhardt e0fea4f4eb Fix typo 2021-11-17 11:35:19 +01:00
Telan 68c6e70f7c ci: only perform build script maintenance on main branches to avoid conflicts
Merge commits will have buildscript changes anyways, and with this active on all branches it will be inconvenient and require pulling things after push, so you won't get in conflict with bot update
2021-11-14 21:41:53 +02:00
Dmytro 0475c12ef3 exclude original license from starter 2021-11-13 21:17:06 +02:00