Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish reobfuscated jar #206

Closed
Placeblock opened this issue Aug 24, 2023 · 4 comments
Closed

Publish reobfuscated jar #206

Placeblock opened this issue Aug 24, 2023 · 4 comments

Comments

@Placeblock
Copy link

I am currently developing an API for spigot, which I want to publish on a Nexus Repository.
However Nexus complains about not finding the main jar file.
This makes sense because it publishes only the -dev.jar file.
In my publish configuration I set the java component to be published by using from(components["java"])
Is there any way to publish the unobfuscated version but without the -dev?

If I understood things wrong I apologize and hope for help :)
Have a great day 😃

@electronicboy
Copy link
Member

basically, technically, yes; youd' need to figure out how to tell it to publish the artifact without a classifier; but, generally, we don't recommend doing that, just specify the dev classifier when targeting it

@Placeblock
Copy link
Author

Appreciate your fast response ;)

I now understood that i shouldn't replace the non-dev version with the dev version but specify the classifier.
However i cannot publish the artifact at all, because the non-dev version doesn't get published which the Nexus repository needs.
As i understood it the dev-version is the unobfuscated version and the non-dev version is the reobf. version...
Why is the reobf. version not included in the java component? Can i include it somehow?

Thanks for your help 😃!

@Placeblock Placeblock changed the title Publish unobfuscated jar file without -dev ending Publish reobfuscated jar Aug 24, 2023
@Placeblock
Copy link
Author

Currently i configured the reobfJar to run always after the jar task, which means if i build the project it creates the reobf. Jar. If i publish it, it creates the reobfuscated jar before signing and publishing. However the reobf. jar still doesn't end up in the remaining task chain. (At least i think so because it doesn't get published).

@jpenilla
Copy link
Member

See #137 (comment) and #177; Changes to how userdev interacts with publishing are planned, but there's significant work and decisions to be made.

@jpenilla jpenilla closed this as not planned Won't fix, can't repro, duplicate, stale Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants