mirror of
https://github.com/GTNewHorizons/NotEnoughCharacters.git
synced 2026-11-25 14:44:21 +00:00
120 lines
2.3 KiB
Groovy
120 lines
2.3 KiB
Groovy
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
jcenter()
|
|
maven {
|
|
name = "github"
|
|
url = "https://github.com/juanmuscaria/maven/raw/master"
|
|
}
|
|
}
|
|
dependencies {
|
|
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-1.4.0-SNAPSHOT'
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
flatDir {
|
|
dirs 'libs'
|
|
}
|
|
}
|
|
|
|
apply plugin: 'forge'
|
|
|
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
|
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
|
|
|
|
version = mod_version
|
|
group = mod_group
|
|
archivesBaseName = mod_archives_name
|
|
|
|
minecraft {
|
|
version = "1.7.10-10.13.4.1614-1.7.10"
|
|
runDir = "eclipse"
|
|
replace "@VERSION@", project.version
|
|
}
|
|
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
name 'chickenbones'
|
|
url 'http://chickenbones.net/maven'
|
|
}
|
|
maven {
|
|
name 'cursemaven'
|
|
url "https://www.cursemaven.com"
|
|
}
|
|
|
|
flatDir {
|
|
dirs 'libs'
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
// configuration that holds jars to include in the jar
|
|
shade
|
|
compile.extendsFrom shade
|
|
}
|
|
|
|
dependencies {
|
|
|
|
compile 'codechicken:NotEnoughItems:1.7.10-2.1.6-GTNH:dev'
|
|
compile 'codechicken:CodeChickenLib:1.7.10-1.1.3.138:dev'
|
|
compile 'codechicken:CodeChickenCore:1.7.10-1.0.7.+:dev'
|
|
compile 'me.towdium:PinIn:1.2.0-all'
|
|
|
|
shade 'me.towdium:PinIn:1.2.0-all'
|
|
|
|
|
|
}
|
|
|
|
processResources {
|
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
include 'mcmod.info'
|
|
expand 'version': project.version,
|
|
'mod_id': mod_id,
|
|
'mod_name': mod_name,
|
|
'mod_author': mod_author,
|
|
'mod_description': mod_description,
|
|
'mc_version': mc_version,
|
|
'mod_credits': mod_credits,
|
|
'mod_version': mod_version
|
|
}
|
|
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
exclude 'mcmod.info'
|
|
}
|
|
}
|
|
|
|
task devJar(type: Jar) {
|
|
classifier = 'dev'
|
|
from sourceSets.main.output
|
|
}
|
|
|
|
task sourcesJar(type: Jar) {
|
|
classifier = 'sources'
|
|
from sourceSets.main.allSource
|
|
}
|
|
|
|
artifacts {
|
|
archives devJar
|
|
archives sourcesJar
|
|
}
|
|
|
|
jar {
|
|
configurations.shade.copyRecursive().setTransitive(false).each { artifact ->
|
|
from(zipTree(artifact)) {
|
|
exclude 'META-INF', 'META-INF/**'
|
|
}
|
|
|
|
manifest.attributes(
|
|
'FMLCorePlugin': 'net.vfyjxf.nechar.core.NechCorePlugin',
|
|
'FMLCorePluginContainsFMLMod': 'true',
|
|
'ForceLoadAsMod': 'true'
|
|
)
|
|
|
|
appendix project.minecraft.version
|
|
}
|
|
|
|
} |