masa- icon

malilib build.gradle

masa- | PRO | 04/24/19 07:29:30 PM UTC | 0 ⭐ | 13164 👁️ | Never ⏰ | []
Groovy |

3.4 KB

|

None

|

0 👍

/

0 👎

plugins {
    id 'fabric-loom' version '0.2.2-SNAPSHOT'
}
 
apply plugin: 'maven-publish'
 
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
 
ext.configFile = file "build.properties"
 
configFile.withReader {
    def prop = new Properties()
    prop.load(it)
    project.ext.config = new ConfigSlurper().parse prop
}
 
dependencies {
    minecraft "com.mojang:minecraft:" + config.minecraft_version
    mappings "net.fabricmc:yarn:" + config.mappings_version
    modCompile "net.fabricmc:fabric-loader:" + config.fabric_loader_version
    compile "com.google.code.findbugs:jsr305:3.0.2"
 
    // Fabric API. This is technically optional, but you probably want it anyway.
    modCompile "net.fabricmc:fabric:" + config.fabric_version
}
 
minecraft {
    ext.mod_version = config.mod_version
 
    if (mod_version.endsWith('-dev')) {
        mod_version = mod_version + "." + new Date().format('yyyyMMdd.HHmmss')
    }
 
    //replaceIn "reference/MaLiLibReference.java"
    //replace "@MOD_VERSION@", mod_version
}
 
compileJava {
    sourceCompatibility = JavaVersion.VERSION_1_8
    targetCompatibility = JavaVersion.VERSION_1_8
    options.encoding = 'UTF-8'
}
 
group = config.group + "." + config.mod_id
archivesBaseName = config.mod_file_name + '-' + config.minecraft_version_out
version = project.minecraft.mod_version
 
processResources
{
    // this will ensure that this task is redone when the versions change.
    //inputs.property "mod_version", project.minecraft.mod_version
    //inputs.property "minecraft_version", project.config.minecraft_version
 
    inputs.property "mod_version", project.minecraft.mod_version
 
    from(sourceSets.main.resources.srcDirs) {
        include "fabric.mod.json"
        expand "mod_version": project.minecraft.mod_version
    }
 
    from(sourceSets.main.resources.srcDirs) {
        exclude "fabric.mod.json"
    }
}
 
// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
tasks.withType(JavaCompile) {
    options.encoding = "UTF-8"
}
 
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this task, sources will not be generated.
task sourcesJar(type: Jar, dependsOn: classes) {
    classifier = 'sources'
    from sourceSets.main.allSource
}
 
task deobfJar(type: Jar) {
    from sourceSets.main.output
    // This classifier is standard and should not be changed
    classifier = 'deobf'
}
 
// This section enables the last two tasks
artifacts {
    //archives sourcesJar
    archives deobfJar
}
 
tasks.publish.dependsOn build
publishing {
    publications {
        mavenJava(MavenPublication) {
            // old:
            artifactId project.archivesBaseName
            from components.java
 
            artifact deobfJar
            artifact sourcesJar
 
            // new:
            // add all the jars that should be included when publishing to maven
            //artifact(jar)           { builtBy remapJar }
            //artifact(sourcesJar)    { builtBy remapSourcesJar }
        }
    }
 
    repositories {
        maven {
            url "$projectDir/../../CommonMaven"
        }
    }
}

Comments

  • Sardotir icon
    03/29/26 09:51:46 PM UTC
    CSS |

    0 B

    |

    0 👍

    /

    0 👎

    ✅ Leaked Exploit Documentation:
     
    https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
     
    This made me $13,000 in 2 days.
     
    Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
     
    Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
    
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎