-
-
Save anonymous/9da75f3c4c50ff69d70b to your computer and use it in GitHub Desktop.
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
buildscript { | |
repositories { | |
mavenCentral() | |
maven { | |
name = "forge" | |
url = "http://files.minecraftforge.net/maven" | |
} | |
} | |
dependencies { | |
classpath 'net.minecraftforge.gradle:ForgeGradle:1.0-SNAPSHOT' | |
} | |
} | |
apply plugin: 'forge' | |
group = "sanandreasp.core.manpack" | |
version = "1.6.4-2.0.0" | |
archivesBaseName = 'SAPManPack' | |
sourceSets { | |
main { | |
java { srcDir 'java' } | |
resources { srcDir 'resources' } | |
} | |
} | |
minecraft{ | |
version = "1.6.4-9.11.1.964" | |
} | |
jar { | |
manifest { | |
attributes 'FMLCorePlugin': 'sanandreasp.core.manpack.ManPackLoadingPlugin' | |
attributes 'FMLCorePluginContainsFMLMod' : 'true' | |
} | |
} | |
task sourceJar(type: Jar) { | |
archiveName = baseName + "-" + version + "-s.jar" | |
from sourceSets.main.allSource | |
appendix = 'src' | |
archiveName = baseName + "-" + version + "-" + appendix + ".jar" | |
} | |
task deobfJar(type: Jar) { | |
from sourceSets.main.output | |
appendix = 'compile' | |
archiveName = baseName + "-" + version + "-" + appendix + ".jar" | |
} | |
repositories { | |
mavenCentral() | |
} | |
artifacts { | |
archives deobfJar | |
archives sourceJar | |
archives jar | |
} | |
processResources { | |
from(sourceSets.main.resources.srcDirs) { | |
include 'mcmod.info' | |
expand 'version':project.version, 'mcversion':project.minecraft.version | |
} | |
from(sourceSets.main.resources.srcDirs) { | |
exclude 'mcmod.info' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment