1. Fix: Change database schema and table names. \n 2. Remove sync_instance_with_server.bat from this project to server project so users do not need access to this project.

This commit is contained in:
2024-12-05 12:35:59 +00:00
parent ed6ce0fdc3
commit 434061e82b
4 changed files with 48 additions and 16 deletions

View File

@@ -18,6 +18,12 @@ archivesBaseName = 'playerstats'
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
// Create a configuration for including dependencies in the JAR
configurations {
shade
implementation.extendsFrom shade
}
minecraft {
mappings channel: 'official', version: '1.18.2'
runs {
@@ -54,7 +60,10 @@ repositories {
dependencies {
minecraft 'net.minecraftforge:forge:1.18.2-40.2.4'
implementation 'mysql:mysql-connector-java:8.0.27'
// Add MySQL connector to the shade configuration
shade 'mysql:mysql-connector-java:8.0.27'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
testImplementation 'org.mockito:mockito-core:4.3.1'
@@ -73,6 +82,14 @@ jar {
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
// Include shaded dependencies
from {
configurations.shade.collect { it.isDirectory() ? it : zipTree(it) }
}
// Exclude META-INF from dependencies
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
}
test {