Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Fix compilation errors on Java 8, wrong/missing dependencies... #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
33 changes: 16 additions & 17 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,6 @@
</repository>
</repositories>

<pluginRepositories>
<pluginRepository>
<id>reflections-repo</id>
<name>Reflections Maven2 Repository</name>
<url>http://reflections.googlecode.com/svn/repo</url>
</pluginRepository>
</pluginRepositories>

<dependencies>
<dependency>
<groupId>junit</groupId>
Expand Down Expand Up @@ -169,12 +161,9 @@
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
<version>0.9.5</version>
<version>0.9.8</version>
</dependency>

<!-- <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId>
<version>r08</version> </dependency> -->

<!-- Logging -->
<dependency>
<groupId>de.huxhorn.lilith</groupId>
Expand All @@ -186,9 +175,21 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>0.11.0</version>
<version>1.16.6</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3.0.5.RELEASE</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>3.0.5.RELEASE</version>
<scope>test</scope>
</dependency>
</dependencies>
<distributionManagement>
<repository>
Expand Down Expand Up @@ -225,7 +226,6 @@
<goal>enforce</goal>
</goals>
<configuration>
<message>This project is to be compiled with at least Java 6.</message>
<rules>
<requireJavaVersion>
<version>[1.6,)</version>
Expand All @@ -239,7 +239,7 @@
<plugin>
<groupId>org.reflections</groupId>
<artifactId>reflections-maven</artifactId>
<version>0.9.5</version>
<version>0.9.8</version>
<executions>
<execution>
<goals>
Expand All @@ -256,7 +256,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<version>3.5</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
Expand Down Expand Up @@ -296,7 +296,6 @@
<version>1.2</version>
<reportSets>
<reportSet>
<id></id>
<reports>
<report>dependency-updates-report</report>
<report>plugin-updates-report</report>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void sendToChain(final PacketContext packageContent) throws GGException {

protected final void registerDefaultHandlers() throws GGException {
final Configuration configuration = new ConfigurationBuilder().setScanners(new TypeAnnotationsScanner()).setUrls(
ClasspathHelper.getUrlsForPackagePrefix("pl.radical.open.gg.packet.in"));
ClasspathHelper.forPackage("pl.radical.open.gg.packet.in"));
final Reflections reflections = new Reflections(configuration);

final Set<Class<?>> classes = reflections.getTypesAnnotatedWith(IncomingPacket.class);
Expand Down