#make gradle or maven file to compile source

54 messages · Page 1 of 1 (latest)

floral laurel
#

i have a minecraft plugin for older minecaft version and the developer abandoned this plugin and i try to update it to new minecraft version .
i decompile the plugin with an online decompiler but i need to know how i can get dependencies of the plugin and make build.gradle or pom.xml file to compile it

static sandalBOT
#

This post has been reserved for your question.

Hey @floral laurel! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

floral laurel
distant venture
#

basically try to compile it, look for errors and then check which dependencies are missing using the error messages

floral laurel
#

i try but i am not java developer and dont know what he say

#

can tell me how to read error and find dependencies pls ?

distant venture
#

Are you sure your repositories section is correct?

#

that doesn't look like a dependency error

#

maybe first get a normal Minecraft project to work and then replace the source code

floral laurel
#

ok

#

i build the project with
apply plugin: 'java'
and its work but when i build it get this error

                if (c == '§') {
                           ^
C:\Users\BKGR\IdeaProjects\MinerRobot\src\main\java\pl\jonspitfire\medorarobots\libs\actionutil\util\UtilMessage.java:29: error: unclosed character literal
                if (c == '§') {
                            ^
C:\Users\BKGR\IdeaProjects\MinerRobot\src\main\java\pl\jonspitfire\medorarobots\libs\actionutil\util\UtilMessage.java:32: error: 'else' without 'if'
                else {
                ^

(its java code error and happen because i decompile it right ? )

#

or i need to import api

distant venture
#

Can you show the whole UtilMessage.java file?

#

and all the errors

floral laurel
floral laurel
#

i add the api but its not work

#

i really dont know what i need to do pls help

distant venture
#

make sure bukkit is added in the build.gradle with tze correct repository

#

(don't use local files)

floral laurel
#

its work thanks, but i have another api and this api dont have github/repo link and i need to download and put it to project manually, how i can do it correctly

static sandalBOT
floral laurel
static sandalBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.

floral laurel
#

hi

distant venture
#

seems like you are missing com.solodevelopment.tokens

floral laurel
#

but how i can fix

distant venture
#

make sure that the correct dependency is added

floral laurel
distant venture
#

What did you add to your build.gradle?

#

and where did you find that you should add exactly that?

floral laurel
distant venture
#

Where did you get the

compile (group: 'com.github.Realizedd', name: 'TokenManager', version: '3.2.4') {
    transitive = false
}

from?

floral laurel
#

yes this is

distant venture
#

So what's the dependency for com.solodevelopment.tokens?

floral laurel
distant venture
#

but ig you would maybe need to first download the JAR and then add it to Gradle

floral laurel
static sandalBOT
# floral laurel thanks

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.

static sandalBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.

floral laurel
#

hi, i import all dependencies to the project but i get loot of error/warn

#

here is a unused import statement and i dont know what is this

#

i import this files to the project but not work

static sandalBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.

floral laurel
#

can help me pls ?