Finally works! Shadowed Jankson
parent
73bee53ee7
commit
3d38f7eb9d
52
build.gradle
52
build.gradle
|
@ -19,19 +19,14 @@ archivesBaseName = 'textile_backup[FORGE]'
|
||||||
|
|
||||||
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
|
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
|
||||||
|
|
||||||
|
configurations {
|
||||||
|
shade
|
||||||
|
compile.extendsFrom shade
|
||||||
|
}
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
// The mappings can be changed at any time, and must be in the following format.
|
|
||||||
// snapshot_YYYYMMDD Snapshot are built nightly.
|
|
||||||
// stable_# Stables are built at the discretion of the MCP team.
|
|
||||||
// Use non-default mappings at your own risk. they may not always work.
|
|
||||||
// Simply re-run your setup task after changing the mappings to update your workspace.
|
|
||||||
mappings channel: 'snapshot', version: '20190719-1.14.3'
|
mappings channel: 'snapshot', version: '20190719-1.14.3'
|
||||||
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
|
|
||||||
|
|
||||||
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
|
|
||||||
|
|
||||||
// Default run configurations.
|
|
||||||
// These can be tweaked, removed, or duplicated as needed.
|
|
||||||
runs {
|
runs {
|
||||||
client {
|
client {
|
||||||
workingDirectory project.file('run')
|
workingDirectory project.file('run')
|
||||||
|
@ -85,32 +80,15 @@ minecraft {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
|
|
||||||
// that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
|
|
||||||
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
|
|
||||||
minecraft 'net.minecraftforge:forge:1.14.4-28.2.0'
|
minecraft 'net.minecraftforge:forge:1.14.4-28.2.0'
|
||||||
|
|
||||||
compile "blue.endless:jankson:1.2.0"
|
compile "blue.endless:jankson:1.2.0"
|
||||||
|
shade "blue.endless:jankson:1.2.0"
|
||||||
// You may put jars on which you depend on in ./libs or you may define them like so..
|
|
||||||
// compile "some.group:artifact:version:classifier"
|
|
||||||
// compile "some.group:artifact:version"
|
|
||||||
|
|
||||||
// Real examples
|
|
||||||
// compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
|
|
||||||
// compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
|
|
||||||
|
|
||||||
// The 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
|
|
||||||
// provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
|
|
||||||
|
|
||||||
// These dependencies get remapped to your current MCP mappings
|
|
||||||
// deobf 'com.mod-buildcraft:buildcraft:6.0.8:dev'
|
|
||||||
|
|
||||||
// For more info...
|
|
||||||
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
|
|
||||||
// http://www.gradle.org/docs/current/userguide/dependency_management.html
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Example for how to get properties into the manifest for reading by the runtime..
|
// Example for how to get properties into the manifest for reading by the runtime..
|
||||||
|
@ -126,12 +104,14 @@ jar {
|
||||||
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
|
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configurations.shade.each { dep ->
|
||||||
|
from(project.zipTree(dep)){
|
||||||
|
exclude 'META-INF', 'META-INF/**'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Example configuration to allow publishing using the maven-publish task
|
|
||||||
// we define a custom artifact that is sourced from the reobfJar output task
|
|
||||||
// and then declare that to be published
|
|
||||||
// Note you'll need to add a repository here
|
|
||||||
def reobfFile = file("$buildDir/reobfJar/output.jar")
|
def reobfFile = file("$buildDir/reobfJar/output.jar")
|
||||||
def reobfArtifact = artifacts.add('default', reobfFile) {
|
def reobfArtifact = artifacts.add('default', reobfFile) {
|
||||||
type 'jar'
|
type 'jar'
|
||||||
|
|
|
@ -50,7 +50,7 @@ public class BackupHelper {
|
||||||
Utilities.log("Saving server...", ctx);
|
Utilities.log("Saving server...", ctx);
|
||||||
|
|
||||||
if(save)
|
if(save)
|
||||||
server.save(true, false, false);
|
server.save(false, true, false);
|
||||||
|
|
||||||
Thread thread = new Thread(new MakeBackupThread(server, ctx, comment));
|
Thread thread = new Thread(new MakeBackupThread(server, ctx, comment));
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ issueTrackerURL="https://github.com/Szum123321/textile_backup/issues" #optional
|
||||||
modId="textile_backup" #mandatory
|
modId="textile_backup" #mandatory
|
||||||
version="[Forge]1.1.1-1.14.4" #mandatory
|
version="[Forge]1.1.1-1.14.4" #mandatory
|
||||||
displayName="Textile Backup" #mandatory
|
displayName="Textile Backup" #mandatory
|
||||||
updateJSONURL="http://myurl.me/" #optional
|
updateJSONURL="https://github.com/Szum123321/textile_backup/blob/Forge-1.14.4/update.json" #optional
|
||||||
displayURL="https://www.curseforge.com/minecraft/mc-mods/textile-backup" #optional
|
displayURL="https://www.curseforge.com/minecraft/mc-mods/textile-backup" #optional
|
||||||
logoFile="textile_backup.png" #optional
|
logoFile="textile_backup.png" #optional
|
||||||
credits="Made on request of one of curseforge users" #optional
|
credits="Made on request of one of curseforge users" #optional
|
||||||
|
|
Loading…
Reference in New Issue