Skip to content

Commit

Permalink
feat: adjust to build with java 16
Browse files Browse the repository at this point in the history
  • Loading branch information
xCykrix committed Aug 16, 2024
1 parent 0cb8188 commit 2f0edee
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '22'
distribution: 'adopt'
architecture: x64
- name: Setup Gradle
Expand Down
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/modules/DynamicLights.main.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

plugins {
id("io.github.goooler.shadow") version "8.1.8"
id("java")
Expand Down Expand Up @@ -35,11 +37,16 @@ repositories {

dependencies {
compileOnly("org.spigotmc:spigot-api:1.21-R0.1-SNAPSHOT")
implementation("github.xCykrix:spigotdevkit:1.0.1")
implementation("github.xCykrix:spigotdevkit:1.0.3")
}

// Shadow Task
tasks.named<ShadowJar>("shadowJar") {
archiveClassifier = null;
}

// Target Java Build (Java 17 - Minecraft 1.17.x)
val targetJavaVersion = 17
// Target Java Build (Java 16 - Minecraft 1.17.x)
val targetJavaVersion = 16
java {
val javaVersion = JavaVersion.toVersion(targetJavaVersion)
sourceCompatibility = javaVersion
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package github.xCykrix.dynamicLights.command;

import dist.xCykrix.shade.dev.jorel.commandapi.CommandAPICommand;
import dist.xCykrix.shade.org.apache.commons.lang3.exception.ExceptionUtils;
import github.xCykrix.DevkitPlugin;
import github.xCykrix.dynamicLights.DynamicLights;
import github.xCykrix.extendable.DevkitSimpleState;
import github.xCykrix.plugin.CommandPlugin;
import github.xCykrix.shade.dev.jorel.commandapi.CommandAPICommand;
import github.xCykrix.shade.org.apache.commons.lang3.exception.ExceptionUtils;
import java.io.IOException;
import java.util.Objects;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import github.xCykrix.DevkitPlugin;
import github.xCykrix.dynamicLights.DynamicLights;
import github.xCykrix.extendable.DevkitFullState;
import github.xCykrix.shade.dev.dejvokep.boostedyaml.YamlDocument;
import github.xCykrix.shade.org.h2.mvstore.MVMap;
import dist.xCykrix.shade.dev.dejvokep.boostedyaml.YamlDocument;
import dist.xCykrix.shade.org.h2.mvstore.MVMap;
import java.util.HashMap;
import java.util.UUID;
import org.bukkit.Bukkit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import github.xCykrix.DevkitPlugin;
import github.xCykrix.dynamicLights.DynamicLights;
import github.xCykrix.extendable.DevkitFullState;
import github.xCykrix.shade.dev.dejvokep.boostedyaml.YamlDocument;
import github.xCykrix.shade.dev.dejvokep.boostedyaml.block.Block;
import dist.xCykrix.shade.dev.dejvokep.boostedyaml.YamlDocument;
import dist.xCykrix.shade.dev.dejvokep.boostedyaml.block.Block;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'DynamicLights'
description: 'Emit Light from Held Items using the 1.17 Light Blocks.'
website: 'https://www.spigotmc.org/resources/dynamiclights.110707/'
author: 'xCykrix'
version: '1.0-SNAPSHOT'
version: '1.1.0'

main: github.xCykrix.dynamicLights.DynamicLights
api-version: '1.17'
Expand Down

0 comments on commit 2f0edee

Please sign in to comment.