diff options
| author | TelepathicGrunt <40846040+TelepathicGrunt@users.noreply.github.com> | 2024-06-16 07:32:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-16 07:32:29 -0400 |
| commit | b457e9ecb266d1b1975601c72c6f8bd810094023 (patch) | |
| tree | ef3e69be878ffe507f0dd7fdae7aceaa262fdd69 /build.gradle | |
| parent | 6b865f6fd0bd171ea2dc280086b93f0a2e289ba6 (diff) | |
Make MDK show info on how to switch to full gradle sources (#65)
* 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
Diffstat (limited to 'build.gradle')
| -rw-r--r-- | build.gradle | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index 4739cad..37d0dbc 100644 --- a/build.gradle +++ b/build.gradle @@ -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 |
