Skip to content

Commit 5865211

Browse files
committed
Merge branch '2.x' into feature/custom-syntax-rewrite
# Conflicts: # build.gradle
2 parents 8f8d7d9 + 75ae3d6 commit 5865211

6 files changed

Lines changed: 27 additions & 35 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Build and test
22

33
on:
44
push:
5-
branches:
6-
- 2.x
75
pull_request:
86

97
jobs:
@@ -38,7 +36,7 @@ jobs:
3836
path: extra-plugins/
3937
merge-multiple: true
4038
- name: Run tests
41-
uses: SkriptLang/skript-test-action@v1.2
39+
uses: SkriptLang/skript-test-action@v1.3
4240
with:
4341
test_script_directory: src/test/scripts
4442
extra_plugins_directory: extra-plugins/

build.gradle

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import org.apache.tools.ant.filters.ReplaceTokens
33
group 'com.btk5h.skript-mirror'
44
version '2.6.3'
55

6+
def latestJava = 25
7+
def oldestJava = 21
8+
69
apply plugin: 'java'
710

811
repositories {
@@ -18,15 +21,19 @@ processResources {
1821
}
1922

2023
java {
21-
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
24+
toolchain.languageVersion.set(JavaLanguageVersion.of(latestJava))
2225
}
2326

2427
tasks.withType(JavaCompile).configureEach {
2528
options.encoding = 'UTF-8'
29+
options.compilerArgs += [
30+
'-source', "${oldestJava}",
31+
'-target', "${oldestJava}"
32+
]
2633
}
2734

2835
dependencies {
29-
compileOnly group: 'io.papermc.paper', name: 'paper-api', version: '1.21.10-R0.1-SNAPSHOT'
30-
compileOnly group: 'com.github.SkriptLang', name: 'Skript', version: '2.14.0'
31-
compileOnly group: 'org.ow2.asm', name: 'asm', version: '9.9'
36+
compileOnly "io.papermc.paper:paper-api:26.1.2.build.+"
37+
compileOnly "com.github.SkriptLang:Skript:2.15.2"
38+
compileOnly "org.ow2.asm:asm:9.9"
3239
}

gradle/wrapper/gradle-wrapper.jar

4.59 KB
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.0-bin.zip
44
networkTimeout=10000
5+
retries=0
6+
retryBackOffMs=500
57
validateDistributionUrl=true
68
zipStoreBase=GRADLE_USER_HOME
79
zipStorePath=wrapper/dists

gradlew

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 10 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)