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

Switch Community to gradle #77

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Switch Community to gradle #77

wants to merge 1 commit into from

Conversation

cswhite2000
Copy link
Member

Switches Community from PGM to Gradle

Jar contents are very similar

Maven: 2.7M
Gradle: 2.6M

Gradle isn't shading the old co.aikar command dependencies, so I switched the CommandPermission for Permission

I'm not sure how to test the distribution management configuration

@cswhite2000 cswhite2000 force-pushed the gradle branch 2 times, most recently from e71f2fd to e80b7cd Compare November 24, 2024 05:52
Signed-off-by: Christopher White <18whitechristop@gmail.com>
@cswhite2000
Copy link
Member Author

I believe the build is failing due to not having the latest version of pgm in repo.pgm.fyi

@applenick
Copy link
Member

Updated!

@applenick
Copy link
Member

@cswhite2000 any other changes you'd like to make, or ready to merge?

compileOnly("tc.oc.occ:Environment:1.0.0-SNAPSHOT")
}

group = "dev.pgm"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
group = "dev.pgm"
group = "dev.pgm.community"

Copy link
Contributor

@calcastor calcastor Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@applenick This would change the distribution name to lowercase, from dev.pgm.Community to dev.pgm.community. I think this makes sense for consistency across all PGMDev projects: I changed it in Events, and all of PGM's publishing (albeit under tc.oc) is lowercase as well.

implementation("tc.oc.pgm:util:0.16-SNAPSHOT") { isTransitive = false }
implementation("com.zaxxer:HikariCP:2.4.1") { isTransitive = false }
implementation("fr.minuskube.inv:smart-invs:1.2.7") { isTransitive = false }

Copy link
Contributor

@calcastor calcastor Dec 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the PR for Events (and Ingame), I needed to add cloud-annotations as an implementation to avoid class file for org.apiguardian.api.API$Status not found warnings; not sure if that is the correct solution there but this is something I also notice here

edit: compileOnly is the correct solution.

repositories {
maven {
name = "pgm-repo-snapshots"
url = uri("https://repo.pgm.fyi/snapshots")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Publishing did not appear to be set up for the workflow previously; this likely does not work with the current workflow setup.

PGM publishes GitHub packages which seems appropriate to do here until publishing to repo.pgm.fyi can be set up later.

@calcastor
Copy link
Contributor

calcastor commented Jan 6, 2025

I've rebased this here.

In ea2b189, the only difference from the original commit is that the merge conflict in SquadCommands.java was resolved. c0af985 simply addresses my comments above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants