diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 361dcb9d9..44349c82c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -141,9 +141,7 @@ jobs: ./gradlew "${gradle_args[@]}" first="$RUNNER_TEMP/basemetals-first" mkdir -p "$first" - cp build/libs/BaseMetals-3.0.1.114041.jar "$first/" - cp build/libs/BaseMetals-3.0.1.114041-sources.jar "$first/" - cp build/libs/BaseMetals-3.0.1.114041-javadoc.jar "$first/" + cp build/libs/*.jar "$first/" cp build/release/SHA256SUMS "$first/" - name: Rebuild and prove byte-identical archives @@ -159,9 +157,9 @@ jobs: -Dorg.gradle.java.installations.auto-download=false ) ./gradlew "${gradle_args[@]}" - cmp "$RUNNER_TEMP/basemetals-first/BaseMetals-3.0.1.114041.jar" build/libs/BaseMetals-3.0.1.114041.jar - cmp "$RUNNER_TEMP/basemetals-first/BaseMetals-3.0.1.114041-sources.jar" build/libs/BaseMetals-3.0.1.114041-sources.jar - cmp "$RUNNER_TEMP/basemetals-first/BaseMetals-3.0.1.114041-javadoc.jar" build/libs/BaseMetals-3.0.1.114041-javadoc.jar + for jar in "$RUNNER_TEMP/basemetals-first/"*.jar; do + cmp "$jar" "build/libs/$(basename "$jar")" + done cmp "$RUNNER_TEMP/basemetals-first/SHA256SUMS" build/release/SHA256SUMS - name: Run exact-OreSpawn dedicated-server probe @@ -178,18 +176,18 @@ jobs: ) timeout 15m ./gradlew "${gradle_args[@]}" + - name: Stage the flat release bundle + run: | + mkdir -p build/release-bundle + cp build/libs/*.jar build/release/SHA256SUMS CHANGELOG.txt build/release-bundle/ + - name: Upload audited release candidate uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 with: name: BaseMetals-1.14.4-${{ github.sha }} if-no-files-found: error retention-days: 30 - path: | - build/libs/BaseMetals-3.0.1.114041.jar - build/libs/BaseMetals-3.0.1.114041-sources.jar - build/libs/BaseMetals-3.0.1.114041-javadoc.jar - build/release/SHA256SUMS - CHANGELOG.txt + path: build/release-bundle/ - name: Upload bounded diagnostics on failure if: failure() diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 4e40f28d4..77843364f 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,5 +1,11 @@ -Base Metals 3.0.1.114041 +Base Metals 3.0.2.114041 for Minecraft 1.14.4 +- Fix bars in every material so straight runs, corners and junctions use the + vanilla connection model without overlapping posts or caps. +- Increase the ore overlay gap to 0.05 pixels to avoid flicker at shallow angles, + keeping the texture inside its sprite. + +Base Metals 3.0.1.114041 for Minecraft 1.14.4 - Bring the finished 1.13.2 port to Minecraft 1.14.4 and Forge 28.2.26. - Keep existing blocks, items, recipes, save identities, High/Low Fantasy settings and material-based recipe discovery. diff --git a/README.md b/README.md index eb9a2ae6e..541f3492c 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ shields, bows, crossbows, arrows, and bolts. The mod also includes Crack Hammers, scythes, metal anvils, the human detector, villager trades, advancements, and extra loot to find in chests. -This is the Minecraft 1.14.4 version, `3.0.1.114041`, continued from the finished +This is the Minecraft 1.14.4 version, `3.0.2.114041`, continued from the finished 1.13.2 port. It keeps the historical `basemetals` block and item IDs, but no longer needs MMDLib or Additional Loot Tables. OreSpawn places the ores, and Base Metals supplies the metals and their recipes. @@ -29,7 +29,7 @@ Armorer, Weaponsmith and Toolsmith professions introduced in Minecraft 1.14. - Java 8 - OreSpawn `[4.1.0.114041,5.0.0)` on both client and server -Put `BaseMetals-3.0.1.114041.jar` and OreSpawn `4.1.0.114041` (or a later +Put `BaseMetals-3.0.2.114041.jar` and OreSpawn `4.1.0.114041` (or a later compatible OreSpawn 4 build for 1.14.4) in the `mods` directory. MMDLib and Additional Loot Tables are not dependencies. Mineralogy is optional. @@ -195,10 +195,18 @@ from CurseMaven. The build checks its exact file ID and SHA-256 before release auditing and packaged tests; no local OreSpawn build is needed. Release artifacts use Maven coordinate -`zone.moddev.mc.basemetals:BaseMetals:3.0.1.114041`. +`zone.moddev.mc.basemetals:BaseMetals:3.0.2.114041`. Report defects through the [Base Metals issue tracker](https://github.com/MinecraftModDevelopmentMods/BaseMetals/issues). Base Metals is licensed under [LGPL-2.1](LICENSE). Bundled or derived third-party art is covered by the accompanying attribution and licence files. + +## Bars and ore overlays + +This version fixes all 26 material bars and increases the ore +overlay spacing to 0.05 pixels. The bars use Minecraft 1.14's own iron-bar +parts for straight runs, corners, ends and junctions. Ore overlays keep their +texture coordinates inside the sprite so the wider spacing does not pull in +neighbouring textures. diff --git a/build.gradle b/build.gradle index 310b25765..b7b6d1cbd 100644 --- a/build.gradle +++ b/build.gradle @@ -289,3 +289,5 @@ apply from: 'gradle/verification/generated-data.gradle' apply from: 'gradle/ide/eclipse.gradle' apply from: 'gradle/ide/intellij.gradle' apply from: 'gradle/verification/packaged-forge.gradle' + +apply from: 'gradle/normalize-javadoc-trees.gradle' diff --git a/docs/MIGRATION.md b/docs/MIGRATION.md index cd2f155e7..481610d7f 100644 --- a/docs/MIGRATION.md +++ b/docs/MIGRATION.md @@ -6,7 +6,7 @@ blocks cannot be reconstructed by Mojang's vanilla fixer alone, so Base Metals installs a narrowly scoped migration hook before Forge reads an old world. Always upgrade a copy and retain the original 1.10/1.12 world. Install Base -Metals `3.0.1.114041`, OreSpawn `4.1.0.114041`, and any other 1.14.4 mods needed +Metals `3.0.2.114041`, OreSpawn `4.1.0.114041`, and any other 1.14.4 mods needed by that world. Do not carry MMDLib, Additional Loot Tables, the OreSpawn 3 plugin, or Base Metals' old fallback generator into the new instance. diff --git a/docs/RELEASING.md b/docs/RELEASING.md new file mode 100644 index 000000000..8998ab098 --- /dev/null +++ b/docs/RELEASING.md @@ -0,0 +1,22 @@ +# Releasing Base Metals for Minecraft 1.14.4 + +Use Java 17.0.1+12 for Gradle, Temurin 8u502-b07 for compilation and Java 25 +for Mavenizer. Run `check build javadoc verifyReleaseArtifacts +writeReleaseChecksums`, then regenerate and verify the Eclipse launches. +Keep packaged gameplay tests local and finish manual testing before delivery. + +Push the fork branch and open a PR to MMD's `master-1.14.4`. Wait for its checks +before merging. Compare all three jars from the merged CI bundle with the +locally qualified files, including their SHA-256 hashes. + +Start the default-branch `deploy-release.yml` dispatcher with the four-part +release version and the CurseForge release level. It derives the target branch +from the version, checks the metadata and prior CI, builds a sealed bundle, +then publishes those same files to MMD Maven, CurseForge and GitHub. Live +publication requires `confirm_live_publication=true`. + +Verify public downloads from all three services against the qualified hashes. +Check CurseForge's Minecraft version, loader and OreSpawn dependency as well. +Keep failed receipts, and retry only failed publishing jobs so an accepted +upload is not sent twice. Once Base Metals is available, update companion +mods to its released version and exact jar hash before publishing them. diff --git a/gradle.properties b/gradle.properties index f3fff463a..c4f6239f8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -39,7 +39,7 @@ mcp_version=20190829.143755 mod_id=basemetals mod_name=Base Metals mod_license=LGPL-2.1 -mod_version=3.0.1.114041 +mod_version=3.0.2.114041 # Maven coordinates and credits. mod_group=zone.moddev.mc.basemetals diff --git a/gradle/normalize-javadoc-trees.gradle b/gradle/normalize-javadoc-trees.gradle new file mode 100644 index 000000000..13238bb28 --- /dev/null +++ b/gradle/normalize-javadoc-trees.gradle @@ -0,0 +1,16 @@ +// Java 8's doclet leaves enum siblings in platform-dependent order. +// Keep the full hierarchy while giving leaf-only sibling lists a stable order. +tasks.withType(Javadoc).configureEach { + inputs.property('javadocTreeOrder', 'lexical leaf siblings 1') + doLast { + fileTree(destinationDir) { include '**/*-tree.html' }.files.each { page -> + String original = page.getText('UTF-8') + String ordered = original.replaceAll( + /(