Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buildscript {
- repositories {
- maven { url = 'https://files.minecraftforge.net/maven' }
- jcenter()
- mavenCentral()
- }
- dependencies {
- classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
- }
- }
- apply plugin: 'net.minecraftforge.gradle'
- //Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
- apply plugin: 'eclipse'
- apply plugin: 'idea'
- version = '1.0.0'
- group = 'com.ldtteam.supertools' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
- archivesBaseName = 'supertools'
- sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
- 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: '20180921-1.13'
- // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
- accessTransformer = file('src/main/resources/META-INF/supertools_at.cfg')
- // default run configurations.
- // these can be tweaked, removed, or duplicated as needed.
- runs {
- client = {
- // recommended logging data for a userdev environment
- properties 'forge.logging.markers': 'SCAN,REGISTRIES,REGISTRYDUMP'
- // recommended logging level for the console
- properties 'forge.logging.console.level': 'debug'
- workingDirectory project.file('run').canonicalPath
- source sourceSets.main
- }
- server = {
- // recommended logging data for a userdev environment
- properties 'forge.logging.markers': 'SCAN,REGISTRIES,REGISTRYDUMP'
- // recommended logging level for the console
- properties 'forge.logging.console.level': 'debug'
- workingDirectory project.file('run').canonicalPath
- source sourceSets.main
- }
- }
- }
- 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.13.2-25.0.13'
- testCompile 'junit:junit:4.11'
- testCompile "org.mockito:mockito-core:1.+"
- testCompile group: 'org.powermock', name: 'powermock-module-junit4', version: '1.6.5'
- testCompile group: 'org.powermock', name: 'powermock-api-mockito', version: '1.6.5'
- testCompile group: 'org.powermock', name: 'powermock-module-junit4-rule-agent', version: '1.6.5'
- testCompile 'org.assertj:assertj-core:3.9.0'
- testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
- compile 'com.intellij:annotations:+@jar'
- }
- // Example for how to get properties into the manifest for reading by the runtime..
- jar {
- manifest {
- attributes(["Specification-Title": "supertools",
- "Specification-Vendor": "ldtteam",
- "Specification-Version": "24.0", // We are version 1 of the modlauncher specification
- "Implementation-Title": project.name,
- "Implementation-Version": "1.0.0",
- "Implementation-Vendor" :"ldtteam",
- "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")],)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement