Skip to content

Commit

Permalink
🔧 Update Skript dependency and simplify Jar import
Browse files Browse the repository at this point in the history
Updated the Skript library to version 2.10.0 for stability and compatibility improvements. Simplified the `JarFile` import by removing redundant package specification.
  • Loading branch information
ItsTheSky committed Jan 16, 2025
1 parent 19d5622 commit e0d232a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

import java.util.jar.JarFile

plugins {
id 'maven-publish'
id 'java'
Expand Down Expand Up @@ -32,7 +34,7 @@ repositories {

dependencies {
shadow 'io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT'
shadow 'com.github.SkriptLang:Skript:2.10.0-pre1'
shadow 'com.github.SkriptLang:Skript:2.10.0'
// Jetbrains Annotations
shadow 'org.jetbrains:annotations:23.0.0'

Expand Down Expand Up @@ -60,7 +62,7 @@ task removeClassPath {
manifestFile.parentFile.mkdirs()

// Lire le manifest existant
def origManifest = new java.util.jar.JarFile(jarFile).manifest
def origManifest = new JarFile(jarFile).manifest

// Créer un nouveau manifest sans Class-Path
def newManifest = new StringBuilder()
Expand Down

0 comments on commit e0d232a

Please sign in to comment.