-
-
Notifications
You must be signed in to change notification settings - Fork 120
Update Display Compatibility for EcoEnchants and Reforges #2346
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
base: hikari
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
|
|
||
| <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xmlns="http://maven.apache.org/POM/4.0.0" | ||
| <project xmlns="http://maven.apache.org/POM/4.0.0" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| <modelVersion>4.0.0</modelVersion> | ||
| <parent> | ||
|
|
@@ -15,16 +14,30 @@ | |
| <packaging>takari-jar</packaging> | ||
|
|
||
| <name>Compat-EcoEnchants</name> | ||
|
|
||
| <description>Compatibility module for EcoEnchants</description> | ||
|
|
||
| <build> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-shade-plugin</artifactId> | ||
| <executions> | ||
| <execution> | ||
| <phase>package</phase> | ||
| <goals> | ||
| <goal>shade</goal> | ||
| </goals> | ||
| <configuration> | ||
| <relocations> | ||
| <relocation> | ||
| <pattern>kotlin</pattern> | ||
| <shadedPattern>com.willfp.eco.libs.kotlin</shadedPattern> | ||
| </relocation> | ||
| </relocations> | ||
| </configuration> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
|
|
||
| </plugins> | ||
| <resources> | ||
| <resource> | ||
|
|
@@ -62,42 +75,48 @@ | |
| <dependency> | ||
| <groupId>com.willfp</groupId> | ||
| <artifactId>EcoEnchants</artifactId> | ||
| <version>${compat.ecoenchants}</version> | ||
| <version>13.6.0</version> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did the version properties get removed instead of updating them in the main pom? |
||
| <scope>provided</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.willfp</groupId> | ||
| <artifactId>libreforge-loader</artifactId> | ||
| <version>5.4.2</version> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should have a property added to the main project pom. |
||
| <scope>provided</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.willfp</groupId> | ||
| <artifactId>eco</artifactId> | ||
| <version>${compat.eco}</version> | ||
| <version>7.6.1</version> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did the version properties get removed instead of updating them in the main pom? |
||
| <scope>provided</scope> | ||
| <exclusions> | ||
| <exclusion> | ||
| <artifactId>maven-artifact</artifactId> | ||
| <groupId>org.apache.maven</groupId> | ||
| <artifactId>maven-artifact</artifactId> | ||
| </exclusion> | ||
| <exclusion> | ||
| <artifactId>caffeine</artifactId> | ||
| <groupId>com.github.ben-manes.caffeine</groupId> | ||
| <artifactId>caffeine</artifactId> | ||
| </exclusion> | ||
| <exclusion> | ||
| <artifactId>adventure-api</artifactId> | ||
| <groupId>net.kyori</groupId> | ||
| <artifactId>adventure-api</artifactId> | ||
| </exclusion> | ||
| <exclusion> | ||
| <artifactId>adventure-text-serializer-gson</artifactId> | ||
| <groupId>net.kyori</groupId> | ||
| <artifactId>adventure-text-serializer-gson</artifactId> | ||
| </exclusion> | ||
| <exclusion> | ||
| <artifactId>adventure-text-serializer-legacy</artifactId> | ||
| <groupId>net.kyori</groupId> | ||
| <artifactId>adventure-text-serializer-legacy</artifactId> | ||
| </exclusion> | ||
| <exclusion> | ||
| <artifactId>kotlin-stdlib</artifactId> | ||
| <groupId>org.jetbrains.kotlin</groupId> | ||
| <artifactId>kotlin-stdlib</artifactId> | ||
| </exclusion> | ||
| <exclusion> | ||
| <artifactId>kotlinx-coroutines-core-jvm</artifactId> | ||
| <groupId>org.jetbrains.kotlinx</groupId> | ||
| <artifactId>kotlinx-coroutines-core-jvm</artifactId> | ||
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
|
|
||
| <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xmlns="http://maven.apache.org/POM/4.0.0" | ||
| <project xmlns="http://maven.apache.org/POM/4.0.0" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| <modelVersion>4.0.0</modelVersion> | ||
| <parent> | ||
|
|
@@ -15,16 +14,30 @@ | |
| <packaging>takari-jar</packaging> | ||
|
|
||
| <name>Compat-Reforges</name> | ||
|
|
||
| <description>Compatibility module for Reforges</description> | ||
|
|
||
| <build> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-shade-plugin</artifactId> | ||
| <executions> | ||
| <execution> | ||
| <phase>package</phase> | ||
| <goals> | ||
| <goal>shade</goal> | ||
| </goals> | ||
| <configuration> | ||
| <relocations> | ||
| <relocation> | ||
| <pattern>kotlin</pattern> | ||
| <shadedPattern>com.willfp.eco.libs.kotlin</shadedPattern> | ||
| </relocation> | ||
| </relocations> | ||
| </configuration> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
|
|
||
| </plugins> | ||
| <resources> | ||
| <resource> | ||
|
|
@@ -62,13 +75,49 @@ | |
| <dependency> | ||
| <groupId>com.willfp</groupId> | ||
| <artifactId>Reforges</artifactId> | ||
| <version>${compat.reforges}</version> | ||
| <version>7.5.0</version> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did the version properties get removed instead of updating them in the main pom? |
||
| <scope>provided</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.willfp</groupId> | ||
| <artifactId>eco</artifactId> | ||
| <version>${compat.eco}</version> | ||
| <version>7.6.1</version> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did the version properties get removed instead of updating them in the main pom? |
||
| <scope>provided</scope> | ||
| <exclusions> | ||
| <exclusion> | ||
| <groupId>org.apache.maven</groupId> | ||
| <artifactId>maven-artifact</artifactId> | ||
| </exclusion> | ||
| <exclusion> | ||
| <groupId>com.github.ben-manes.caffeine</groupId> | ||
| <artifactId>caffeine</artifactId> | ||
| </exclusion> | ||
| <exclusion> | ||
| <groupId>net.kyori</groupId> | ||
| <artifactId>adventure-api</artifactId> | ||
| </exclusion> | ||
| <exclusion> | ||
| <groupId>net.kyori</groupId> | ||
| <artifactId>adventure-text-serializer-gson</artifactId> | ||
| </exclusion> | ||
| <exclusion> | ||
| <groupId>net.kyori</groupId> | ||
| <artifactId>adventure-text-serializer-legacy</artifactId> | ||
| </exclusion> | ||
| <exclusion> | ||
| <groupId>org.jetbrains.kotlin</groupId> | ||
| <artifactId>kotlin-stdlib</artifactId> | ||
| </exclusion> | ||
| <exclusion> | ||
| <groupId>org.jetbrains.kotlinx</groupId> | ||
| <artifactId>kotlinx-coroutines-core-jvm</artifactId> | ||
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.willfp</groupId> | ||
| <artifactId>libreforge-loader</artifactId> | ||
| <version>5.4.2</version> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should have a property added to the main project pom. |
||
| <scope>provided</scope> | ||
| </dependency> | ||
| </dependencies> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1048,7 +1048,7 @@ public void sendShopInfo(@NotNull final Player p, @NotNull final Shop shop) { | |
| previewComponentPrePopulateEvent.callEvent(); | ||
| previewItemStack = previewComponentPrePopulateEvent.getItemStack(); | ||
| Component previewComponent = plugin.text().of(p, "menu.preview", Component.text(previewItemStack.getAmount())).forLocale().clickEvent(ClickEvent.clickEvent(ClickEvent.Action.RUN_COMMAND, MsgUtil.fillArgs("/{0} {1} {2}", plugin.getMainCommand(), plugin.getCommandPrefix("silentpreview"), shop.getRuntimeRandomUniqueId().toString()))); | ||
| previewComponent = plugin.platform().setItemStackHoverEvent(previewComponent, shop.getItem()); | ||
| previewComponent = plugin.platform().setItemStackHoverEvent(previewComponent, previewItemStack); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Has this replacement been tested? I noticed your note stating you weren't sure if it's going to mess anything up or not... |
||
| final ItemPreviewComponentPopulateEvent itemPreviewComponentPopulateEvent = new ItemPreviewComponentPopulateEvent(previewComponent, p); | ||
| itemPreviewComponentPopulateEvent.callEvent(); | ||
| previewComponent = itemPreviewComponentPopulateEvent.getComponent(); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this required? Are you saying that ecoenchants isn't shading their kotlin dependency?