Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ Gradle [lockfiles](https://docs.gradle.org/current/userguide/dependency_locking.
to specific version numbers. Lockfiles can be updated using the `--write-locks` flag. This may need to be paired with a
build target such as `gradle build --write-locks` so that all dependencies are resolved.

### Tests
Hexchanting uses the Minecraft gametests system. These tests are run as part of the
standard gradle `build` target. They can also be run by the `runGameTest` target and the
`runClientGameTest` target. The latter is useful for debugging tests as you can trigger
specific tests with the in-game `/test run` command.

>>>>>>> conflict 1 of 1 ends
### Reproducibility
The [org.gradlex.reproducible-builds](https://gradlex.org/reproducible-builds/) plugin is used to set defaults for
Gradle's builtin tasks that aid reproducibility. Non-reproducible builds are considered low priority bugs. However,
Expand Down
12 changes: 11 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ dependencies {
// lock dependencies
dependencyLocking {
lockAllConfigurations()
lockMode = LockMode.STRICT
lockMode = LockMode.LENIENT
}

// lock plugins
Expand All @@ -89,6 +89,16 @@ buildscript {
}
}

fabricApi {
configureTests {
createSourceSet = true
modId = "${project.name}-test"
enableGameTests = true
enableClientGameTests = true
eula = true // Agree to the Minecraft EULA.
}
}

tasks.processResources {
inputs.property("version", project.version)
filesMatching("fabric.mod.json") {
Expand Down
716 changes: 358 additions & 358 deletions gradle.lockfile

Large diffs are not rendered by default.

Loading
Loading