Improve build time
This commit is contained in:
parent
918cec3cf5
commit
1696e85d1f
3 changed files with 3 additions and 84 deletions
11
.travis.yml
11
.travis.yml
|
@ -3,13 +3,8 @@ notifications:
|
|||
email: false
|
||||
if: tag IS blank
|
||||
|
||||
before_cache:
|
||||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
||||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.gradle/caches/
|
||||
- $HOME/.gradle/wrapper/
|
||||
git:
|
||||
depth: 5
|
||||
|
||||
before_install: chmod +x gradlew
|
||||
install: "./gradlew setupCIWorkspace"
|
||||
|
@ -26,7 +21,7 @@ sudo: false
|
|||
|
||||
before_deploy:
|
||||
- export RELEASE_FILE_LIST=$(ls ./build/libs/* | tr '\n' ', ')
|
||||
- echo "deploying $RELEASE_FILE_LIST to GitHub releases"
|
||||
- echo "Deploying $RELEASE_FILE_LIST to GitHub releases"
|
||||
deploy:
|
||||
skip_cleanup: true
|
||||
provider: releases
|
||||
|
|
59
README.txt
59
README.txt
|
@ -1,59 +0,0 @@
|
|||
-------------------------------------------
|
||||
Source installation information for modders
|
||||
-------------------------------------------
|
||||
This code follows the Minecraft Forge installation methodology. It will apply
|
||||
some small patches to the vanilla MCP source code, giving you and it access
|
||||
to some of the data and functions you need to build a successful mod.
|
||||
|
||||
Note also that the patches are built against "unrenamed" MCP source code (aka
|
||||
srgnames) - this means that you will not be able to read them directly against
|
||||
normal code.
|
||||
|
||||
Source pack installation information:
|
||||
|
||||
Standalone source installation
|
||||
==============================
|
||||
|
||||
Step 1: Open your command-line and browse to the folder where you extracted the zip file.
|
||||
|
||||
Step 2: Once you have a command window up in the folder that the downloaded material was placed, type:
|
||||
|
||||
Windows: "gradlew setupDecompWorkspace"
|
||||
Linux/Mac OS: "./gradlew setupDecompWorkspace"
|
||||
|
||||
Step 3: After all that finished, you're left with a choice.
|
||||
For eclipse, run "gradlew eclipse" (./gradlew eclipse if you are on Mac/Linux)
|
||||
|
||||
If you prefer to use IntelliJ, steps are a little different.
|
||||
1. Open IDEA, and import project.
|
||||
2. Select your build.gradle file and have it import.
|
||||
3. Once it's finished you must close IntelliJ and run the following command:
|
||||
|
||||
"gradlew genIntellijRuns" (./gradlew genIntellijRuns if you are on Mac/Linux)
|
||||
|
||||
Step 4: The final step is to open Eclipse and switch your workspace to /eclipse/ (if you use IDEA, it should automatically start on your project)
|
||||
|
||||
If at any point you are missing libraries in your IDE, or you've run into problems you can run "gradlew --refresh-dependencies" to refresh the local cache. "gradlew clean" to reset everything {this does not effect your code} and then start the processs again.
|
||||
|
||||
Should it still not work,
|
||||
Refer to #ForgeGradle on EsperNet for more information about the gradle environment.
|
||||
|
||||
Tip:
|
||||
If you do not care about seeing Minecraft's source code you can replace "setupDecompWorkspace" with one of the following:
|
||||
"setupDevWorkspace": Will patch, deobfusicated, and gather required assets to run minecraft, but will not generated human readable source code.
|
||||
"setupCIWorkspace": Same as Dev but will not download any assets. This is useful in build servers as it is the fastest because it does the least work.
|
||||
|
||||
Tip:
|
||||
When using Decomp workspace, the Minecraft source code is NOT added to your workspace in a editable way. Minecraft is treated like a normal Library. Sources are there for documentation and research purposes and usually can be accessed under the 'referenced libraries' section of your IDE.
|
||||
|
||||
Forge source installation
|
||||
=========================
|
||||
MinecraftForge ships with this code and installs it as part of the forge
|
||||
installation process, no further action is required on your part.
|
||||
|
||||
LexManos' Install Video
|
||||
=======================
|
||||
https://www.youtube.com/watch?v=8VEdtQLuLO0&feature=youtu.be
|
||||
|
||||
For more details update more often refer to the Forge Forums:
|
||||
http://www.minecraftforge.net/forum/index.php/topic,14048.0.html
|
|
@ -1,17 +0,0 @@
|
|||
package org.dimdev.ddutils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
public final class TypeFilter {
|
||||
public static <T extends U, U> List<T> filter(Collection<U> list, Class<T> filterClass) {
|
||||
List<T> filtered = new ArrayList<>();
|
||||
for (U e : list) {
|
||||
if (filterClass.isAssignableFrom(e.getClass())) {
|
||||
filtered.add(filterClass.cast(e));
|
||||
}
|
||||
}
|
||||
return filtered;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue