Cleanup build.gradle files in modules.

This commit is contained in:
retrooper committed 2022-03-10 22:04:44 +01:00
1 parent d87439cf0a
commit 3a2e636f1f
9 files changed
+16 -35

No files matched your search

-6
View File
@@ -1,16 +1,10 @@
plugins {
id 'java-library'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.1.0'
}
group = 'com.github.retrooper'
version = '2.0.0'
repositories {
mavenCentral()
}
shadowJar {
//Just for jitpack to work
archiveVersion.set('')
+11
View File
@@ -16,3 +16,14 @@ wrapper {
gradleVersion = "7.3.1"
distributionType = Wrapper.DistributionType.ALL
}
allprojects {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
repositories {
mavenLocal()
mavenCentral()
maven { url = 'https://oss.sonatype.org/content/groups/public/' }
}
}
-9
View File
@@ -1,19 +1,10 @@
plugins {
id 'java-library'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.1.0'
}
group = 'com.github.retrooper'
version = '2.0.0'
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url = 'https://oss.sonatype.org/content/groups/public/' }
}
shadowJar {
//Just for jitpack to work
archiveVersion.set('')
View File
Whitespace-only changes.
-8
View File
@@ -1,6 +1,4 @@
plugins {
id 'java-library'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.1.0'
}
@@ -14,12 +12,6 @@ shadowJar {
minimize()
}
repositories {
mavenCentral()
mavenLocal()
maven { url 'https://jitpack.io' }
}
dependencies {
compileOnly 'org.jetbrains:annotations:23.0.0'
compileOnly 'io.netty:netty-all:4.1.72.Final'
-4
View File
@@ -1,6 +1,4 @@
plugins {
id 'java-library'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.1.0'
}
@@ -8,8 +6,6 @@ group = 'com.github.retrooper'
version = '2.0.0'
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url 'https://nexus.funkemunky.cc/content/repositories/releases/' }
@@ -23,6 +23,7 @@ import com.github.retrooper.packetevents.event.PacketListenerPriority;
import com.github.retrooper.packetevents.event.SimplePacketListenerAbstract;
import com.github.retrooper.packetevents.event.simple.PacketPlayReceiveEvent;
import com.github.retrooper.packetevents.event.simple.PacketPlaySendEvent;
import com.github.retrooper.packetevents.netty.channel.ChannelHelper;
import com.github.retrooper.packetevents.protocol.packettype.PacketType;
import com.github.retrooper.packetevents.protocol.particle.Particle;
import com.github.retrooper.packetevents.protocol.particle.type.ParticleTypes;
@@ -134,6 +135,7 @@ public class PacketEventsPlugin extends JavaPlugin {
} else {
event.getUser().sendMessage(ChatColor.RED + "player null, but hi dude!!!");
}
System.out.println("Pipeline: " + ChannelHelper.pipelineHandlerNamesAsString(event.getChannel()));
} else if (event.getPacketType() == PacketType.Play.Server.CHAT_MESSAGE) {
WrapperPlayServerChatMessage chatMessage = new WrapperPlayServerChatMessage(event);
/*event.setCancelled(true);
@@ -144,7 +146,7 @@ public class PacketEventsPlugin extends JavaPlugin {
}
}
};
//PacketEvents.getAPI().getEventManager().registerListener(listener);
PacketEvents.getAPI().getEventManager().registerListener(listener);
}
@Override
@@ -18,7 +18,6 @@
package io.github.retrooper.packetevents.util;
import com.github.retrooper.packetevents.netty.channel.ChannelHelper;
import org.jetbrains.annotations.NotNull;
import java.util.Collection;
@@ -30,6 +29,7 @@ import java.util.function.Consumer;
public class InjectedList<E> implements List<E> {
private final List<E> originalList;
private final Consumer<E> pushBackAction;
public InjectedList(List<E> originalList, Consumer<E> pushBackAction) {
for (E key : originalList) {
pushBackAction.accept(key);
@@ -106,6 +106,7 @@ public class InjectedList<E> implements List<E> {
public synchronized <T> T[] toArray(@NotNull T[] a) {
return originalList.toArray(a);
}
@Override
public synchronized boolean remove(Object o) {
return originalList.remove(o);
-6
View File
@@ -1,6 +1,4 @@
plugins {
id 'java-library'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.1.0'
}
@@ -8,10 +6,6 @@ group = 'com.github.retrooper'
version = '2.0.0'
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url = 'https://oss.sonatype.org/content/groups/public/' }
maven {
url 'https://repo.velocitypowered.com/snapshots/'
}