#build-tooling-help

1 messages Β· Page 12 of 1

cinder ember
brave widgetBOT
agile skiff
#

i assume you already tried re running it?

cinder ember
#

Yes

#

Re-ran like 20+ times

#

On 4 different projects

agile skiff
#

will try building it myself. 1 sec

cinder ember
#

ty

#

Its not about compiling its when intellij tries to import project.

agile skiff
#

i mean yeah but its still a paperweight error from the task applying the patches

cinder ember
#

yup

agile skiff
#

builds successfully for me. is that a fresh clone?

#

also make sure the project is not in a onedrive synced folder (or any other syncing application)

cinder ember
#

one-drive might be the imposter.

#

But i had one on my desktop too

cinder ember
cinder ember
#

oh

#

i will clone it again

agile skiff
#

also try running ./gradlew cleanAllPaperweightUserdevCaches

cinder ember
#

o okay!

#

alr lemme test on fresh clone

#

java.lang.UnsupportedClassVersionError: io/papermc/paperweight/userdev/PaperweightUser has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

#

i am 21 fym

distant mango
#

you're not

#

you're on java 8

cinder ember
distant mango
#

gradle is using java 8

cinder ember
#

oh ffs

#

I will delete java 8

distant mango
#

heck your build file and the gradle settings

#

in your ide

cinder ember
#
> Could not resolve all files for configuration ':paperweightDevelopmentBundle'.
   > Cannot resolve external dependency io.papermc.paper:dev-bundle:1.21-R0.1-SNAPSHOT because no repositories are defined.
     Required by:
         project :

distant mango
#

full message

cinder ember
#

thats the full msg

#

* What went wrong:
A problem occurred configuring root project 'paperweight-test-plugin'.
> Could not resolve all files for configuration ':paperweightDevelopmentBundle'.
   > Cannot resolve external dependency io.papermc.paper:dev-bundle:1.21-R0.1-SNAPSHOT because no repositories are defined.
     Required by:
         project :

* 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.
#

i think its still my java version lemme c

#

idk any more

#

i give up

verbal skiff
# cinder ember

Settings > Build, Execution, Deployment > Build Tools > Gradle

#

you need to set the jdk to project sdk

cinder ember
#

:O lemme try

verbal skiff
#

should fix the java version error at least

#

if it still doesn't work you'll need to send your buildscript

cinder ember
#

does this look good

#

welp

brave widgetBOT
cinder ember
brave widgetBOT
verbal skiff
cinder ember
#

21? 😳

verbal skiff
#

yes

#

just set it to project sdk

cinder ember
#

still same error

verbal skiff
#

can you send the whole error

#

there should be another message

cinder ember
#

welp...

#

the problem was

#
repositories {
  maven("https://repo.papermc.io/repository/maven-public/")
}
#

i did not have that

verbal skiff
#

yeah.....

cinder ember
#

my god..

#

Tho it was not on paper's github either

crude kernel
cinder ember
#

i did not read docs but ig problems is fixed now

#

:)

#

idk wy the clone from github did not work

green bison
#

Anyone have a clue?

lament scarab
#

you update the ref and then apply patches

#

bonus points is apply patches, rebuild without filtering (forgot the command thingy), and then update the ref and apply patches

#

outside of some caveats, you generally just fall into a typical git rebase flow, in which part, we're not here to teach git

#

most other flows are generally a level of just gaining experience with the tooling and figuring out small tricks, i.e. not applying all the patches in one go

faint iris
turbid moon
#

You have to do:
paperweight.paperDevBundle '1.21-R0.1-SNAPSHOT'

faint iris
#

Uh yeah I'm not sure if that works on groovy

turbid moon
#

in the dependencies

turbid moon
#

Or switch to kotlin :^)

strange stirrup
#

gr**vy

turbid moon
#

otherwise, you can safely get rid of the papermc maven repository, as that is included in the userdev plugin

faint iris
#

Still erroring out

turbid moon
#

What is the error just btw?

faint iris
#

Good ol' org.gradle.internal.operations.BuildOperationInvocationException: Failed to apply dev bundle patches. See the log file at ...

turbid moon
#

Can you send the whole thing xd?

brave widgetBOT
turbid moon
#

Honestly, that sounds like you need to manually clear your cache

faint iris
#

Pretty sure I did like twice

#

It was nagging about lock files so I'm not too sure

turbid moon
#

@distant mango stop whatever you are currently doing and help this guy

#

you are better qualified than me

distant mango
#

no

lament scarab
#

you'd need to ensure that you run paperweight on those projects with the expected version of java in order to appease the decompile output

#

(and then you'll need to manually delete the userdev folder with that busted state from the gradle home user folder)

faint iris
#

Hm

#

I'm running it with coretto-21

lament scarab
#

well, the decompiler borked itself

#

so, idk

faint iris
#

Cool, seems like deleting everything paper related from my gradle caches folder works

last spade
#

Anyone able to tell what's going wrong? I can't figure out what the actual issue is

# ./gradlew applyPatches

> Configure project :
paperweight-patcher v1.7.1 (running on 'Windows 11')

> Configure project :paper
paperweight-core v1.7.1 (running on 'Windows 11')

> Task :paper:patchSpigotApi FAILED
> Task :getPaperUpstreamData FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':paper:patchSpigotApi'.
> io.papermc.paperweight.PaperweightException: Command finished with 128 exit code: git -c commit.gpgsign=false -c core.safecrlf=false fetch upstream --prune
static urchin
#

try with -Dpaperweight.debug=true

last spade
#

Something like this you mean? ./gradlew -Dpaperweight.debug=true applyPatches

#

Alright

static urchin
#

Yea

last spade
#
$ (pwd) C:\Users\vertig0\Downloads\WitherCraft\.gradle\caches\paperweight\upstreams\paper\work\Spigot\Spigot-API
$ git -c commit.gpgsign=false -c core.safecrlf=false fetch upstream --prune
fatal: '/C:/Users/vertig0/Downloads/WitherCraft/.gradle/caches/paperweight/upstreams/paper/work/Bukkit/' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
#

Something's going wrong inside work/Bukkit apparently

static urchin
#

I mean, yank the .gradle folder I guess

last spade
#

Will delete .gradle and retry

#

Didn't help

static urchin
#

can you paste the whole output of applyPatches after yanking the .gradle folder

echo kilnBOT
#

Please send large files/logs to a pastebin

last spade
#

hold on

static urchin
#

hm, lemme try to replicate πŸ‘

#

the git thing there being a file is correct

#

but idk why it is failing

last spade
#

Yea, forgot that it was a submodule

last spade
static urchin
#

you have extended the path limit on windows yea?

#

just as a sanity check

last spade
#

You mean the NTFS long paths thing?

#

I dunno what to call it lmao, the option was Enable NTFS long paths last I remember

static urchin
#

Yea

#

LONG_PATHS or something

#

idk, have not been on a windows machine in forever

last spade
#

Apparently swapping which installation of Git being used solved the issue

#

weird shit

static urchin
#

KEKW windows moment

steady latch
distant mango
#

see pins

#

also why are you supporting those versions

#

doesn't make sense to support 1.19 and 1.19.1

steady latch
#
val serverVer = "1.19"

dependencies {
    paperweight.paperDevBundle("$serverVer-R0.1-SNAPSHOT")
    pluginRemapper("net.fabricmc:tiny-remapper:0.10.3:fat")
}

java {
    toolchain {
        languageVersion = JavaLanguageVersion.of(17)
    }
}

this gives me same error. Some maps are only available on 1.19.2

#

cleaned cache it's now working, thanks.

noble plover
#

lombok gives an error when compiling. Does anyone know what it could be? I added the annotation processor etc in gradle
compileOnly("org.projectlombok:lombok:1.18.34")
annotationProcessor("org.projectlombok:lombok:1.18.34") It doesn't recognize getters etc because it doesn't recognize lombok

echo kilnBOT
#

Please send large files/logs to a pastebin

static urchin
#

provide the output of ./gradlew build

noble plover
#

a moment

candid flax
#

If you're using IntelliJ, make sure 'Enable annotation processing' is enabled in File | Settings | Build, Execution, Deployment | Compiler | Annotation Processors

noble plover
#

i enable on everthing categories

static urchin
#

the project isn't on github or something is it?

#

can you share your build.gradle.kts too

echo kilnBOT
#

Please send large files/logs to a pastebin

static urchin
#

oh, did not see it there NODDERS

noble plover
#

I've been doing this for 6 hours, man, how disgusting

static urchin
#

Yea, suffering with compiler hacks is rough

noble plover
#

delombok test doesn't even work and I'm not going to try the delombok

static urchin
#

(sanity check, you did attempt to yank the .gradle folder ye?)

static urchin
#

πŸ‘

noble plover
#

nope

#

no fix

static urchin
#

then I am sadly out of ideas.

noble plover
static urchin
#

nothing that I know of

noble plover
#

and I didn't even touch anything

#

i ll restart the pc

#

nothing that a good restart can't solve

noble plover
#

FUCK U L OMBOK

#

where is gpt 6 at these times

strange stirrup
#

fuck lombok πŸ‘

noble plover
cinder ember
#

What files do I need to edit to integrate bstats into my paper fork?

bronze ember
#

The metrics class

rapid fractal
#

Sir this is build tool help not google

distant mango
#

it’s actually build-tooling-help

glass sable
#

is there a way to convert a groovy gradle file to kotlin automatically?

bronze ember
#

Copilot, lol

glass sable
#

xD

#

lets see if chatgpt can do that πŸ‘€

bronze ember
#

Don't you qualify for copilot?

#

Chatgpt for code is really hit or miss

glass sable
#

it's easier for me to use ChatGPT in intellij. Copilot doesn't auto modify files

bronze ember
#

How do you get chatgpt to modify files?

glass sable
#

with the Codebuddy addon

bronze ember
#

Interesting

glass sable
#

or plugin or however IJ calls that

#

you can chat with it then it analyzes the responses and auto creates a diff

#

and you can have different models e.g. Claude or the free chatgpr 4 omni mini

#

(but I wish the copilot chat could do that too :S)

strange stirrup
#

I’ve used copilot to convert files to different languages, it’s generally okay

#

often needs to manual cleanup but does most of the tedious stuff

glass sable
#

how do I get variables inside a buildscript block from outside it? xD

strange stirrup
#

umm

#

u dont

#

whats the context

glass sable
#

parsing dependency versions from a json file (which might be queried from an external server beforehand)

#

kinda wish this groovy script worked, I just want to build something xD

strange stirrup
#

that does seem kinda cursed, might think of something if I see a snipit tho

verbal skiff
#

what you are trying to do sounds extremely cursed

strange stirrup
#

I thinnnkkkk u can set the version catalog via code

#

but this is really cursed

#

is there a reason u need an external server fetch to figure out dependencies! :’)

#

hmm

#

u could generate a bom

#

well no that’ll only help if the dependencies stay the same and only versions change

#

ye idk this is cursed asf

verbal skiff
#

why not just a literal version catalog, but published

#

this is supported

strange stirrup
#

not sure how you’d set that up to be dynamic like he wants though, unless I’m missing something w catalogs

smoky violet
#

the version catalog as a snapshot dependency or using .+

#

beyond that you would need custom logic

warm tiger
#

So I've having an issue getting paperweight to work, I've added the dependency:

paperweight.paperDevBundle("1.20.4-R0.1-SNAPSHOT")

and everything in my IDE works fine, but when I build to the server it keeps giving me a NoSuchMethodError:

java.lang.NoSuchMethodError: 'net.minecraft.server.level.ServerPlayer org.bukkit.craftbukkit.v1_20_R3.entity.CraftPlayer.getHandle()'

I can't figure out what is the proper way to build using paperweight, what tasks are supposed to be ran, or even what mappings Paper uses.

proud maple
#

you're supposed to use the reobfJar task to build your plugin on 1.20.4 or below, adding that makes it run the task automatically when using build

warm tiger
#

Yep I found that about an hour ago, that fixed it.

#

Thank you πŸ˜„

last spade
#

I'm guessing this is due to the fact that I'm rebasing on 1.21 but the paperweight-examples repository is still on 1.20, how should I modify the Build changes patch to get it to apply?

Patch failed at 0001 Build changes
error: invalid object 100644 39303bb4e336732db0ab19dee0c1f8b609bbb134 for 'src/main/java/net/minecraft/server/MinecraftServer.java'
glass sable
strange stirrup
bronze ember
#

That's so cursed

glass sable
#

yeah

bronze ember
#

Just throw that shit out and hardcode the versions

#

They only do that so they don't have to update all examples all the time

#

I don't think they expect anybody to use that pattern in actual games

glass sable
#

yeah I figured you wouldn't do it like that in a production environment xD

strange stirrup
#

they did it it like 9 years ago i'll give them a pass i guess :')

untold quarry
strange stirrup
#

are you just trying to build regular paper latest or old versino or have you made changes?

untold quarry
#

i'm trying to build the regular latest paper without any changes

#

i'm literally just cloning the repo and doing applyPatches and it gives me that error πŸ€·β€β™‚οΈ

#

searched on stackoverflow but they say to do git am --abort or git am --continue or git am --skip but..

glass sable
#

have you tried deleting the project and checking it out again yet?

untold quarry
#

4 times now

#

even restarted the PC to make sure :))

glass sable
#

have you tried it on linux/in WSL yet?

untold quarry
#

it should have worked at least on one of those

#

even in IntelliJ, but it's a git terminal anyway

glass sable
#

which git version are you using?

strange stirrup
#

yeah do git --version

untold quarry
strange stirrup
#

working for me on linux fresh clone, could try making sure you're on j21 and not 22 or something

#

is there a reason you want to manually build it btw?

glass sable
#

that's 1 newer than the one mine just worked for me on Windows 10

#

so unlikely they broke something in a patch release lol

strange stirrup
#

im on 2.45.2 but linux, would be surprised if git broke somethin tho

glass sable
#

*than the onet aht just worked for me

untold quarry
glass sable
#

might want to try updating that (although I would be surprised if that has anything to do with it)

strange stirrup
#

yeah idk, might have to wait for someone smarter than me

untold quarry
strange stirrup
#

had a look thru people asking about this before and didn't see anything too notable, just people with fs issues

glass sable
#

could just be some Windows 11 weirdness too... don't they do something special with the system partition? I remember there being some stuff with that in the past

bronze ember
#

Why don't you run this natively?

#

That mingw stuff is strange

glass sable
#

they said they tried in powershell too

bronze ember
#

Failed patches mostly are caused by different java versions

#

Have you tried looking why the patch actually fails?

strange stirrup
#

mingw64 is just what git bash says

#

but idk, windows moment likely πŸ˜‹

untold quarry
bronze ember
strange stirrup
#

it says the command to run

#

in the error

#

git am ---whatever

untold quarry
untold quarry
bronze ember
#

So open the log utils file and look at the patch for the changes to the file and compare which lines look different, causing the patch to fail

#

You are in the wrong folder if you wanna do those commands

untold quarry
bronze ember
#

Needs to be ran from the server dir

strange stirrup
#

git am --show-current-patch=diff

#

and ye

#

what mini said

untold quarry
bronze ember
untold quarry
#

but why? xDDD

#

this wasn't an edit by me xd

bronze ember
#

...

#

As I said, you need to look at the file it's complaining about and then at the patch and see why it's complaining, i.e. which lines don't match

#

I can't help you if you have no git experience

untold quarry
#

but it's an fresh git clone

#

there wasn't an edit at all??

#

why there is a file complain if it's paper's repo directly?

glass sable
#

something most likely modified something on download/after downloading

#

e.g. an antivirus, firewall or even windows syncing itself

bronze ember
#

Or you decompiled with a wrong jdk, have line ending or encoding problems, etc

#

It's impossible to say without seeing the actual issue that git is complaining about

untold quarry
distant mango
#

have you tried WSL

strange stirrup
#

yeah tbh, it should work on windows but if you're going to be actively working with the server you're going to have a way better time on wsl

#

patching on windows is quite slow

strange stirrup
#

what is this one time change you want to make to paper

untold quarry
#

implement zstd on chunk saving

#

it's like 10 lines of code

untold quarry
#

same issue looks like

strange stirrup
#

no they're trying to make a fork

untold quarry
last spade
#

Oh yeah similar issue

#

Looks like it at least, the patch files need manual fixing in my case to work

#

but I, well, don't know how Paper fixes their patches whenever they need to rebase it on top of a newer Minecraft version

bronze ember
bronze ember
last spade
last spade
#

Maybe I can bug @static urchin to upgrade paperweight-examples to 1.21, heh

bronze ember
#

We hand apply the patch and rebuild it

lament scarab
#

it's done by hand, for the most part, apply, rebuild without filtering, update the ref, apply patches and merge

#

outside of that, it's pretty much just basic git

#

(though, the examples repo is so small, caring that you can get into the 3way is pointless, just update the refs, apply, and fix it manually like any other git merge)

lament scarab
#

apatch go brr lol

untold quarry
#

yeah, nothing works to get it to applyPatches

#

updated git, updated java, disabled anti-virus..

#

but I've found out, after doing applyPatches and fail, the git am --abort command works

#

who needs patches? 🀣

#

and to make sure it's not me, 1.20.6 works

untold quarry
#

without doing absolutely nothing other than passing the --scan argument, it works

#

🀯

strange stirrup
#

erm

#

sure

untold quarry
#

I've tested again

#

without the --scan argument, the build fails

#

πŸ€”

#

Importing 0 classes from library sources... why?

lament scarab
#

try a shorter folder path, I guess

untold quarry
#

with --scan, works

#

anyway, it's fixed now, i've also added zstd, so everything's good

lament scarab
#

missing library source patches is sus

#

but, MahiruShrug

#

I can't really diagnose what is going sideways for you

untold quarry
strange stirrup
#

err

#

i dont think thats really what its saying

untold quarry
#

Yeah, I don't even understand that graph

strange stirrup
#

maybe build scan making the build slow fixed it, who can say

#

pretty sure that graph is just showing you how gradle builds work in general, and then the extra step it does to upload the data for the scan

untold quarry
#

πŸ€·β€β™‚οΈ

strange stirrup
#

yeah gg now i know how many cores you have

#

its over

untold quarry
#

oh no, I doxxed myself

#

xd

strange stirrup
#

:P

#

haven't looked but i dont think there's anything dangerous in scans to leak

lament scarab
#

a build scan really ain't going to reveal much here

#

a patch failed to apply, the question is why

#

as said, one would need to look at the source file and the patch file and see why it went sideways

untold quarry
#

maybe deleting the .m2 folder might fix it?

lament scarab
#

nothing to do with .m2

#

We suggested looking into this some time ago

#

I'm not really willing to aid with pulling it apart right now

untold quarry
#

well, i'll trying investigating myself

#

for now, I've found out that a java process remains open after the build fails

#

@lament scarabfind out why. It's an issue in gradle 8.8! I've updated to 8.9 and it works now without the --scan command

#

sorry for ping πŸ™‚

bronze ember
last spade
#

@static urchin Thanks for upgrading to 1.21! Much appreciated :)

untold quarry
#

anyway, version 8.9 fixed the issue

harsh bough
#

Since updating to Java 21 and 1.20.6 when I try to use shadowJar I keep getting Unsupported class file major version 65

#

does anyone know how to fix that?

distant mango
#

use gooolers fork

#

goooler/shadow on github

harsh bough
#

Thanks

last spade
#

What in tarnation

> Task :WitherCraft-Server:compileJava
C:\Users\vertig0\Downloads\WitherCraft\WitherCraft-Server\src\main\java\io\papermc\paper\configuration\mapping\InnerClassFieldDiscoverer.java:17: error: '.' expected
import InstanceFactory;
                      ^
C:\Users\vertig0\Downloads\WitherCraft\WitherCraft-Server\src\main\java\io\papermc\paper\pluginremap\InsertManifestAttribute.java:3: error: '.' expected
import ManifestEntry;
                    ^
C:\Users\vertig0\Downloads\WitherCraft\WitherCraft-Server\src\main\java\net\minecraft\network\chat\PlayerChatMessage.java:3: error: '.' expected
import Signature;
                ^
C:\Users\vertig0\Downloads\WitherCraft\WitherCraft-Server\src\main\java\net\neoforged\art\internal\RenamerImpl.java:22: error: '.' expected
import SortedClassProvider;
                          ^
4 errors

#

./gradlew createMojmapBundlerJar ^^^

#

Bruh I just wanna play Minecraft why does it have to pull this shit

strange stirrup
#

erm

grave compass
#

Hey, why could I be getting this?

plugins {
    id("io.papermc.paperweight.userdev") version "1.7.1"
}

repositories {
    mavenCentral()
    gradlePluginPortal()
    maven {
        url = "https://repo.papermc.io/repository/maven-public/"
    }
    maven {
        name = "spigotmc-repo"
        url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/"
    }
    maven {
        name = "sonatype"
        url = "https://oss.sonatype.org/content/groups/public/"
    }
    maven {
        url = "https://oss.sonatype.org/content/repositories/snapshots"
    }
    maven {
        url = "https://oss.sonatype.org/content/repositories/central"
    }
    mavenLocal()
}

dependencies {
    paperweightDevelopmentBundle('io.papermc.paper:dev-bundle:1.20.4-R0.1-SNAPSHOT')

    compileOnly "org.spigotmc:spigot-api:1.19.4-R0.1-SNAPSHOT"
    //compileOnly "org.spigotmc:spigot:1.20.4-R0.1-SNAPSHOT"

    compileOnly fileTree(dir: '../libsAPI', include: ['*.jar'])
}
strange stirrup
paper kestrel
grave compass
grave compass
echo kilnBOT
paper kestrel
#

paperweight.paperDevBundle("1.21-R0.1-SNAPSHOT")

#

otherwise iirc, group and artifact id are specified as params rather than colon format iirc

grave compass
#

(both are java 17)

#

(just for some reason this one won't work)

paper kestrel
#

Did you see this?

sleek imp
#

Hey Guys! I'm trying to run a grade build and am getting this error message:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':compileJava'.

> Could not resolve all dependencies for configuration ':compileClasspath'.

> There was a failure while executing work items

> A failure occurred while executing io.papermc.paperweight.tasks.GenerateMappings$GenerateMappingsAction

> Unable to resolve class data binding for 'jdk/jfr/Event' which is listed as the super class for 'net/minecraft/util/profiling/jfr/event/NetworkSummaryEvent'

On my first build it crashed before any error messages but since then its just thrown these errors. Anybody experienced this before or know where I could get some help? πŸ™‚

strange stirrup
#

could you upload your build.gradle(.kts)

echo kilnBOT
#

Please send large files/logs to a pastebin

distant mango
#

what jdk are you using

sleek imp
#

lastest version

distant mango
#

can you screenshot ./gradlew β€”version

#

iirc may be one -

distant mango
#

does it also happen when building with terminal

strange stirrup
#

make sure you're on the latest paperweight

#

i believe it should be 1.7.1

sleek imp
#

In the libs.versions.toml

strange stirrup
#

i don't see any obvious issues, couple things i dont see often like where you're using the base task, setting the source set for resources manually

#

but that shouldn't matter

#

and i'd imagine this error is before any of that matters

#

you could try deleting the cache ~/.gradle/caches/paperweight-userdev

sleek imp
#

I've deleted my .gradle folder before running a couple times, I don't get a caches folder. Just these:

strange stirrup
#

ah sorry, it's in your home folder

#

believe its the same in windows

#

so like, one folder up from where documents are your user folder

#

should be in there but you'll have to enable show hidden files or whatever

#

i also see that you're setting the jvm toolchain to 17 in kotlin, i dont think that'll overwrite java toolchain but you should change that to 21

#

might wanna throw in

java {
  toolchain.languageVersion = JavaLanguageVersion.of(21)
}

too

sleek imp
#

Just trying it again now - caches was locked by the openjdk thingy (presumably been there since VS Code crashed on first run)

#

So i couldn't delete that folder

#

Will let you know how this build goes

#

Yeah thats not solved it unfortunately, same error message as before

strange stirrup
#

weird, did you add the toolchain stuff i talked about? might want to try providing the string yourself for the dev bundle version incase the libs is returning somethin weiwrd

sleek imp
#

I ran it again, and its worked just fine - guess it hadnt updated based on those changes. Appears to be working now perfectly. Thankyou so much, you are an absolute champion

strange stirrup
#

no problem!

#

glad its working now (:

covert oak
#

hey, uhhh im wondering if its at all possible to port the 1.20.5 predicate system to an older version with a plugin. i wanna know if its possible before i start the project. anyone have a clue if this is possible (or if its been done? i havent seen anything online but you never know)

covert oak
#

in datapacks

strange stirrup
#

i mean, maybe, whats the xy where though?

#

you'd probably have to fork paper and it'd be complex, not sure if everything possible in .5 datapacks would even have conversoins back to older mc

covert oak
#

mmmmm

#

ok

covert oak
strange stirrup
#

why are yuo trying to port new datapack features to old versoins

#

and why not just use new versions

covert oak
#

because of the crazy changes to datapacks in .5

#

my team doesnt wanna go thru changing all of the old stuff to the new stuff

strange stirrup
#

ah, i misread you i thought you wanted to add support for new datapacks to old versions

covert oak
#

and even if they did theyve been used to doing datapacks in .4 for so long and dont wanna adapt πŸ™„

strange stirrup
#

hmmm

#

not sure if there'd be an easy way, would probably have to fork paper in some way add some preparsing

#

dont think you could do it in a plugin, would be too late in the server i thnik

covert oak
#

mmmm

strange stirrup
#

might be easier writing a tool completely detached from mc that goes thru files and replaces things

covert oak
#

well

#

its not that

#

in .5 predicates theres an added feature

#

namely, the ability to compare values in storage directly

#

without copying the values to scoreboard

#

really, thats all i want

main mica
#

The sensible approach would be just updating your project. Using an older version has many more issues other than just missing features

verbal mirage
#

hi, im using maven and trying to add NMS to my project.
i never did that before so im getting dependencies error
i will appreciate advice / tutorial / documentation on how to add NMS

verbal mirage
glass sable
#

@verbal mirage read the docs of the project you are using but if you want help here you will need to use the official setup

#

if you need help with third party tools you will need to use their support places

verbal mirage
#

πŸ‘ πŸ™ thank you, i founded some documentations and was able to add NMS.
another question is how can i use the net.minecraft classes?πŸ˜…

agile skiff
#

i mean you can just use them by well.. using them. you can get alot of the nms objects by looking for getHandle methods on the implementations of the api

verbal mirage
#

ohh my imports just have different namesπŸ€¦β€β™‚οΈ
import net.minecraft.core.BlockPosition -> import net.minecraft.core.BlockPos

echo kilnBOT
grand niche
#

BlockPosition is a spigot name, while BlockPos is a mojang name, you can use https://mappings.dev to translate them ^^

pearl fog
viscid jasper
#

server down

pearl fog
#

oh it is?

viscid jasper
#

yeah

pearl fog
#

hmm it's been 2 days, (at least in the intervals I've tried.)
Does this mean there is not much I can do than wait?

#

aah

grand niche
#

2 days?

pearl fog
#

Yesterday had same connection issue

#

around 11 am if I recall correctly

viscid jasper
#

can u send a screenshot of the error?

grand niche
#

well it's definitely not working right now, the infrastructure is having some problems

pearl fog
#

well I might have spam attempted and it will be a heck of a search to get that error back

#

but yeh previously it worked just fine, I will just wait till it's fixed and by then if it is still somehow broken for me I'll be back :o

bronze ember
pearl fog
#

yap

grand niche
#

@pearl fog fyi the repository seems to be back online

verbal mirage
pearl fog
distant mango
#

noproblem

pearl fog
#

🫑

verbal mirage
bronze ember
#

We don't support that

distant mango
#

set the mappings thing to spigot ?

bronze ember
#

There are libraries you can use to automatically rename everything tho

#

But all paper tooling uses Mojang mappings and it's what we recommend everybody to migrate to

#

I think the source code renaming lib was cadix mercury

#

Or cadix atlas

#

One of those

verbal mirage
#

thank youπŸ™ i will try, i know the minecraft ones are more recommended and readable its just that my plugin already uses the spigot ones

verbal mirage
#

πŸ™ πŸ™ πŸ™

last spade
last spade
#

Wait nevermind I just remembered I forgot to push the branch for custom mappings to GitHub

misty current
#

why does hotswap really not want to work with paper

#

i install the jbr and put hotswap into it and tried running devBundleServer with it but

#

i get about 10 no such class exceptions coming FROM the hotswap agent

#

alright apparently when you use fatjar it doesnt work,

#

but only using core seems to work?

lament scarab
#

I'd guess the classpath injection failed? MahiruShrug

true swallow
#

Okay, after professional error search (delete all gradle caches i could find on my computer and restarting the pc twice, after the second restart it worked) I Have no clue how a second restart with no file change did something but im happy it works now

lament scarab
#

generally down to having decompiled with the wrong java version

true swallow
#

Could be, but the build file did not change the whole time

round plume
turbid moon
# round plume https://pastes.dev/tMeJJ1fBW5

Please also say some information to it 😭

I am trying to run ./gradlew applyPatches on the paper project, but I am getting this error. Can somebody help me figure it out?

#

πŸ˜‚

round plume
#

sorry

#

lmao

#

i changed mcversion but not paperRef

#

could that be why?

#

mcversion is 1.20.6

turbid moon
#

Btw could you try running ./gradlw applyPatches --scan?

lament scarab
#

Well

#

changing the mc ver and not the paper ref is generally a bad idea

#

unless you're on the same mc build

#

but, the patch failed

turbid moon
round plume
#

i have macports installed

#

not homebrew

lament scarab
#

but, that is a valid ref, so, not sure

#

yeet the folder and try again, make sure that you cloned with git, etc

round plume
#

i used git desktop

#

is that bad

lament scarab
#

Well, that should just run git

#

my eyes being weird, I'm out

round plume
#

im using 20f51650a9648c78e608d4d80f0e89dba24ac799 now

#

newest 1.20.6 comment

#

same error

#

using --scan tag now

round plume
#

its doing more stuff

#
> IDLE
> :getPaperUpstreamData > :paper:downloadServerJar```
round plume
#

it broke

#

😦

#

uploading scan after i activate it

#

it went farther this time but still failed

turbid moon
#

almost a whole hour wasted

round plume
#

im demolishing a bathroom

turbid moon
#

got damn

round plume
#

so its ok

turbid moon
#

lmao

round plume
#

not like im waiting around for it

#

but i still kinda need it 😦

turbid moon
round plume
#

yeah, i saw that

turbid moon
#

bro I have no idea what it is failing at for you 😭

round plume
#

for now ima just run it again

turbid moon
#

You are using some downpathed version or something, right?

turbid moon
#

Could you try to clean clone the PaperMC/Paper repo and try with that?

round plume
#

20f51650a9648c78e608d4d80f0e89dba24ac799

#

meant that

turbid moon
#

With 1.21?

round plume
#

i use 1.20.6

#

and have like 3 gb left

turbid moon
#

Well, you should update anyways

turbid moon
round plume
#

but i dont need to rn

#

i use viaversion

turbid moon
#

Yeah, but it is always better to stay up to date anyways

#

Mainly with in-development projects

#

Maybe it just magically fixes your issue joesad

round plume
#

😦

#

i dont want 1.21 cause

#

the new items are ass for my server idea

#

could my custom fork remove them from the server?

turbid moon
#

Not 'remove', but you could block/replace them, I suppose?

#

But I see no reason in that tbh

round plume
#

well how does trial chambers fit in with zombie apoc

#

😭

turbid moon
#

uhh

#

bunker.

round plume
#

same error again

#

not last error

#

the error i was getting at the start

#

going to try default config with 1.21

#

yeah same failed clone task

#

is there another way to fork paper?

turbid moon
#

Use the Folia way as I have told you a few times already

static urchin
round plume
#

idk how

#

ill take a look at how to build folia

turbid moon
#

What no

#

That is absolutely not what I meant

#

If I have understood it correctly myself (Please tell me if I am wrong lynxplay), Folia takes the already patched paper.jar, and patches that again with its own patches. This should suffice for your usecase. You just need to look at how they have achieved that. No need to actually use Folia

smoky violet
#

folia is based on paperweight-examples

turbid moon
#

Great

#

@round plume look at paperweight-examples

round plume
#

thats what im using

#

thats what im having build errors with

#

look at the folder name on my logs

turbid moon
#

I though you were trying to modify PaperMC/Paper itself?

#

well then I am completely out of ideas

round plume
#

not anymore someone pointed to paperweight examples

#

my gradle version is newer

#

ill try to change my gradle wrapper to the correct version

#

or whatever its called

#

downgrading to gradle 8.7

#

oh wait nvm, i was alr on that version i think

#

i disabled gatekeeper

#

the -128 error code is common with random java files trying to execute

#

lets hope

#

yeah nvm πŸ™ƒ

#

final idea before i switch to something else and mess around with it, a vpn

#

my isp likes blocking stuff

#

yesterday it refused to connect to roblox and download the installer without a vpn

#

its actually doing stuff now πŸ™‚

#

i can see the files being downloaded in the .gradle/caches folder

#

exit code 1 now

round plume
#

attempting to just use githubs build system

#

it just works πŸ™ƒ

#

but when i try to compile locally its just a stupid error 😦

#

whatever, atleast i got it to work

split wedge
#

is it worth it to switch from ant to maven?

round plume
#

just as i say that

#
> java.util.zip.ZipException: zip END header not found```
#

another weird error

strange stirrup
#

I won’t lie, I haven’t seen someone use ant in about 8 years

split wedge
#

its an old project

#

im trying to revive it :p

#

you got any good tutorials for gradle?

strange stirrup
#

honestly i cant thnik of any simple projects

#

im looking though

split wedge
#

do i have to use kotlin for gradle?

#

cause i havent touched kotlin ever :/

round plume
#

its not that bad

#

unless your project uses a lot of build code then you shouldnt have to learn koltin either

#

the basics for it are pretty easy

strange stirrup
#

its not actual code

round plume
#

ugh

split wedge
#

so, i go with groovy?

#

or is that something else?

round plume
#

im forced to use a vpn cause my ip has issues with some major services

round plume
round plume
strange stirrup
#

groovy is also "a programming language"

#

but groovy is much older and using it is horrible compared to gradle kotlin

round plume
#

just call it like it is, a scripting language

strange stirrup
#

well no

#

its not a scripting language

#

it is a full language

round plume
#

does it get compiled?

#

or interpreted

#

or is it like an api

strange stirrup
#

compiled

#

its a language

round plume
#

alr nvm then

#

so im having issue

#

refusing to clone paper from the paperweight-examples

#

should i try building from paper itself?

split wedge
#

should I spent the extra time learning kotlin?

round plume
#

on intellij idea it is

#

legit getting 15 kb/s from github withoutt a vpn...

#

what the hell 😦

strange stirrup
#

wat

round plume
#

my isp is messing with speeds i think

#

downloads are goofy slow

#

yeah straight up 400kb/s from the vpn

strange stirrup
round plume
#

πŸ™ƒ

strange stirrup
#

i am yet to find a good repo for minimal gradle

strange stirrup
#

and its not on intellij either ..

wicked trench
#

minimal repo using kotlin or groovy?

split wedge
#

my ant project is pretty big pikoh

strange stirrup
#

if you can think of any

#

all my projects and org projects are 20 file build logic folder stuff

kindred totem
#

define minimal

round plume
strange stirrup
#

thats a good point actually

#

paperweight userdev test would be good

#

ignore the userdev parts

strange stirrup
split wedge
#

is that a good point of referrence?

wicked trench
#

if you don't care about spigot support, yeah

#

well

#

yeah it's pretty minimal

#

the notes in the README of that repo breaks it down pretty well

kindred totem
strange stirrup
#

:p

kindred totem
#

it's just one build.gradle.kts file, no buildsrc, no build-logic

round plume
#

i busted out my windows mini pc cause i cant use my desktop, ill try to compile on here

round plume
#

i keep getting an error while cloning caftbukkit

distant mango
#

what error

round plume
#

oh my windows pc doesnt have scan

#
> io.papermc.paperweight.PaperweightException: Command finished with 128 exit code: git -c commit.gpgsign=false -c core.safecrlf=false clone --no-hardlinks C:\Users\PeakB\source\repos\
iiModManager\paperweight-examples\.gradle\caches\paperweight\upstreams\paper\work\CraftBukkit C:\Users\PeakB\source\repos\iiModManager\paperweight-examples\.gradle\caches\paperweight\upstreams\paper\.gradle\caches\paperweight\taskCache\patchCraftBukkit.repo
#

i did have scans i just forgot to type yes

round plume
#

i had long file names off

#

trying again with fresh .gradle folder

round plume
#

it compiled πŸ˜„

#

im very happy

last spade
#

I just found out that, at least in Paper forks, includeMappings is still run for createMojmapBundlerJar jars

#

This doesn't seem correct?

#

This ends up resulting in reobf mappings being stored inside of Mojang Mapped server jars

#

Which, as this comment in PacketClassSerializer seems to suggest, is wrong:

@Nullable String mojName = ObfHelper.INSTANCE.mappingsByMojangName() == null || !MappingEnvironment.reobf() ? name : PacketClassSerializer.MOJANG_TO_OBF.inverse().get(name); // if the mappings are null, running on moj-mapped server
#

I guess this happens to work thanks to that !MappingEnvironment.reobf() call next to the == null call saving the day, but this still doesn't smell right to me

lament scarab
#

we need to include a mapping file for the remapper, etc

last spade
#

I see

#

That would make the ObfHelper.INSTANCE.mappingsByMojangName() == null useless though, no?

#

Actually, on second thought, my fork does need that check, nevermind

static urchin
#

it is also used in runDev env iirc, runDev does not create mappings

lament scarab
#

I mean, that's just a util thingy for the packet config stuff

#

the remapper sits elsewhere

last spade
#

Alright, thanks

last spade
round plume
#

going to post this here for anyone else that has issues like i had

#

if your git is closing with exit code 1 you likely timed out or your isp is messing with your connection, use a vpn

#

if your git has error 128 you likely forgot to enable long path names and restart your computer (windows)

#

i also had error 128 on macos but never really figured it out

split wedge
#

how do you handle global files in gradle?

#

(im running a multi project and I have a Config class that is used globally)

distant mango
#

a common project

split wedge
#

and I just use include in all the other instances?

lament scarab
#

yes

split wedge
#

because the config uses classes from the other projects and the projects use the config as well

#

I didnt think it would be a good idea to add everything as a dependency to everything :p

lament scarab
#

Well

#

if you're using a modular design you should cater for that design and not have an object that depends on 20 other modules

#

you'd need to bust that so you can isolate the config object

split wedge
#

so, your recommendation is to rework my config class?

lament scarab
#

if you're upset about it's module requirements, yes

split wedge
#

im not sure what the best practice is hence why I asked, I just imagined that having everything be dependent on everything else is a bad design choice

lament scarab
#

Well, yea, but having a common sorta like, core "I generally expect this class to be available in a fairly wide scope" is generally to toss it in a submodule that everything that needs it depends on

strange stirrup
#

is this a private project beer?

split wedge
#

yes sir

lament scarab
#

you don't have to make every module depend on it, just the ones that need it

strange stirrup
#

ok beer lock in

lament scarab
#

but, if you have such a dependency thing, might make more sense to just flat pack it rather than dealing with module deps

strange stirrup
#

im ngl, using gradle build-logic in your first time using gradle feels like hell

split wedge
#

well, there is auth, game and common. common has the Config class which has access to instances from game and auth, but auth and game also use config

strange stirrup
#

but there's really nice ways to do multimodule stuff

lament scarab
#

auth and game should depend on common

#

anything else is just broken by design

split wedge
#

so, reworking the config is the best option?

lament scarab
#

I don't have any real functional advice for this as I can't see everything

#

but, this smells like a design issue around how modules work

strange stirrup
#

ignore what i said

#

i just woke up and i thought it was sharing build logic cuz we're in the build channel

#

😭

split wedge
#

well, reworking config sounds like the best option especially because it uses ini files πŸ˜‚

distant mango
#

wat

strange stirrup
#

bunch of different ways to do it, easiest and clearest is probably having a common config, game config and an auth config

#

common shouldn't know that auth and game exist

split wedge
#

that might actually be a good idea πŸ˜„

#

thank you everyone

verbal skiff
#

i'm seeing this quite often:

if (JavaVersion.current() < javaVersion) {
    toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}

which seems kinda unnecessary? (and wrong) is there any advantage to doing this?

#

why not just set the toolchain version regardless of what version is installed

#

or am I missing something

distant mango
#

from the mc dev plugin

verbal skiff
#

okay, but is there a reason for it?

#

or is it just some mistake that is carried over from those templates

#

i mean, at least when publishing, you have to watch out that you don't publish with a too recent java version

#

for example, if you publish with java 22 installed, you should still mark the binaries as java 21 compatible

strange stirrup
#

mc dev also specifies release and source to the java version too

#

but yes i would personally just set the toolchain version regardless and nothing else

verbal skiff
#
def targetJavaVersion = 17
java {
    def javaVersion = JavaVersion.toVersion(targetJavaVersion)
    sourceCompatibility = javaVersion
    targetCompatibility = javaVersion
    if (JavaVersion.current() < javaVersion) {
        toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
    }
}
#

this is the whole block I believe

strange stirrup
#

yeah

#

you wont have issues with publishing bc the target etc is set

lament scarab
#

I think that there has been some changes over the behavior which has caused some general "fun"

#

especially if you have the foojay thingy it will pull in that version of that JDK that is set, which, you might not always specifically need

strange stirrup
#

it's just meant to cause as little friction as possible buttt yea

#

i kinda wanna make a template idk if i can do it as like an addon for mcdev

final jewel
#

why set target and source compat, setting up toolchain version will do it for you

smoky violet
#

no it won’t?

#

source and target compatibility are basically deprecated anyway

#

you should just use toolchains and the release flag

final jewel
#

now that I look at it again, they might just have misinterpreted this line from the documentation:

Using Java toolchains is a preferred way to target a language version.
A toolchain uniformly handles compilation, execution and Javadoc generation, and it can be configured on the project level.

lament scarab
#

the big thing is that it lets you specify a version of the JDK that will be universally used across your project, modules, etc

#

you can even tighten it down to running with certain variants of the JDK, for ex

tulip ocean
static urchin
#

137 would imply you ran out of memory

tulip ocean
#

ah

#

guess my laptop isnt built for this then πŸ˜›

static urchin
#

πŸ˜… maybe not, I think we request up to 4GB of memory for that process + the memory gradle needs

tulip ocean
#

gave it a little more memory and it worked fine. should have just googled error code 137. my bad πŸ˜›

static urchin
#

Glad ya got it working 🫑

nova marsh
#

hi guys
stuck with this problem:
Failed to apply dev bundle patches. See the log file at '/home/neon/.gradle/caches/paperweight-userdev/af7c7f36899cbf40396ed0591c7fc79813433d06e2734dd7ebe8c612fcab57bc/module/io.papermc.paper/dev-bundle/1.21-R0.1-SNAPSHOT/paperweight/setupCache/patchedSourcesJar.log' for more details. Usually, the issue is with the dev bundle itself, and not the userdev project.
Failed to apply dev bundle patches. See the log file at '/home/neon/.gradle/caches/paperweight-userdev/af7c7f36899cbf40396ed0591c7fc79813433d06e2734dd7ebe8c612fcab57bc/module/io.papermc.paper/dev-bundle/1.21-R0.1-SNAPSHOT/paperweight/setupCache/patchedSourcesJar.log' for more details. Usually, the issue is with the dev bundle itself, and not the userdev project.
Operation has non zero exit code: 1

whats wrong?

brave widgetBOT
static urchin
#

eh, usually means you decompiled with a wrong java version

#

idk the kotlin plugin well enough to tell you if that also configures the base toolchain to java 21

nova marsh
#

to which version should i switch? In docs is used java v21 for that code

static urchin
#

yea java 21 is correct, I am saying idk if that config does actually configure paperweight to use java 21

nova marsh
#

omg, how fucking damn, but the problem was gradle version :/

#

just updated and all works fine

misty current
#

why cant i runDevServer? i get this error everytime. Is there a way to manually specify the spark version?

glass warren
#

I mean that's a 404, which means that file/URL doesn't exist.

misty current
#

yes, i go to jenkins and its not there

#

build 416 specifically is not

#

i can see more recent ones like 436 though

glass warren
#

I think I'm confused about what you're asking then.

misty current
#

oh you know what

distant mango
#

send your build scripts

#

more specifically the runServer one

misty current
#

my fault entirely, the build expired and i had an old runserver line that got undone i guess

#

from before spark getting built with paper i guess

split wedge
#

How can I build the auth project while having it depend on common?

distant mango
#

by running build

split wedge
#

I did, I cant run the produced jar though

#

it gives me this structure

#

but that jar is not runnable

distant mango
#

you need the application plugin

strange stirrup
#

what’s the design here

split wedge
#

common is sort of a lib

#

auth and game are 2 different servers

#

this is what my project is looking like

strange stirrup
#

in what way isn’t it runnable

split wedge
#

1 sec

strange stirrup
#

I’m assuming your build logic plugin applies the application plugin

split wedge
strange stirrup
#

and is that the auth modules build.gradle.kts

split wedge
#

the first one yeah

#

its auth

strange stirrup
#

gradle init generates build logic now?

#

that’s cool

split wedge
#

yeah, if you choose a multi project

strange stirrup
#

ahh right um

#

1sec

#

run ./gradlew.bat :auth:run

#

does that work?

#

just as a debug step obviously you want the jar working too

split wedge
#

should i cd into the auth directory or the base directory?

strange stirrup
#

base directory

split wedge
#

does that run the jar?

strange stirrup
#

should do

split wedge
#

cause my jar accesses some files that are supposed to be in the same directory but are not because in the source, there is a resources folder

strange stirrup
#

does it attempt to run at least

split wedge
#

yeah

strange stirrup
#

that’s good

#

I think there’s a weird thing where the applicatiok plugin doesn’t actually make a runnable jar

split wedge
#

should I attempt to make a custom task?

strange stirrup
#

it’s ugly but try adding


tasks.withType<Jar> {
    manifest {
        attributes["Main-Class"] = "your.class"
    }
}
lament scarab
#

Well, the thing needs to know where the entry point is

strange stirrup
#

there might be a better way but I haven’t made many standalone things in gradle

#

they do no?

split wedge
#

by entry point you mean the main class?

#

cause thats already specified in auth

lament scarab
#

probably how the things being consumed then

#

I think if you're using the shadow plugin you might need to tell it to merge files for it to be happy or something

#

not 100%, am dizzy

strange stirrup
#

application plugin just doesn’t set manifest by default

split wedge
#

could it be that common has libraries that arent specified in auth?

strange stirrup
#

it just helps with gradlew run

split wedge
#

this is what im using in common

#

but i dont add them in auth

strange stirrup
#

you will need shadow

#

you have to add them in auth shadow will that for you

split wedge
#

do I need a plugin for that?

strange stirrup
#

it’s just called shadow but

#

if you’re on new Java versions

#

very new

#

You’ll need a fork goooler shadow

split wedge
#

im on jdk 21

#

this seemed to not upset the IDE

#

nvm

#

it didnt

#

:/

#

welp, too much for today, im going to go to sleep and forget about all this πŸ˜„

misty current
#

hey, anyone know why paperweight doesnt like this dependency configuration? was working a little bit ago

#

i get this error

#

although for some reason it has never been correctly highlighted, but did build and compile

lament scarab
#

.kts ?

misty current
#

groovy

lament scarab
#

probs expects a different syntax or something

#

see the test repo

misty current
#

where can i find that? paper github?

lament scarab
#

yes

echo kilnBOT
lament scarab
#

oh, thought we'd have a link to the repo in there at least

misty current
lament scarab
#

groovy is kiiinda dead

misty current
#

should i switch everything over? id hate to but i guess i already use kotlin in the actual project 🀣

#

it was working like two seconds ago

lament scarab
#

hmmm, no idea

misty current
#

clear caches?

lament scarab
#

I honestly have no idea and my heads kinda spinning

misty current
#

ah dont worry about it

#

do the recovering

strange stirrup
#

java 21, latest paperweight?

misty current
#

yup

#

i copied it straight from docs

strange stirrup
#

i dont really remember how groovy works tbh

#

you can paste the whole build fil etho

misty current
#

paste mine here?

#

groovy is extremely similar

#

instead of callThis(value) its literally callThis value

strange stirrup
#

there's a lot of differences

misty current
#

i mean for that part specifically, but i dont know plugin development

strange stirrup
#

the reobj artifact static field is completely unusableon groovy

#

you have to use some weird getter it generates

misty current
#

mmmmm

strange stirrup
#

but yeah your build.gradle

misty current
strange stirrup
#

try setting the toolchain in java too

#

toolchain.languageVersion = JavaLanguageVersion.of(21)

#

inside the java {}

misty current
#

nope, same error

lament scarab
#

that build gradle file doesn't even work for me

#

complains about the kotlin plugin

strange stirrup
#

is this a multi module project?

misty current
#

yes

strange stirrup
#

are you applying paperweight in two diffeernt places?

misty current
#

no

#

im using loom with official mappings in the other two projects

misty current
strange stirrup
#

yeah tbh this is really hard for us to debug

#

if the plugin is public source, i'd be willing to look

misty current
#

i mean the source code is pretty irrelevant to this issue lol. It is not fully open source, but id be willing to send over the source code if you pinky promise not to give it to other people

strange stirrup
#

yeah, you could even just send the build files tbh

lament scarab
#

Yea, I clicked on, one of those days \o/

misty current
#

yeah of course no worries πŸ™

strange stirrup
#

I'll convert your project to kotlin too as a bonus

#

(its way better)

misty current
strange stirrup
#

yaeh sounds good, settings.gradle too

#

can just zip them and dm or whatever

misty current
#

yeah that would be great because I use kotlin in the actual project anyway but i switch early on so its not kotlin yet LOL

#

yeah ill do that

#

have the whole thing

strange stirrup
#

ping me when

misty current
#

@strange stirrup sent

strange stirrup
#

looking now

misty current
#

thanks man!

vale carbon
#

I'm struggling to get Paperweight 1.7.1 for MC 1.21 and Adoptium OpenJDK 21.0.4.7 to work. Apparently a single patch is failing to match in patchedSourcesJar.log, and I've tried deleting and regenerating the paperweight cache to no success. Any idea what I am missing?

[DEBUG] Patching: net/minecraft/world/item/crafting/ShapelessRecipe.java
[DEBUG]  Hunk 0: EXACT: @@ -4,14 +4,23 @@
[DEBUG]  Hunk 1: EXACT: @@ -22,7 +31,24 @@
[WARN]  Hunk 2: FAILURE: @@ -49,18 +75,21 @@
[DEBUG]  Hunk 3: EXACT: @@ -71,62 +100,68 @@
main mica
vale carbon
#

Restarting my PC twice..? Really? I already tried deleting the Gradle paperweight cache

main mica
#

did you delete the gradle caches too (not the one in the project, the general one)?
You can probably also look for only the paperweight entry in there

#

I only did that part, not the restarting lol. But same error with the same shapeless recipe class, and it worked afterwards

vale carbon
#

Okay, I was el stupido, I forgot about the java version specified in the build.gradle file - it was still set to Java 17 πŸ˜…

left mango
#

@nova marsh what gradle version did you use to fix that issue yesterday

strange stirrup
#

just go to latest

#

should be 8.9

left mango
#

ty

red kestrel
#

getting this error trying to import multiverse core

#

this is what I have, I have no idea why it's saying htat

#

if I remove the repo, then it says not found, so I know it's finding it, but just don't know why that error appears

smoky violet
#

build from the command line

#

intellij hides the full error

red kestrel
#

made them all lowercase, thank you!!

crude kernel
strange stirrup
#

try in terminal

crude kernel
#

There shouldn't be any kotlin errors

strange stirrup
#

./gradlew build

crude kernel
strange stirrup
#

try commenting out the compiler options

#

and do a ./gradlew build --stacktrace

crude kernel
strange stirrup
#

hmm

#

cant really tell where its getting to

#

remove the archivesName and the import tho

#

i've never seen anyone do it like that

crude kernel
#

same error

strange stirrup
#

not sure then, update kotlin to the latest non-2.0 version and update gradle ig

crude kernel
#

Am on gradle 8.9, I can try updating Kotlin to 2.0.0

strange stirrup
#

would probably be worse :p

crude kernel
#

Looks like it's fixed it