Skip to content

Commit

Permalink
Cleaned up building (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
T145 committed Jun 3, 2019
1 parent bb405ec commit f5b6ef3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
15 changes: 4 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@ import de.undercouch.gradle.tasks.download.Download
import com.palantir.gradle.gitversion.VersionDetails

buildscript {
repositories {
jcenter()
maven {
name = 'MinecraftForge Repo'
url = 'http://files.minecraftforge.net/maven'
}
}

dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
Expand Down Expand Up @@ -42,11 +34,12 @@ repositories {
version = "${gitVersion()}+mc${project.minecraft_version}"
group = mod_group
archivesBaseName = mod_name
def forge = "${project.minecraft_version}-${project.forge_version}"

final String FORGE = "${project.minecraft_version}-${project.forge_version}"

minecraft {
runDir = 'run'
version = forge
version = FORGE
mappings = forge_mapping
makeObfSourceJar = false

Expand All @@ -70,7 +63,7 @@ jar {
task setupEclipseWorkspace(type: Download, dependsOn: setupDecompWorkspace) {
File forgeArchive = project.file('forge.zip')

src 'http://files.minecraftforge.net/maven/net/minecraftforge/forge/' + forge + '/forge-' + forge + '-mdk.zip'
src "http://files.minecraftforge.net/maven/net/minecraftforge/forge/${FORGE}/forge-${FORGE}-mdk.zip"
dest forgeArchive

doLast {
Expand Down
14 changes: 14 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
jcenter()

maven {
name = 'MinecraftForge'
url = 'http://files.minecraftforge.net/maven'
}
}
}

rootProject.name = 'metalchests'

0 comments on commit f5b6ef3

Please sign in to comment.