-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
226 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,181 @@ | ||
# Builds & binaries | ||
eclipse | ||
run | ||
libs | ||
media | ||
classes | ||
*.bat | ||
builds | ||
sources | ||
|
||
# Created by https://www.gitignore.io/api/gradle,intellij,eclipse,windows,osx,linux | ||
|
||
### Gradle ### | ||
gradle/ | ||
.gradle/ | ||
build/ | ||
gradlew | ||
|
||
# Ignore Gradle GUI config | ||
gradle-app.setting | ||
|
||
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) | ||
!gradle-wrapper.jar | ||
|
||
# Cache of project | ||
.gradletasknamecache | ||
|
||
### Intellij ### | ||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm | ||
|
||
*.iml | ||
|
||
## Directory-based project format: | ||
.idea/ | ||
# if you remove the above rule, at least ignore the following: | ||
|
||
# User-specific stuff: | ||
# .idea/workspace.xml | ||
# .idea/tasks.xml | ||
# .idea/dictionaries | ||
# .idea/shelf | ||
|
||
# Sensitive or high-churn files: | ||
# .idea/dataSources.ids | ||
# .idea/dataSources.xml | ||
# .idea/sqlDataSources.xml | ||
# .idea/dynamic.xml | ||
# .idea/uiDesigner.xml | ||
|
||
# Gradle: | ||
# .idea/gradle.xml | ||
# .idea/libraries | ||
|
||
# Mongo Explorer plugin: | ||
# .idea/mongoSettings.xml | ||
|
||
## File-based project format: | ||
*.ipr | ||
*.iws | ||
|
||
## Plugin-specific files: | ||
|
||
# IntelliJ | ||
/out/ | ||
|
||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# Crashlytics plugin (for Android Studio and IntelliJ) | ||
com_crashlytics_export_strings.xml | ||
crashlytics.properties | ||
crashlytics-build.properties | ||
fabric.properties | ||
|
||
|
||
### Eclipse ### | ||
*.pydevproject | ||
.metadata | ||
bin/ | ||
target/ | ||
lib/ | ||
launcher/ | ||
.gradle/ | ||
*.zip | ||
*.jar | ||
tmp/ | ||
*.tmp | ||
*.bak | ||
*.swp | ||
*~.nib | ||
local.properties | ||
.settings/ | ||
.loadpath | ||
|
||
# Misc mod files | ||
media/ | ||
libs/ | ||
# Eclipse Core | ||
.project | ||
|
||
# Tmp files | ||
*~ | ||
*# | ||
# External tool builders | ||
.externalToolBuilders/ | ||
|
||
# Locally stored "Eclipse launch configurations" | ||
*.launch | ||
|
||
# IDEs | ||
# CDT-specific | ||
.cproject | ||
|
||
# JDT-specific (Eclipse Java Development Tools) | ||
.classpath | ||
.project | ||
.settings | ||
.pydevproject | ||
|
||
# MCP Files | ||
docs/ | ||
conf/ | ||
eclipse/ | ||
jars/ | ||
logs/ | ||
runtime/ | ||
temp/ | ||
reobf/ | ||
CHANGELOG | ||
LICENSE.txt | ||
*.bat | ||
*.sh | ||
|
||
# Misc | ||
*.rej | ||
# Java annotation processor (APT) | ||
.factorypath | ||
|
||
# PDT-specific | ||
.buildpath | ||
|
||
# sbteclipse plugin | ||
.target | ||
|
||
# TeXlipse plugin | ||
.texlipse | ||
|
||
# STS (Spring Tool Suite) | ||
.springBeans | ||
|
||
|
||
### Windows ### | ||
# Windows image file caches | ||
Thumbs.db | ||
ehthumbs.db | ||
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Windows Installer files | ||
*.cab | ||
*.msi | ||
*.msm | ||
*.msp | ||
|
||
# Windows shortcuts | ||
*.lnk | ||
|
||
|
||
### OSX ### | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
|
||
### Linux ### | ||
*~ | ||
|
||
# temporary files which can be created if a process still has a handle open of a deleted file | ||
.fuse_hidden* | ||
|
||
# KDE directory preferences | ||
.directory | ||
|
||
# Linux trash folder which might appear on any partition or disk | ||
.Trash-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,51 @@ | ||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
maven { | ||
name = "forge" | ||
url = "http://files.minecraftforge.net/maven" | ||
} | ||
maven { | ||
name = "sonatype" | ||
url = "https://oss.sonatype.org/content/repositories/snapshots/" | ||
} | ||
} | ||
dependencies { | ||
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT' | ||
} | ||
repositories { | ||
jcenter() | ||
maven { | ||
name = "forge" | ||
url = "http://files.minecraftforge.net/maven" | ||
} | ||
} | ||
dependencies { | ||
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT' | ||
} | ||
} | ||
|
||
apply plugin: 'forge' | ||
apply plugin: 'net.minecraftforge.gradle.forge' | ||
|
||
minecraft { | ||
version = "1.8-11.14.1.1334" | ||
mappings = "snapshot_20141130" | ||
version = "1.9.4-12.17.0.1962" | ||
mappings = "snapshot_20160518" | ||
runDir = "run" | ||
|
||
replace "\${version}", project.version | ||
replaceIn "ModInfo.java" | ||
} | ||
|
||
group = project.projectDir.name.toLowerCase() | ||
archivesBaseName = project.projectDir.name + "-mc" + project.minecraft.version | ||
|
||
sourceSets.main{ | ||
java { | ||
srcDirs 'java', 'apis' | ||
} | ||
resources { | ||
srcDirs 'resources' | ||
} | ||
} | ||
sourceSets.main.java.srcDirs += 'java' | ||
sourceSets.main.resources.srcDirs += 'resources' | ||
|
||
// variable substitution in java files | ||
task processSourceMainJava(type:Copy) { | ||
inputs.property "vars", project.version + project.minecraft.version | ||
from('java') | ||
{ | ||
include '**/ModInfo.java' | ||
include '**/package-info.java' | ||
expand 'version':project.version, 'mcversion':project.minecraft.version | ||
} | ||
into project.buildDir.getPath()+"/sources/java" | ||
processResources { | ||
inputs.property "vars", project.version + project.minecraft.version | ||
from(sourceSets.main.resources.srcDirs) { | ||
include '**/*.info' | ||
expand 'version':project.version, 'mcversion':project.minecraft.version | ||
} | ||
from(sourceSets.main.resources.srcDirs) { | ||
exclude '**/*.info' | ||
} | ||
} | ||
|
||
// correct task ordering | ||
afterEvaluate { project -> | ||
sourceMainJava.finalizedBy(processSourceMainJava) | ||
repositories { | ||
ivy { | ||
name "PlayerAPI" | ||
artifactPattern "http://addons-origin.cursecdn.com/files/2318/180/[module]-[revision].[ext]" | ||
} | ||
} | ||
|
||
processResources | ||
{ | ||
inputs.property "vars", project.version + project.minecraft.version | ||
from(sourceSets.main.resources.srcDirs) { | ||
include '**/*.info' | ||
expand 'version':project.version, 'mcversion':project.minecraft.version | ||
} | ||
from(sourceSets.main.resources.srcDirs) { | ||
exclude '**/*.info' | ||
} | ||
dependencies { | ||
deobfCompile group: 'playerapi', name: 'PlayerAPI', version: '1.9.4-1.0', ext: 'jar' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.