Is there a working Claim Ore?

Now I get that error :confused:
C:\Users\Jonas\Documents\GriefDefender-master>gradlew build

FAILURE: Build failed with an exception.

  • Where:
    Build file ‘C:\Users\Jonas\Documents\GriefDefender-master\bukkit\build.gradle’ line: 32

  • What went wrong:
    A problem occurred evaluating project ‘:bukkit’.

Cannot run program “git”: CreateProcess error=2, Das System kann die angegebene Datei nicht finden

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 17s

Ah. It wants the program git installed. Git downloads the source code properly. In this case its wanting Bukkits source code (will probably want Sponges too).

https://git-scm.com/downloads

When installing make sure that PATH is ticked

Well I think now that Sponge is missing?

C:\Users\Jonas\Documents\GriefDefender-master>gradlew build

Configure project :sponge
This mapping ‘snapshot_20180808’ was designed for MC 1.12! Use at your own peril.
WARNING: You are using an unsupported version of ForgeGradle.
Please consider upgrading to ForgeGradle 4 and helping in the efforts to get old versions working on the modern toolchain.
See [ForgeGradle] Updating the old toolchains; a why, how, and where. · GitHub for more info on contributing.
Found AccessTransformer: griefdefender_at.cfg

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ‘:bukkit:compileJava’.

Could not resolve all task dependencies for configuration ‘:bukkit:compileClasspath’.
Could not resolve project :GriefDefenderAPI.
Required by:
project :bukkit
Unable to find a matching configuration of project :GriefDefenderAPI:
- None of the consumable configurations have attributes.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
See Command-Line Interface

BUILD FAILED in 25s

Your missing the Grief Defender API. If you download it and extract it inside the grief defender source code that should work.

It should come out as a folder

Ah the folder was empty… I donwloaded, rerun and now…

C:\Users\Jonas\Documents\GriefDefender-master>gradlew build

Configure project :sponge
This mapping ‘snapshot_20180808’ was designed for MC 1.12! Use at your own peril.
WARNING: You are using an unsupported version of ForgeGradle.
Please consider upgrading to ForgeGradle 4 and helping in the efforts to get old versions working on the modern toolchain.
See [ForgeGradle] Updating the old toolchains; a why, how, and where. · GitHub for more info on contributing.
Found AccessTransformer: griefdefender_at.cfg

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ‘:bukkit:compileJava’.

Could not resolve all task dependencies for configuration ‘:bukkit:compileClasspath’.
Could not resolve project :GriefDefenderAPI.
Required by:
project :bukkit
Unable to find a matching configuration of project :GriefDefenderAPI:
- None of the consumable configurations have attributes.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
See Command-Line Interface

BUILD FAILED in 25s

C:\Users\Jonas\Documents\GriefDefender-master>gradlew build

Configure project :sponge
This mapping ‘snapshot_20180808’ was designed for MC 1.12! Use at your own peril.
WARNING: You are using an unsupported version of ForgeGradle.
Please consider upgrading to ForgeGradle 4 and helping in the efforts to get old versions working on the modern toolchain.
See [ForgeGradle] Updating the old toolchains; a why, how, and where. · GitHub for more info on contributing.
Found AccessTransformer: griefdefender_at.cfg

Task :bukkit:compileJava
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:34: error: package me.mrCookieSlime.Slimefun.Objects.SlimefunItem does not exist
import me.mrCookieSlime.Slimefun.Objects.SlimefunItem.SlimefunItem;
^
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:35: error: package me.mrCookieSlime.Slimefun.api does not exist
import me.mrCookieSlime.Slimefun.api.BlockStorage;
^
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:36: error: package me.mrCookieSlime.Slimefun.api.inventory does not exist
import me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset;
^
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:53: error: cannot find symbol
final SlimefunItem slimefunItem = SlimefunItem.getByItem(stack);
^
symbol: class SlimefunItem
location: class SlimefunProvider
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:53: error: cannot find symbol
final SlimefunItem slimefunItem = SlimefunItem.getByItem(stack);
^
symbol: variable SlimefunItem
location: class SlimefunProvider
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:75: error: cannot find symbol
final SlimefunItem slimefunBlock = BlockStorage.check(block);
^
symbol: class SlimefunItem
location: class SlimefunProvider
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:75: error: cannot find symbol
final SlimefunItem slimefunBlock = BlockStorage.check(block);
^
symbol: variable BlockStorage
location: class SlimefunProvider
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:93: error: cannot find symbol
final SlimefunItem slimefunItem = SlimefunItem.getByItem(stack);
^
symbol: class SlimefunItem
location: class SlimefunProvider
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:93: error: cannot find symbol
final SlimefunItem slimefunItem = SlimefunItem.getByItem(stack);
^
symbol: variable SlimefunItem
location: class SlimefunProvider
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:102: error: cannot find symbol
final SlimefunItem slimefunItem = BlockStorage.check(block);
^
symbol: class SlimefunItem
location: class SlimefunProvider
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:102: error: cannot find symbol
final SlimefunItem slimefunItem = BlockStorage.check(block);
^
symbol: variable BlockStorage
location: class SlimefunProvider
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:104: error: cannot find symbol
return BlockMenuPreset.isInventory(slimefunItem.getId());
^
symbol: variable BlockMenuPreset
location: class SlimefunProvider
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
12 errors

Task :bukkit:compileJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:bukkit:compileJava’.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
See Command-Line Interface

BUILD FAILED in 2m 31s
5 actionable tasks: 5 executed

If you run the gradle build command inside the grief defender api it should fix that issue (assuming nothing goes wrong)

well when I do that in the API folder it works, but create that the plugin? cause when I try after the building part in the API folder, the normal folder it crash again :confused:

What the error in the normal one?

C:\Users\Jonas\Documents\GriefDefender-master>gradlew build
Starting a Gradle Daemon, 3 incompatible and 1 stopped Daemons could not be reused, use --status for details

Configure project :sponge
This mapping ‘snapshot_20180808’ was designed for MC 1.12! Use at your own peril.
WARNING: You are using an unsupported version of ForgeGradle.
Please consider upgrading to ForgeGradle 4 and helping in the efforts to get old versions working on the modern toolchain.
See [ForgeGradle] Updating the old toolchains; a why, how, and where. · GitHub for more info on contributing.
#################################################
ForgeGradle 2.3.2-unknown
GitHub - MinecraftForge/ForgeGradle: Minecraft mod development framework used by Forge and FML for the gradle build system
#################################################
Powered by MCP
http://modcoderpack.com
by: Searge, ProfMobius, R4wk, ZeuX
Fesh0r, IngisKahn, bspkrs, LexManos
#################################################
Found AccessTransformer: griefdefender_at.cfg

Task :bukkit:compileJava
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:34: error: package me.mrCookieSlime.Slimefun.Objects.SlimefunItem does not exist
import me.mrCookieSlime.Slimefun.Objects.SlimefunItem.SlimefunItem;
^
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:35: error: package me.mrCookieSlime.Slimefun.api does not exist
import me.mrCookieSlime.Slimefun.api.BlockStorage;
^
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:36: error: package me.mrCookieSlime.Slimefun.api.inventory does not exist
import me.mrCookieSlime.Slimefun.api.inventory.BlockMenuPreset;
^
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:53: error: cannot find symbol
final SlimefunItem slimefunItem = SlimefunItem.getByItem(stack);
^
symbol: class SlimefunItem
location: class SlimefunProvider
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:53: error: cannot find symbol
final SlimefunItem slimefunItem = SlimefunItem.getByItem(stack);
^
symbol: variable SlimefunItem
location: class SlimefunProvider
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:75: error: cannot find symbol
final SlimefunItem slimefunBlock = BlockStorage.check(block);
^
symbol: class SlimefunItem
location: class SlimefunProvider
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:75: error: cannot find symbol
final SlimefunItem slimefunBlock = BlockStorage.check(block);
^
symbol: variable BlockStorage
location: class SlimefunProvider
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:93: error: cannot find symbol
final SlimefunItem slimefunItem = SlimefunItem.getByItem(stack);
^
symbol: class SlimefunItem
location: class SlimefunProvider
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:93: error: cannot find symbol
final SlimefunItem slimefunItem = SlimefunItem.getByItem(stack);
^
symbol: variable SlimefunItem
location: class SlimefunProvider
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:102: error: cannot find symbol
final SlimefunItem slimefunItem = BlockStorage.check(block);
^
symbol: class SlimefunItem
location: class SlimefunProvider
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:102: error: cannot find symbol
final SlimefunItem slimefunItem = BlockStorage.check(block);
^
symbol: variable BlockStorage
location: class SlimefunProvider
C:\Users\Jonas\Documents\GriefDefender-master\bukkit\src\main\java\com\griefdefender\provider\SlimefunProvider.java:104: error: cannot find symbol
return BlockMenuPreset.isInventory(slimefunItem.getId());
^
symbol: variable BlockMenuPreset
location: class SlimefunProvider
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
12 errors

Task :bukkit:compileJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:bukkit:compileJava’.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
See Command-Line Interface

BUILD FAILED in 26s
5 actionable tasks: 2 executed, 3 up-to-date

thats the Error when I do the Command back again in the Normal Griefmaster Folder and not inn the API folder

I decided to try and build it myself. Found that some of the gradle files arnt right.

So I decided to fix them and send you the details :slight_smile:

The easiest thing to do is delete the “bukkit” folder in the grief defender folder (stops it building Bukkit (which is the error you reported).

Next up. The file of “build.gradle” within the “Sponge”, open that file with something like “Notepad” (All windows computers have it) and replace the text with this text. After that it worked for me.

The plugin file is in “/sponge/build/libs/”

    repositories {
        maven {
            name = 'forge'
            url = 'http://files.minecraftforge.net/maven'
        }
        maven {
            url = 'https://plugins.gradle.org/m2/'
        }
    }

    dependencies {
        classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
        classpath 'com.github.jengelman.gradle.plugins:shadow:5.1.0'
    }
}

plugins {
    id 'com.github.johnrengelman.shadow' version '5.1.0'
    id 'org.spongepowered.plugin' version '0.8.1'
    id 'net.minecrell.vanillagradle.server' version '2.2-4'
    id 'java'
}

compileJava.options.encoding = 'UTF-8'

group = 'com.griefdefender'

sponge {
    plugin {
        id = "griefdefender"
        meta {
            name = "GriefDefender"
            version = "$version"
            description = "Designed to defend servers from all forms of grief."
            url = "$url"
            authors = ["bloodmc"]
        }
    }
}


// Environment variables for the build set by the build server
ext.buildNumber = System.env.BUILD_NUMBER ?: '0'

defaultTasks 'clean', 'build'

sourceCompatibility = '1.8'
targetCompatibility = '1.8'

archivesBaseName = 'griefdefender'

project.ext.getGitHash = {
    def command = Runtime.getRuntime().exec("git rev-parse --short HEAD")
    def result = command.waitFor()
    return (result == 0) ? command.inputStream.text.trim() : "nogit"
}

repositories {
    mavenLocal()
    maven {
        name = 'sk89q'
        url = 'https://maven.sk89q.com/repo'
    }
    maven {
        name = 'bstats'
        url = 'https://repo.codemc.org/repository/maven-public'
    }
    maven {
        name = 'dynmap-repo'
        url = 'http://repo.mikeprimm.com'
    }
    maven {
        name = 'sponge'
        url = 'https://repo.spongepowered.org/maven/'
    }
    maven {
        name = 'nucleus'
        url = 'http://repo.drnaylor.co.uk/artifactory/list/minecraft'
    }
    maven {
        name = 'sonatype_releases'
        url = 'https://oss.sonatype.org/content/repositories/releases'
    }
    maven {
        name = 'sonatype_snapshots'
        url = 'https://oss.sonatype.org/content/repositories/snapshots'
    }
    maven {
        name = 'glare'
        url = 'https://repo.glaremasters.me/repository/bloodshot'
    }
    maven {
        name = 'aikar'
        url = 'https://repo.aikar.co/content/groups/aikar'
    }
    maven {
        name = 'worldedit'
        url = 'http://maven.sk89q.com/artifactory/repo'
    }
    maven {
        name = 'jitpack'
        url = 'https://jitpack.io'
    }
	
}

minecraft {
    version = project.minecraftVersion
    mappings = project.mcpMappings
}

sourceSets {
    api
}

dependencies {
    compileOnly(project(path: ":GriefDefenderAPI"))
    compileOnly fileTree(dir: 'libs', include: ['*.jar'])
    compile project (':common')
    compileOnly "com.griefdefender:adapter-sponge:$adapterSpongeVersion"
    compileOnly "com.griefdefender:reflect-helper:1.0"
    // Sponge
    //apiCompile "org.spongepowered:spongeapi:$apiVersion"

    compileOnly ("org.spongepowered:spongecommon:$commonVersion:dev") {
        exclude module: 'testplugins'
    }
    // Plugins
    compileOnly ("io.github.nucleuspowered:nucleus-api:1.14.1-S7.1"){
        exclude module: 'spongeapi'
    }
    compileOnly "com.github.ronaldburns:PlaceholderAPI:4.5.1"
    compileOnly "com.github.bloodmc:mcclans-api:develop-SNAPSHOT"
    compileOnly "com.sk89q.worldedit:worldedit-core:6.1.4-SNAPSHOT"
    compileOnly "com.github.lucko:luckperms:v5.2"
    compileOnly "us.dynmap:dynmap-api:3.0-SNAPSHOT"

    // required for bootstrap
    compile "com.googlecode.json-simple:json-simple:1.1.1"
    compileOnly "aopalliance:aopalliance:1.0"
    compileOnly "co.aikar:acf-core:0.5.0-SNAPSHOT"
    compileOnly "co.aikar:acf-sponge:0.5.0-SNAPSHOT"
    compileOnly "co.aikar:locales:1.0-SNAPSHOT"
    compileOnly "co.aikar:minecraft-timings:1.0.4"
    compileOnly "co.aikar:Table:1.0.0-SNAPSHOT"
    compileOnly "com.flowpowered:flow-math:1.0.3"
    compileOnly "com.github.ben-manes.caffeine:caffeine:2.7.0"
    compileOnly "com.squareup.okhttp3:okhttp:4.7.2"
    compileOnly "com.squareup.okio:okio:2.6.0"
    compileOnly "commons-io:commons-io:2.6"
    compileOnly "it.unimi.dsi:fastutil:8.2.3"
    compileOnly "javax.inject:javax.inject:1"
    compileOnly "me.lucko:jar-relocator:1.3"
    compileOnly "net.jodah:expiringmap:0.5.9"
    compileOnly "org.apache.commons:commons-lang3:3.9"
    compileOnly "org.checkerframework:checker:2.8.2"
    compileOnly "org.jetbrains:annotations:17.0.0"
    compileOnly "org.jetbrains.kotlin:kotlin-stdlib:1.3.72"
    compileOnly "org.ow2.asm:asm-debug-all:5.2"
    compileOnly "org.spongepowered:configurate-core:3.7.2"
    compileOnly "org.spongepowered:configurate-gson:3.7.2"
    compileOnly "org.spongepowered:configurate-hocon:3.7.2"
    compileOnly "org.spongepowered:configurate-yaml:3.7.2"
    compileOnly "net.kyori:event-api:3.0.0"
    compileOnly "net.kyori:event-method:3.0.0"
    compileOnly "net.kyori:event-method-asm:3.0.0"
    compileOnly "net.kyori:text-adapter-bukkit:3.0.3"
    compileOnly "net.kyori:text-adapter-bungeecord:3.0.3"
    compileOnly "net.kyori:text-adapter-spongeapi:3.0.3"
    compileOnly "net.kyori:text-api:3.0.2"
    compileOnly "net.kyori:text-serializer-gson:3.0.2"
    compileOnly "net.kyori:text-serializer-legacy:3.0.2"
    compileOnly "net.kyori:text-serializer-plain:3.0.2"
}

jar {
    manifest.attributes('FMLAT': 'griefdefender_at.cfg')
    manifest.attributes('Implementation-Title': 'GriefDefender')
    manifest.attributes('Implementation-Version': "$version")
    manifest.attributes('Git-Hash': project.ext.getGitHash())
    classifier = 'SNAPSHOT'
    baseName = 'griefdefender-sponge'
}

if (JavaVersion.current().isJava8Compatible()) {
    tasks.withType(Javadoc) {
        options.addStringOption('Xdoclint:none', '-quiet')
    }
}

task javadocJar(type: Jar, dependsOn: javadoc) {
    classifier = 'javadoc'
    from javadoc.destinationDir
}

artifacts {
    archives shadowJar
}

shadowJar {
    mainSpec.sourcePaths.clear()
    dependsOn reobfJar

    classifier = ''

    dependencies {
        include dependency(':common')
        //include dependency("com.squareup.okhttp3:okhttp:3.9.1")
        //include dependency("com.squareup.okio:okio:1.13.0")
        //include dependency("org.jetbrains.kotlin:kotlin-stdlib:1.3.31")
        include dependency("com.googlecode.json-simple:json-simple:1.1.1")
    }

    relocate("aopalliance", "com.griefdefender.lib.aopalliance")
    relocate("com.github.benmanes.caffeine", "com.griefdefender.lib.caffeine")
    relocate("it.unimi.dsi", "com.griefdefender.lib.fastutil")
    relocate("net.jodah", "com.griefdefender.lib.jodah")
    relocate("okhttp3", "com.griefdefender.lib.okhttp3")
    relocate("okio", "com.griefdefender.lib.okio")
    relocate("kotlin", "com.griefdefender.lib.kotlin")
    relocate("org.apache.commons.io", "com.griefdefender.lib.commonsio")
    relocate("org.apache.commons.lang3", "com.griefdefender.lib.commonslang3")
    relocate("org.checkerframework", "com.griefdefender.lib.checkerframework")


    exclude "dummyThing"
    afterEvaluate {
        from zipTree(reobfJar.jar)
    }
}

Well I think it worked ;D Thank you soo much for helping me :smiley: I´ll test if the Server can handle the Plugin tomoorow, cuase I havent the Time now to test it out, but I have the Plugin jar and loaded into the Mod Folder of my Server. I saw in the Console that the Plugin is shopwn up, so I´ll test everything Tommorow ;D
But Thank you sooooo much for helping me ^^ <3

Edit: The Plugin works perfect ;D Thank you sooo much, now I have to study how the Commands and Permissions works ^^

1 Like