mirror of
https://github.com/GTNewHorizons/Baubles-Expanded.git
synced 2026-11-22 04:52:28 +00:00
- change save filenames back to using username instead of UUID to prevent issues in offline mode. - saves will break if you change your username, but it is the lesser of two evils imo and easy enough to fix by hand
70 lines
1.4 KiB
Groovy
70 lines
1.4 KiB
Groovy
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'
|
|
}
|
|
}
|
|
|
|
apply plugin: 'forge'
|
|
|
|
version = "1.7.10-1.0.1.8"
|
|
group= "com.azanor.baubles"
|
|
archivesBaseName = "Baubles"
|
|
|
|
minecraft {
|
|
version = "1.7.10-10.13.0.1177"
|
|
assetDir = "eclipse/assets"
|
|
}
|
|
|
|
processResources
|
|
{
|
|
// replace stuff in mcmod.info, nothing else
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
include 'mcmod.info'
|
|
|
|
// replace version and mcversion
|
|
expand 'version':project.version, 'mcversion':project.minecraft.version
|
|
}
|
|
|
|
// copy everything else, thats not the mcmod.info
|
|
from(sourceSets.main.resources.srcDirs) {
|
|
exclude 'mcmod.info'
|
|
}
|
|
|
|
}
|
|
|
|
// Create deobf dev jars
|
|
task deobfJar(type: Jar) {
|
|
from(sourceSets.main.output) {
|
|
appendix = 'deobf'
|
|
}
|
|
}
|
|
|
|
// Create API library zip
|
|
task apiZip(type: Zip) {
|
|
from(sourceSets.main.java) {
|
|
include "baubles/api/**"
|
|
}
|
|
classifier = 'api'
|
|
}
|
|
|
|
apiZip.mustRunAfter deobfJar
|
|
|
|
|
|
artifacts {
|
|
archives deobfJar
|
|
archives apiZip
|
|
}
|
|
|
|
|