Skip to content
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

Merge dev/patch into master #6167

Merged
merged 19 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
886fb67
Update Minecraft wiki links to new domain (#6078)
Spongecade Oct 2, 2023
1789a95
⚒ Fix fake player count paper check error (#6090)
AyhamAl-Ali Oct 3, 2023
b774caf
Fix Command Help (#6080)
UnderscoreTud Oct 3, 2023
71b05eb
Bump net.kyori:adventure-text-serializer-bungeecord from 4.3.0 to 4.3…
dependabot[bot] Oct 5, 2023
da97d3e
Fix unloading/reloading a directory in the scripts effect (#6106)
Moderocky Oct 8, 2023
54f1249
Force UTF-8 encoding for Gradle daemon (#6103)
APickledWalrus Oct 9, 2023
61201bd
Corrected Javadocs name, title (#6038)
MihirKohli Oct 9, 2023
c34b83a
Rebase JUnit references fix for dev/patch (#6057)
TheLimeGlass Oct 10, 2023
74c4d63
Fix options issue in functions (#6121)
APickledWalrus Oct 15, 2023
ed6174c
Fix command permission messages (2.7.1 issue) (#6126)
sovdeeth Oct 16, 2023
86fe449
Fix stack overflow when stringifying block inventories. (#6117)
Moderocky Oct 16, 2023
8423652
Fix comparison of cyclical types (specifically comparing times) (#6128)
Moderocky Oct 17, 2023
5ba4dba
Fix floating point rounding error in loop N times (#6132)
Moderocky Oct 17, 2023
8895157
Fix Sorted List Expression (#6102)
UnderscoreTud Oct 30, 2023
9deb288
Fix colour codes being reset in reload message. (#6150)
Moderocky Oct 30, 2023
a91bf9a
Fix ExprDurability's Changer (#6154)
UnderscoreTud Nov 1, 2023
451b739
Catch the exception when pushing entity by non finite vector (#5765)
3meraldK Jul 19, 2023
7eaacc8
Fix issues with ExprDrops (#6130)
sovdeeth Nov 1, 2023
0e6be2d
Prepare For Release (2.7.2) (#6166)
APickledWalrus Nov 1, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,6 @@ gradle-app.setting
# TODO remove this in the future after some time since https://github.com/SkriptLang/Skript/pull/4979
# This ensures developers don't upload their old existing test_runners/ folder.
test_runners/

## Mac MetaData
**/.DS_Store
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ allprojects {
dependencies {
shadow group: 'io.papermc', name: 'paperlib', version: '1.0.8'
shadow group: 'org.bstats', name: 'bstats-bukkit', version: '3.0.2'
shadow group: 'net.kyori', name: 'adventure-text-serializer-bungeecord', version: '4.3.0'
shadow group: 'net.kyori', name: 'adventure-text-serializer-bungeecord', version: '4.3.1'

implementation group: 'io.papermc.paper', name: 'paper-api', version: '1.20.2-R0.1-SNAPSHOT'
implementation group: 'org.eclipse.jdt', name: 'org.eclipse.jdt.annotation', version: '2.2.700'
Expand Down Expand Up @@ -150,7 +150,7 @@ license {
}

task releaseJavadoc(type: Javadoc) {
title = project.property('version')
title = project.name + ' ' + project.property('version')
source = sourceSets.main.allJava
classpath = configurations.compileClasspath
options.encoding = 'UTF-8'
Expand Down Expand Up @@ -223,7 +223,7 @@ void createTestTask(String name, String desc, String environments, int javaVersi
main = 'ch.njol.skript.test.platform.PlatformMain'
args = [
'build/test_runners',
junit ? 'src/test/skript/tests/junit' : 'src/test/skript/tests',
junit ? 'src/test/skript/junit' : 'src/test/skript/tests',
'src/test/resources/runner_data',
environments,
modifiers.contains(Modifiers.DEV_MODE),
Expand Down
5 changes: 4 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Ensure encoding is consistent across systems
org.gradle.jvmargs=-Dfile.encoding=UTF-8

groupid=ch.njol
name=skript
version=2.7.1
version=2.7.2
jarName=Skript.jar
testEnv=java17/paper-1.20.2
testEnvJavaVersion=17
2 changes: 1 addition & 1 deletion skript-aliases
Submodule skript-aliases updated 1 files
+3 −1 decoration.sk
9 changes: 5 additions & 4 deletions src/main/java/ch/njol/skript/Skript.java
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,8 @@ public void run() {
tainted = true;
try {
getAddonInstance().loadClasses("ch.njol.skript.test.runner");
if (TestMode.JUNIT)
getAddonInstance().loadClasses("org.skriptlang.skript.test.junit.registration");
} catch (IOException e) {
Skript.exception("Failed to load testing environment.");
Bukkit.getServer().shutdown();
Expand Down Expand Up @@ -684,7 +686,6 @@ protected void afterErrors() {
TestTracker.testFailed("exception was thrown during execution");
}
if (TestMode.JUNIT) {
SkriptLogger.setVerbosity(Verbosity.DEBUG);
info("Running all JUnit tests...");
long milliseconds = 0, tests = 0, fails = 0, ignored = 0, size = 0;
try {
Expand Down Expand Up @@ -712,7 +713,7 @@ protected void afterErrors() {
// If JUnit failures are present, add them to the TestTracker.
junit.getFailures().forEach(failure -> {
String message = failure.getMessage() == null ? "" : " " + failure.getMessage();
TestTracker.testFailed("'" + test + "': " + message);
TestTracker.JUnitTestFailed(test, message);
Skript.exception(failure.getException(), "JUnit test '" + failure.getTestHeader() + " failed.");
});
SkriptJUnitTest.clearJUnitTest();
Expand All @@ -734,7 +735,7 @@ protected void afterErrors() {
// Delay server shutdown to stop the server from crashing because the current tick takes a long time due to all the tests
Bukkit.getScheduler().runTaskLater(Skript.this, () -> {
if (TestMode.JUNIT && !EffObjectives.isJUnitComplete())
TestTracker.testFailed(EffObjectives.getFailedObjectivesString());
EffObjectives.fail();

info("Collecting results to " + TestMode.RESULTS_FILE);
String results = new Gson().toJson(TestTracker.collectResults());
Expand Down Expand Up @@ -1261,7 +1262,7 @@ public static boolean isAcceptRegistrations() {
}

public static void checkAcceptRegistrations() {
if (!isAcceptRegistrations())
if (!isAcceptRegistrations() && !Skript.testing())
throw new SkriptAPIException("Registration can only be done during plugin initialization");
}

Expand Down
Loading