minecraft-mod/gradlew.bat

93 lines
2.8 KiB
Batchfile
Raw Normal View History

Fabric Mod Example History first commit update to 0.0.13 update to 48b, new fabric-loader definition use plugins block for fabric-loom add .gitignore update library versions update maven url update build.gradle Update Yarn and Fabric update build.gradle update update build.gradle for 18w50a require fabric api for the example mod Add description to example mod (#2) Bumped version (#4) update Loom, Fabric add sourcesJar important update Update .gitignore for VSCode support (#6) use array initializer value as the default for example Update to 19w02a Update example to 19w03c and increase the memory for gradle. Fix gradle.properties Update example mod to 19w05a Actually use gradle 4.10.2 Somewhere along the line the wrapper version was updated, but not the jar and the script. Update to 19w06a and 0.2.0 fabric use constants for source/target compatibility levels move properties out of the main buildscript encoding fix for special characters add javadoc task and maven-publish plugin update fabric URL fix maven publishing fix indentation automatically set mod version on export remove javadoc jar fix typo 19w12a Update to fixed fabric + yarn update to Loader 0.4.0 Update gradle to 4.10.3 (#9) Update to fabric 0.2.6.121 Update to pre 4 actually update to Loom 0.2.1 Minecraft 1.14, Loom 0.2.2 Update to 1.14.1 and Fabric API 0.3.0 Update Yarn mappings to 1.14.1+build.5 Yarn 1.14.1+build.4 had an issue with Hopper#getWorld being renamed to Hopper#getHopperWorld, which caused the world to crash when ticking hoppers in dev. 1.14.1+build.5 fixed this, but the example mod wasn't updated yet, so anyone following the dev install instructions on the site would run into the issue. Update to 1.14.2 fix requires -> depends in mod JSON Update gradle.properties (#15) version updates 1.14.3 Update API version to fix a bug with crashes. Sadly this bug snuck into previous versions, this has been fixed. 1.14.4 Fix #18 (#19) Update loom + dependencies Update gradle to 5.5.1 Update yarn, loader and api Update yarn, loader and api (#31) Co-authored-by: modmuss50 <modmuss50@gmail.com> 1.15 Increase required loader version 1.15.1 1.15.2 Add minVersion to template mixin config (#41) * Add minVersion to mixin config * Bump loader dep requriement to >=0.7.4 Update gradle, update deps, modCompile -> modImplementation Add Eclipse *.launch files to the gitignore (#37) Update README.md Update loom, gradle and all other deps Update Loom Update Gradle and dependencies 1.16 1.16.1 1.16.2 1.16.3 Update api, loader, loom, gradle Simply processResources logic & make it compatible with future versions of Gradle (#69) * Ignore commonly generated Mac OS junk files This is optional, but it would be a huge quality of life improvement for anyone developing on Mac OS, as the first thing I do when starting a new project is always to add this to the .gitignore. Example: Just from the small changes I've made to the build script alone, I've generated 4 .DS_Store files, which would clutter up this PR if I included them. * Simply processResources logic & make it compatible with future versions of Gradle When the processResources task is currently run, it uses deprecated Gradle features. Running "gradle clean build --warning-mode all" should output a message along the lines of "Copying or archiving duplicate paths with the default duplicates strategy has been deprecated. This is scheduled to be removed in Gradle 7.0.". This is due to inlcuding all files twice, as the "from" blocks includes them for the second time (gradle includes these files by default). This PR simply edits the relevant files from the already selected resources directory. This also reduces the amount of repetition in the script. * Switch to double quotes to match style D'oh! Modernize Gradle buildscript (#71) * Modernize gradle buildscript * Bump yarn/loader/fabric api versions * Add GH actions to build example mod * Update in response to feedback 1.16.4 Fix some IDE's (vsc) not detecting the correct java version to compile for. Update minecraft, gradle, loader and api. Update default maven group Remove jcenter from settings.gradle as jcenter is shutting down. Closes #78 This should have never been here, sadly not a lot I can do about the past. Improve description of repositories blocks (#81) * Update build.gradle * Implements @liach's suggested changes * Update build.gradle Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com> * Update build.gradle Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com> * Update build.gradle * Update build.gradle Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com> Update loom, gradle, yarn, loader and api. Unify inconsitent identation in build.gradle (#90) Update dependencies (#92) Co-authored-by: ByMartrixX <47987888+ByMartrixx@users.noreply.github.com> Update to 21w19a and Java 16 This commit can be used as an example on how to update your mod to Java 16. You will need to ensure you have Java 16 installed and set as the active version to run this. Gradle 7 is required along with loom 0.8 1.17-pre1 1.17 stable Update gradle.properties (#110) Update Fabric versions link (#111) Update Minecraft and Gradle. Update Gradle, Loom, Yarn, Fabric Update fabric API Use Logger instead of println (#126) Update yarn and fabric load/api (#134) * Update yarn and fabric load/api To keep up to date with https://fabricmc.net/versions.html?&version=1.17.1 * Set loader to latest stable version Resolve plugin dependencies from maven central. (#138) Update to Gradle 7.3 and also build on Java 17 Update to loom 0.10 Update Fabric Loader and API Small cleanup 1.18-pre2 Revert compatibilityLevel bump Using JAVA_17 is currently broken with the production server and not necessarily indicated by how Mixin treats this field 1.18 Update deps 1.18.1 Update Fabric Loader to 0.12.10 Update Fabric Loader to 0.12.12 Update fabric latest versions link (#154) The [old page](https://fabricmc.net/versions.html) is missing links to the online javadocs. It tells users to use the [new page](https://fabricmc.net/develop) instead, so we might as well provide the new one here to begin with. Migrate to SLF4J (#157) Update Loom & Gradle (#160) Update API, yarn, minimum loader version and mixin compat level. Update gradle. Update to 1.18.2 Also updates fabric loader. Update MC dep to disallow 1.18.1 since it's usually incompatible Update loader, api & yarn Update loom 1.19 1.19.1 1.19.2 Update Dependencies Update dependencies (#220) Add files the JVM may generate under certain conditions to .gitignore (#159) Update to Gradle 7.6 (#222) 1.19.3 Update to loom 1.1 (#229) Update to Gradle 8 Update deps 1.19.4
2018-11-03 22:22:32 +00:00
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega