-
Notifications
You must be signed in to change notification settings - Fork 1
velocity-feat-mod #24
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: master
Are you sure you want to change the base?
Changes from 17 commits
26ba8f4
e0a38bd
d2b03c1
94d403b
cb9467d
4c78c7b
7c3063e
7610765
7c85057
858f53e
dc79faf
e50c85f
75f3423
f64efe6
66c228d
b254d4d
168979c
fd15ee4
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 |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>org.modularsoft</groupId> | ||
<artifactId>zander-velocity</artifactId> | ||
<name>zander-velocity</name> | ||
<version>1.2.0</version> | ||
<build> | ||
<resources> | ||
<resource> | ||
<filtering>true</filtering> | ||
<directory>${project.basedir}/src/main/resources</directory> | ||
</resource> | ||
</resources> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.11.0</version> | ||
<configuration> | ||
<release>17</release> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-shade-plugin</artifactId> | ||
<version>3.4.1</version> | ||
<executions> | ||
<execution> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>shade</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<filters> | ||
<filter> | ||
<artifact>*:*</artifact> | ||
<excludes> | ||
<exclude>META-INF/*.MF</exclude> | ||
</excludes> | ||
</filter> | ||
</filters> | ||
<relocations> | ||
<relocation> | ||
<pattern>dev.dejvokep.boostedyaml</pattern> | ||
<shadedPattern>org.modularsoft.zander.velocity.libs</shadedPattern> | ||
</relocation> | ||
</relocations> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<repositories> | ||
<repository> | ||
<id>papermc-repo</id> | ||
<url>https://repo.papermc.io/repository/maven-public/</url> | ||
</repository> | ||
<repository> | ||
<id>maven2</id> | ||
<url>https://repo.maven.apache.org/maven2</url> | ||
</repository> | ||
<repository> | ||
<id>jitpack.io</id> | ||
<url>https://jitpack.io</url> | ||
</repository> | ||
</repositories> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.velocitypowered</groupId> | ||
<artifactId>velocity-api</artifactId> | ||
<version>3.4.0-SNAPSHOT</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
<properties> | ||
<maven.compiler.target>17</maven.compiler.target> | ||
<java.version>17</java.version> | ||
<maven.compiler.source>17</maven.compiler.source> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
</project> |
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,130 @@ | ||||||||||
<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> | ||||||||||
|
||||||||||
<groupId>org.modularsoft</groupId> | ||||||||||
<artifactId>zander-velocity</artifactId> | ||||||||||
<version>1.2.0</version> | ||||||||||
<packaging>jar</packaging> | ||||||||||
|
||||||||||
<name>zander-velocity</name> | ||||||||||
|
||||||||||
<properties> | ||||||||||
<java.version>17</java.version> | ||||||||||
<maven.compiler.source>17</maven.compiler.source> | ||||||||||
<maven.compiler.target>17</maven.compiler.target> | ||||||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||||||||||
</properties> | ||||||||||
|
||||||||||
<build> | ||||||||||
<resources> | ||||||||||
<resource> | ||||||||||
<directory>${project.basedir}/src/main/resources</directory> | ||||||||||
<filtering>true</filtering> | ||||||||||
</resource> | ||||||||||
</resources> | ||||||||||
<plugins> | ||||||||||
<plugin> | ||||||||||
<groupId>org.apache.maven.plugins</groupId> | ||||||||||
<artifactId>maven-compiler-plugin</artifactId> | ||||||||||
<version>3.11.0</version> | ||||||||||
<configuration> | ||||||||||
<release>17</release> | ||||||||||
</configuration> | ||||||||||
</plugin> | ||||||||||
<plugin> | ||||||||||
<groupId>org.apache.maven.plugins</groupId> | ||||||||||
<artifactId>maven-shade-plugin</artifactId> | ||||||||||
<version>3.4.1</version> | ||||||||||
<configuration> | ||||||||||
<filters> | ||||||||||
<filter> | ||||||||||
<artifact>*:*</artifact> | ||||||||||
<excludes> | ||||||||||
<exclude>META-INF/*.MF</exclude> | ||||||||||
</excludes> | ||||||||||
</filter> | ||||||||||
</filters> | ||||||||||
<relocations> | ||||||||||
<relocation> | ||||||||||
<pattern>dev.dejvokep.boostedyaml</pattern> | ||||||||||
<shadedPattern>org.modularsoft.zander.velocity.libs</shadedPattern> | ||||||||||
</relocation> | ||||||||||
</relocations> | ||||||||||
</configuration> | ||||||||||
<executions> | ||||||||||
<execution> | ||||||||||
<phase>package</phase> | ||||||||||
<goals> | ||||||||||
<goal>shade</goal> | ||||||||||
</goals> | ||||||||||
</execution> | ||||||||||
</executions> | ||||||||||
</plugin> | ||||||||||
</plugins> | ||||||||||
</build> | ||||||||||
|
||||||||||
<repositories> | ||||||||||
<repository> | ||||||||||
<id>papermc-repo</id> | ||||||||||
<url>https://repo.papermc.io/repository/maven-public/</url> | ||||||||||
</repository> | ||||||||||
<repository> | ||||||||||
<id>maven2</id> | ||||||||||
<url>https://repo.maven.apache.org/maven2</url> | ||||||||||
</repository> | ||||||||||
<repository> | ||||||||||
<id>jitpack.io</id> | ||||||||||
<url>https://jitpack.io</url> | ||||||||||
</repository> | ||||||||||
</repositories> | ||||||||||
|
||||||||||
<dependencies> | ||||||||||
<dependency> | ||||||||||
<groupId>com.velocitypowered</groupId> | ||||||||||
<artifactId>velocity-api</artifactId> | ||||||||||
<version>3.4.0-SNAPSHOT</version> | ||||||||||
<scope>provided</scope> | ||||||||||
</dependency> | ||||||||||
<dependency> | ||||||||||
<groupId>com.googlecode.json-simple</groupId> | ||||||||||
<artifactId>json-simple</artifactId> | ||||||||||
<version>1.1.1</version> | ||||||||||
<scope>compile</scope> | ||||||||||
</dependency> | ||||||||||
<dependency> | ||||||||||
<groupId>org.projectlombok</groupId> | ||||||||||
<artifactId>lombok</artifactId> | ||||||||||
<version>1.18.36</version> | ||||||||||
<scope>compile</scope> | ||||||||||
</dependency> | ||||||||||
<dependency> | ||||||||||
<groupId>io.github.ModularEnigma</groupId> | ||||||||||
<artifactId>Requests</artifactId> | ||||||||||
<version>1.0.3</version> | ||||||||||
</dependency> | ||||||||||
<dependency> | ||||||||||
<groupId>com.jayway.jsonpath</groupId> | ||||||||||
<artifactId>json-path</artifactId> | ||||||||||
<version>2.9.0</version> | ||||||||||
</dependency> | ||||||||||
<dependency> | ||||||||||
<groupId>com.google.code.gson</groupId> | ||||||||||
<artifactId>gson</artifactId> | ||||||||||
<version>2.8.9</version> | ||||||||||
<scope>compile</scope> | ||||||||||
Comment on lines
+113
to
+116
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. 💡 Verification agent 🛠️ Refactor suggestion 🧩 Analysis chainUpdate GSON dependency for security. The GSON version 2.8.9 may have security vulnerabilities. Consider updating to a newer version. 🌐 Web query:
💡 Result: The latest version of Google Gson as of March 2025 is 2.12.1, released in January 2025[1][14]. This version includes minor improvements like OSGi dependency adjustments and Java 21 compatibility[1]. Regarding security in version 2.8.9:
While 2.8.9 resolves this specific CVE, subsequent versions like 2.9.0+ introduced additional security enhancements:
Major users like IBM, Atlassian, and Adobe recommend upgrading beyond 2.8.9 to benefit from ongoing security improvements[6][8][9][11]. The current 2.12.1 version maintains compatibility with modern Java environments while incorporating all previous security patches[1][14]. Citations:
Action: Upgrade the Google GSON dependency to version 2.12.1 for additional security enhancements. The current configuration in |
||||||||||
</dependency> | ||||||||||
<dependency> | ||||||||||
<groupId>org.slf4j</groupId> | ||||||||||
<artifactId>slf4j-api</artifactId> | ||||||||||
<version>2.0.12</version> | ||||||||||
<scope>compile</scope> | ||||||||||
</dependency> | ||||||||||
<dependency> | ||||||||||
<groupId>dev.dejvokep</groupId> | ||||||||||
<artifactId>boosted-yaml</artifactId> | ||||||||||
<version>1.3.1</version> | ||||||||||
</dependency> | ||||||||||
</dependencies> | ||||||||||
</project> |
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.
💡 Verification agent
🧩 Analysis chain
Consider using a stable version of velocity-api.
The current dependency uses a SNAPSHOT version (3.4.0-SNAPSHOT), which may change unexpectedly. For production code, it's generally better to use a stable release version.
🌐 Web query:
💡 Result:
The latest stable release version of the velocity-api is 3.1.9. This version is listed in the Maven Repository as part of the 3.1.x release line[18]. While a newer snapshot version (3.4.0-SNAPSHOT) exists, it is not considered stable and remains under active development[8][16].
For context, the Apache Velocity Engine (a separate project) has its latest stable release at version 2.4.1[1][3][7][9]. However, the velocity-api specifically, maintained under the
com.velocitypowered
group, is distinct from the Apache project and follows its own release cycle.Citations:
Action: Update velocity-api dependency version to a stable release
Although the current SNAPSHOT version (3.4.0-SNAPSHOT) may offer the latest features, it is inherently unstable and subject to unexpected changes. The latest stable release of velocity-api is 3.1.9, which is better suited for production use.
zander-velocity/pom.xml
<version>3.4.0-SNAPSHOT</version>
with<version>3.1.9</version>
to ensure stability in production.