move java files to src\main\java

also resolves a few issues regarding the Java
environment
This commit is contained in:
nzBryce101
2024-04-05 14:07:10 +13:00
parent 97a0631b7c
commit 254b7f9a99
12 changed files with 69 additions and 2 deletions

View File

@@ -32,5 +32,7 @@
"lib/googleAPIclient/protobuf-java-3.21.2.jar",
"lib/googleAPIclient/xpp3-1.1.4c.jar",
"lib/spigotLib/spigot-api-1.20.4-R0.1-SNAPSHOT.jar"
]
],
"java.compile.nullAnalysis.mode": "automatic",
"java.configuration.updateBuildConfiguration": "automatic"
}

53
pom.xml Normal file
View File

@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>minecraft-chatbot</artifactId>
<version>1.0</version>
<properties>
<!-- Specify Java version -->
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
</properties>
<dependencies>
<!-- Spigot API dependency -->
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.20.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!-- Google API dependency -->
<dependency>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client</artifactId>
<version>1.32.1</version>
</dependency>
<!-- Add other dependencies as needed -->
</dependencies>
<build>
<plugins>
<!-- Maven Compiler Plugin configuration -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version> <!-- Use the appropriate version -->
<configuration>
<source>21</source> <!-- Update to the Java version you're using -->
<target>21</target> <!-- Update to the Java version you're using -->
<compilerArgs>
<arg>--enable-preview</arg> <!-- Enable preview features -->
</compilerArgs>
</configuration>
</plugin>
<!-- Add other plugins as needed -->
</plugins>
</build>
</project>

View File

@@ -1 +0,0 @@
{"web":{"client_id":"788006318148-mkmrd4c8fcrve7atovf34v6t72m9h4dj.apps.googleusercontent.com","project_id":"flash-bloom-419102","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"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"}}

BIN
target/classes/MCbot.jar Normal file

Binary file not shown.

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<javadocOptions>
<docletArtifacts>
<docletArtifact />
</docletArtifacts>
<tagletArtifacts>
<tagletArtifact />
</tagletArtifacts>
<javadocResourcesDirectory>src/main/javadoc</javadocResourcesDirectory>
</javadocOptions>

View File

@@ -0,0 +1,3 @@
artifactId=spigot-api
groupId=it.revarmygaming.ragcore
version=2.1

Binary file not shown.

BIN
target/spigot-api-2.1.jar Normal file

Binary file not shown.