Nfc reader (#2)

* added pn532.jar

* added pn532

* changed KartenLeserer

* added leser to BackendServer

* added welcheKarteSticht methode

* added welcheKarteSticht methode

* added sendKarte tofrontend when scanned

* added build config

* installed pn532 as local dependency

* added local dependency to pom

* edited KartenLeser

* edited KartenLeser

* edited KartenLeser

* edited KartenLeser

* edited pom

* edited pom

* edited pom

* deleted unused files

* added led

* added led

* added right dot env path

* added right dot env path

* added waitForScanMethod

* added waitForScanMethod

* added waitForScanMethod

* added waitForScanMethod

* added waitForScanMethod

* added waitForScanMethod

* removed unused print statements

* removed unused imports

* removed pn532 jar

* removed pn532 jar
This commit is contained in:
Valentin Heiserer
2023-11-16 18:07:37 +01:00
committed by GitHub
parent e63f18f4b7
commit 7f2cf98607
19 changed files with 307 additions and 155 deletions

94
pom.xml
View File

@@ -12,8 +12,76 @@
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- DEPENDENCIES VERSIONS -->
<slf4j.version>1.7.32</slf4j.version>
<pi4j.version>2.4.0</pi4j.version>
<maven-compiler.version>3.5.1</maven-compiler.version>
</properties>
<build>
<finalName>schafkopf-backend-build</finalName>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<archive>
<manifest>
<mainClass>org.example.BackendServer</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
<verbose>false</verbose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
</transformers>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>in-project</id>
<name>In Project Repo</name>
<url>file://${project.basedir}/lib</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${slf4j.version}</version>
</dependency>
<!-- To write basic websockets against -->
<dependency>
<groupId>org.eclipse.jetty.websocket</groupId>
@@ -47,5 +115,31 @@
<artifactId>dotenv-java</artifactId>
<version>3.0.0</version>
</dependency>
<!-- include Pi4J Core -->
<dependency>
<groupId>com.pi4j</groupId>
<artifactId>pi4j-core</artifactId>
<version>${pi4j.version}</version> <!-- Use the latest version available -->
</dependency>
<!-- include Pi4J Plugins (Platforms and I/O Providers) -->
<dependency>
<groupId>com.pi4j</groupId>
<artifactId>pi4j-plugin-raspberrypi</artifactId>
<version>${pi4j.version}</version>
</dependency>
<dependency>
<groupId>com.pi4j</groupId>
<artifactId>pi4j-plugin-pigpio</artifactId>
<version>${pi4j.version}</version>
</dependency>
<dependency>
<groupId>pn532</groupId>
<artifactId>pn532-sdk</artifactId>
<version>1.0.2</version>
</dependency>
</dependencies>
</project>