Skip to content

Commit

Permalink
Make MDK show info on how to switch to full gradle sources (#65)
Browse files Browse the repository at this point in the history
* Switch MDK to use full gradle sources

This will significantly improve error reporting in the buildscripts and lead to a better development experience.

* Add wrapper task with comment for how to change it to bin

* Have bin be default with all documentation
  • Loading branch information
TelepathicGrunt authored Jun 16, 2024
1 parent 6b865f6 commit b457e9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ plugins {
id 'net.neoforged.gradle.userdev' version '7.0.142'
}

tasks.named('wrapper', Wrapper).configure {
// Define wrapper values here so as to not have to always do so when updating gradlew.properties.
// Switching this to Wrapper.DistributionType.ALL will download the full gradle sources that comes with
// documentation attached on cursor hover of gradle classes and methods. However, this comes with increased
// file size for Gradle. If you do switch this to ALL, run the Gradle wrapper task twice afterwards.
// (Verify by checking gradle/wrapper/gradle-wrapper.properties to see if distributionUrl now points to `-all`)
distributionType = Wrapper.DistributionType.BIN
}

version = mod_version
group = mod_group_id

Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.

0 comments on commit b457e9e

Please sign in to comment.