Skip to content

Commit f636639

Browse files
committed
Yeetus deletus Groovy, 1.3.0 Release
1 parent 65d85b3 commit f636639

18 files changed

Lines changed: 142 additions & 167 deletions

File tree

.codecov.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/gradle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v1
11+
- uses: actions/checkout@v2
1212
- name: Set up JDK 11
13-
uses: actions/setup-java@v1
13+
uses: actions/setup-java@v2
1414
with:
1515
java-version: 11
1616
- name: Build with Gradle

.travis.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

build.gradle

Lines changed: 0 additions & 80 deletions
This file was deleted.

build.gradle.kts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
plugins {
2+
base
3+
`java-library`
4+
id("com.github.johnrengelman.shadow") version "7.1.2" apply false
5+
}
6+
7+
allprojects {
8+
apply(plugin = "java")
9+
group = "io.papermc.debuggery"
10+
version = "1.3.0"
11+
12+
java {
13+
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
14+
}
15+
}
16+
17+
subprojects {
18+
tasks {
19+
withType<JavaCompile> {
20+
options.encoding = Charsets.UTF_8.name()
21+
options.release.set(11)
22+
}
23+
withType<Javadoc> {
24+
options.encoding = Charsets.UTF_8.name()
25+
}
26+
withType<ProcessResources> {
27+
filteringCharset = Charsets.UTF_8.name()
28+
}
29+
}
30+
31+
dependencies {
32+
compileOnly("org.jetbrains:annotations:23.0.0")
33+
testImplementation("org.jetbrains:annotations:23.0.0")
34+
testImplementation("org.junit.jupiter:junit-jupiter-api:5.7.0")
35+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.7.0")
36+
}
37+
}

debuggery-bukkit/build.gradle

Lines changed: 0 additions & 16 deletions
This file was deleted.

debuggery-bukkit/build.gradle.kts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
plugins {
2+
id("com.github.johnrengelman.shadow")
3+
}
4+
5+
tasks {
6+
withType<ProcessResources> {
7+
filesMatching("plugin.yml") {
8+
expand("version" to project.version)
9+
}
10+
}
11+
12+
val shadowJar = named<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJar") {
13+
archiveClassifier.set("")
14+
from(project.rootProject.file("LICENSE.md"))
15+
}
16+
17+
build {
18+
dependsOn(shadowJar)
19+
}
20+
}
21+
22+
dependencies {
23+
implementation(project(":debuggery-common"))
24+
compileOnly("com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT")
25+
testImplementation(project(path = ":debuggery-common", configuration = "testArchive"))
26+
testImplementation("com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT")
27+
}

debuggery-bukkit/src/main/resources/plugin.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Debuggery
22
main: io.zachbr.debuggery.DebuggeryJavaPlugin
3-
version: 1.3.0-SNAPSHOT #TODO
3+
version: ${version}
44
api-version: 1.13
5-
author: Z750
6-
website: https://github.com/zachbr/Debuggery
5+
authors: [Z750, kennytv]
6+
website: https://github.com/PaperMC/Debuggery
77
description: A small plugin designed to expose API values at runtime.
88
commands:
99
debuggery:

debuggery-bukkit/src/test/java/io/zachbr/debuggery/reflection/bukkit/BukkitInputHandlerTest.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@
2222
import io.zachbr.debuggery.reflection.types.InputException;
2323
import io.zachbr.debuggery.reflection.types.TypeHandler;
2424
import io.zachbr.debuggery.reflection.types.handlers.bukkit.BukkitBootstrap;
25-
import org.bukkit.*;
26-
import org.bukkit.entity.*;
25+
import org.bukkit.Difficulty;
26+
import org.bukkit.GameMode;
27+
import org.bukkit.Material;
28+
import org.bukkit.NamespacedKey;
29+
import org.bukkit.entity.Creeper;
30+
import org.bukkit.entity.Pig;
31+
import org.bukkit.entity.Zombie;
2732
import org.bukkit.inventory.ItemStack;
2833
import org.bukkit.material.MaterialData;
2934
import org.bukkit.potion.PotionEffect;
@@ -108,6 +113,7 @@ public void testItemStack() throws InputException {
108113
assertSame(Material.DIAMOND, ((ItemStack) output[0]).getType());
109114
}
110115

116+
@SuppressWarnings("deprecation")
111117
@Test
112118
public void testMaterialData() throws InputException {
113119
Class[] inputTypes = {MaterialData.class};
@@ -207,9 +213,7 @@ public void testPotionEffectType() throws InputException {
207213
assertSame(PotionEffectType.INVISIBILITY, output[2]);
208214

209215
// Test throws when no type exists
210-
Assertions.assertThrows(InputException.class, () -> {
211-
Object[] out = typeHandler.instantiateTypes(new Class[]{PotionEffectType.class}, Collections.singletonList("doesntExist"));
212-
});
216+
Assertions.assertThrows(InputException.class, () -> typeHandler.instantiateTypes(new Class[]{PotionEffectType.class}, Collections.singletonList("doesntExist")));
213217
}
214218

215219
@Test

0 commit comments

Comments
 (0)