hafarooki / ExplosionReversal

A lightweight plugin for Minecraft servers which makes blocks destroyed by explosions regenerate.
MIT License
8 stars 7 forks source link

Gradle Build Error #16

Closed rsammelson closed 4 years ago

rsammelson commented 4 years ago

I am attempting to compile to project on Debian, and I get the following build error:

FAILURE: Build failed with an exception.

* Where:
Build file '/home/robby/Documents/Important-Folders/programming/minecraft-plugins/ExplosionRegen/build.gradle' line: 11

* What went wrong:
A problem occurred evaluating root project 'ExplosionRegen'.
> Could not find method content() for arguments [build_3kvmd138cqv17dtnc4y4mmchw$_run_closure1$_closure3$_closure5@48610ed] on object of type org.gradle.api.internal.artifacts.repositories.DefaultMavenArtifactRepository.

I'm using openjdk version 1.8.0_242, and I installed maven with apt.

hafarooki commented 4 years ago

Are you using maven to try to build it? This is a Gradle project, not Maven project

rsammelson commented 4 years ago

The command I used to build it was ./gradlew build

hafarooki commented 4 years ago

give it a try now (git pull first)

rsammelson commented 4 years ago

Okay, now I get:

Could not resolve all dependencies for configuration ':compileClasspath'.
> Could not find org.spigotmc:spigot:1.15.1-R0.1-SNAPSHOT.
  Searched in the following locations:
      https://repo1.maven.org/maven2/org/spigotmc/spigot/1.15.1-R0.1-SNAPSHOT/maven-metadata.xml
      https://repo1.maven.org/maven2/org/spigotmc/spigot/1.15.1-R0.1-SNAPSHOT/spigot-1.15.1-R0.1-SNAPSHOT.pom
      https://repo1.maven.org/maven2/org/spigotmc/spigot/1.15.1-R0.1-SNAPSHOT/spigot-1.15.1-R0.1-SNAPSHOT.jar
      https://hub.spigotmc.org/nexus/content/repositories/snapshots/org/spigotmc/spigot/1.15.1-R0.1-SNAPSHOT/maven-metadata.xml
      https://hub.spigotmc.org/nexus/content/repositories/snapshots/org/spigotmc/spigot/1.15.1-R0.1-SNAPSHOT/spigot-1.15.1-R0.1-SNAPSHOT.pom
      https://hub.spigotmc.org/nexus/content/repositories/snapshots/org/spigotmc/spigot/1.15.1-R0.1-SNAPSHOT/spigot-1.15.1-R0.1-SNAPSHOT.jar
      https://oss.sonatype.org/content/repositories/snapshots/org/spigotmc/spigot/1.15.1-R0.1-SNAPSHOT/maven-metadata.xml
      https://oss.sonatype.org/content/repositories/snapshots/org/spigotmc/spigot/1.15.1-R0.1-SNAPSHOT/spigot-1.15.1-R0.1-SNAPSHOT.pom
      https://oss.sonatype.org/content/repositories/snapshots/org/spigotmc/spigot/1.15.1-R0.1-SNAPSHOT/spigot-1.15.1-R0.1-SNAPSHOT.jar
      file:/home/robby/.m2/repository/org/spigotmc/spigot/1.15.1-R0.1-SNAPSHOT/maven-metadata.xml
      file:/home/robby/.m2/repository/org/spigotmc/spigot/1.15.1-R0.1-SNAPSHOT/spigot-1.15.1-R0.1-SNAPSHOT.pom
      file:/home/robby/.m2/repository/org/spigotmc/spigot/1.15.1-R0.1-SNAPSHOT/spigot-1.15.1-R0.1-SNAPSHOT.jar
  Required by:
      project :
hafarooki commented 4 years ago

now you need to use buildtools to build spigot 1.15.1, which also installs it to your local maven repo

rsammelson commented 4 years ago

Okay, so the problem was that paper was putting the build in the wrong location. Also, is it possible to use 1.15.2 instead? Currently I'm getting: error: package org.bukkit does not exist, as well as similar errors for everything under org.bukkit.

hafarooki commented 4 years ago

Did you use buildtools? Paper won't work for this

On Wed, Apr 1, 2020, 4:43 PM Robby Sammelson notifications@github.com wrote:

Okay, so the problem was that paper was putting the build in the wrong location. Also, is it possible to use 1.15.2 instead? Currently I'm getting: error: package org.bukkit does not exist, as well as similar errors for everything under org.bukkit.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicleBrick%2FExplosionRegen%2Fissues%2F16%23issuecomment-607479901&data=02%7C01%7C%7C3d7156bb20c04fa2602d08d7d67d53a3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637213706098256438&sdata=Ph4qSwaxs7K5HMrJwbuX2M23sDHiK%2BsuM%2BNaQpN02qc%3D&reserved=0, or unsubscribe https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABQHXNJJSWXMMQ5JZA3F3QLRKORO3ANCNFSM4LZJ2OPQ&data=02%7C01%7C%7C3d7156bb20c04fa2602d08d7d67d53a3%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637213706098256438&sdata=j6mQ2ZQejCseyOKJehP5s0Uqge7yJAvtCuHhguacXcM%3D&reserved=0 .

rsammelson commented 4 years ago

Okay, so I should build spigot?

rsammelson commented 4 years ago

I got it to build. Thanks for the help.