Skip to content

Commit

Permalink
Updated java version in maven
Browse files Browse the repository at this point in the history
  • Loading branch information
JVerbruggen committed Jul 2, 2024
1 parent a401d2d commit e42e226
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
8 changes: 8 additions & 0 deletions docs/plugin_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ and download the latest BuildTools.

Run BuildTools with the '--remapped' option, or in the gui with 'Remapped Jars'.

## 2. Update Java and Maven if necessary

BuildTools will notify you when it needs a Java update. However, check maven as well if it is using the latest Java version.

`mvn -version`

You may have to change your JAVA_HOME environment variable.

## 2. Add new build profile to pom.xml
```xml
<profile>
Expand Down
16 changes: 8 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>17.0.5</java.version>
<java.versioneasy>17</java.versioneasy>
<maven.compiler.source>17.0.5</maven.compiler.source>
<maven.compiler.target>17.0.5</maven.compiler.target>
<java.version>21.0.3</java.version>
<java.versioneasy>21</java.versioneasy>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>

<minecraft.version.short></minecraft.version.short>
<minecraft.version.short></minecraft.version.short> <!-- Filled by profile -->
<minecraft.version.short.spigot>${minecraft.version.short}</minecraft.version.short.spigot>
<minecraft.version.apiversion></minecraft.version.apiversion>
<minecraft.version>${minecraft.version.short}-R0.1-SNAPSHOT</minecraft.version>
Expand All @@ -62,7 +62,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.10.2</version>
<version>5.10.3</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -122,7 +122,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>RELEASE</version>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -159,7 +159,7 @@
<plugin>
<groupId>net.md-5</groupId>
<artifactId>specialsource-maven-plugin</artifactId>
<version>1.2.4</version>
<version>2.0.3</version>
<executions>
<execution>
<phase>package</phase>
Expand Down

0 comments on commit e42e226

Please sign in to comment.