diff --git a/.gradle/7.6.1/checksums/checksums.lock b/.gradle/7.6.1/checksums/checksums.lock index e5740c4..76f4f7a 100644 Binary files a/.gradle/7.6.1/checksums/checksums.lock and b/.gradle/7.6.1/checksums/checksums.lock differ diff --git a/.gradle/7.6.1/checksums/sha1-checksums.bin b/.gradle/7.6.1/checksums/sha1-checksums.bin index d0fc407..6cdd46a 100644 Binary files a/.gradle/7.6.1/checksums/sha1-checksums.bin and b/.gradle/7.6.1/checksums/sha1-checksums.bin differ diff --git a/.gradle/7.6.1/executionHistory/executionHistory.bin b/.gradle/7.6.1/executionHistory/executionHistory.bin index e0ddbc5..ba42670 100644 Binary files a/.gradle/7.6.1/executionHistory/executionHistory.bin and b/.gradle/7.6.1/executionHistory/executionHistory.bin differ diff --git a/.gradle/7.6.1/executionHistory/executionHistory.lock b/.gradle/7.6.1/executionHistory/executionHistory.lock index 5a6ca2b..3471f87 100644 Binary files a/.gradle/7.6.1/executionHistory/executionHistory.lock and b/.gradle/7.6.1/executionHistory/executionHistory.lock differ diff --git a/.gradle/7.6.1/fileHashes/fileHashes.bin b/.gradle/7.6.1/fileHashes/fileHashes.bin index 6ff4237..3851db2 100644 Binary files a/.gradle/7.6.1/fileHashes/fileHashes.bin and b/.gradle/7.6.1/fileHashes/fileHashes.bin differ diff --git a/.gradle/7.6.1/fileHashes/fileHashes.lock b/.gradle/7.6.1/fileHashes/fileHashes.lock index 95e9277..16ef676 100644 Binary files a/.gradle/7.6.1/fileHashes/fileHashes.lock and b/.gradle/7.6.1/fileHashes/fileHashes.lock differ diff --git a/.gradle/7.6.1/fileHashes/resourceHashesCache.bin b/.gradle/7.6.1/fileHashes/resourceHashesCache.bin index 9ec6653..d062252 100644 Binary files a/.gradle/7.6.1/fileHashes/resourceHashesCache.bin and b/.gradle/7.6.1/fileHashes/resourceHashesCache.bin differ diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 7c2308a..86a1ecb 100644 Binary files a/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/.gradle/file-system.probe b/.gradle/file-system.probe index c14cf45..2d706ac 100644 Binary files a/.gradle/file-system.probe and b/.gradle/file-system.probe differ diff --git a/README.md b/README.md new file mode 100644 index 0000000..7689d03 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# Build from windows command line: +## 1. cd /path/to/project +## 2. gradlew.bat build +## 3. find .jar file in build/libs \ No newline at end of file diff --git a/build-old.gradle b/build-old.gradle deleted file mode 100644 index 1fe7ac2..0000000 --- a/build-old.gradle +++ /dev/null @@ -1,89 +0,0 @@ -plugins { - id 'eclipse' - id 'maven-publish' - id 'net.minecraftforge.gradle' version '5.1.+' -} - -version = '1.0' -group = 'com.example.playerstats' -archivesBaseName = 'playerstats' - -java.toolchain.languageVersion = JavaLanguageVersion.of(17) - -minecraft { - mappings channel: 'official', version: '1.18.2' - - runs { - client { - workingDirectory project.file('run') - property 'forge.logging.markers', 'REGISTRIES' - property 'forge.logging.console.level', 'debug' - mods { - playerstats { - source sourceSets.main - } - } - } - - server { - workingDirectory project.file('run') - property 'forge.logging.markers', 'REGISTRIES' - property 'forge.logging.console.level', 'debug' - mods { - playerstats { - source sourceSets.main - } - } - } - - // Add test configuration - gameTestServer { - workingDirectory project.file('run') - property 'forge.logging.markers', 'REGISTRIES' - property 'forge.logging.console.level', 'debug' - mods { - playerstats { - source sourceSets.main - } - } - } - } -} - -dependencies { - minecraft 'net.minecraftforge:forge:1.18.2-40.1.0' - implementation 'mysql:mysql-connector-java:8.0.27' - - // Test dependencies - 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' - testImplementation 'org.mockito:mockito-junit-jupiter:4.3.1' - testImplementation 'org.hamcrest:hamcrest:2.2' -} - -test { - useJUnitPlatform() - testLogging { - events "passed", "skipped", "failed" - } -} - -jar { - manifest { - attributes([ - "Specification-Title": "playerstats", - "Specification-Vendor": "examplemodsareus", - "Specification-Version": "1", - "Implementation-Title": project.name, - "Implementation-Version": project.jar.archiveVersion, - "Implementation-Vendor" :"examplemodsareus", - "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") - ]) - } -} - -// Add repositories if needed -repositories { - mavenCentral() -} \ No newline at end of file diff --git a/build/classes/java/main/minecraft_mod_player_statistics/src/main/java/DatabaseManager.class b/build/classes/java/main/minecraft_mod_player_statistics/src/main/java/DatabaseManager.class index 9595572..17dc2c1 100644 Binary files a/build/classes/java/main/minecraft_mod_player_statistics/src/main/java/DatabaseManager.class and b/build/classes/java/main/minecraft_mod_player_statistics/src/main/java/DatabaseManager.class differ diff --git a/build/libs/playerstats-1.0.jar b/build/libs/playerstats-1.0.jar index 0015291..8b85e67 100644 Binary files a/build/libs/playerstats-1.0.jar and b/build/libs/playerstats-1.0.jar differ diff --git a/build/reobfJar/log.txt b/build/reobfJar/log.txt index 82067c8..d7db8ff 100644 --- a/build/reobfJar/log.txt +++ b/build/reobfJar/log.txt @@ -3,7 +3,7 @@ Arguments: '--in-jar, C:\Users\edwar\OneDrive\Documents\Minecraft\minecraft_mod_ Classpath: - C:\Users\edwar\.gradle\caches\forge_gradle\maven_downloader\net\md-5\SpecialSource\1.11.0\SpecialSource-1.11.0-shaded.jar - C:\Users\edwar\.gradle\caches\modules-2\files-2.1\mysql\mysql-connector-java\8.0.27\f1da9f10a3de6348725a413304aab6d0aa04f923\mysql-connector-java-8.0.27.jar - - C:\Users\edwar\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.18.2-40.1.0_mapped_official_1.18.2\forge-1.18.2-40.1.0_mapped_official_1.18.2.jar + - C:\Users\edwar\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.18.2-40.1.0_mapped_official_1.18.2\forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar - C:\Users\edwar\.gradle\caches\modules-2\files-2.1\com.google.protobuf\protobuf-java\3.11.4\7ec0925cc3aef0335bbc7d57edfd42b0f86f8267\protobuf-java-3.11.4.jar - C:\Users\edwar\.gradle\caches\forge_gradle\minecraft_repo\versions\1.18.2\client-extra.jar - C:\Users\edwar\.gradle\caches\modules-2\files-2.1\net.minecraftforge\fmlloader\1.18.2-40.1.0\842aac12c6cbd1b6dc9dd9ae4e98038e70a2b832\fmlloader-1.18.2-40.1.0.jar diff --git a/build/reobfJar/output.jar b/build/reobfJar/output.jar index 0015291..8b85e67 100644 Binary files a/build/reobfJar/output.jar and b/build/reobfJar/output.jar differ diff --git a/build/reports/tests/test/classes/minecraft_mod_player_statistics.src.test.java.DatabaseManagerTest.html b/build/reports/tests/test/classes/minecraft_mod_player_statistics.src.test.java.DatabaseManagerTest.html index eb37830..50aeb23 100644 --- a/build/reports/tests/test/classes/minecraft_mod_player_statistics.src.test.java.DatabaseManagerTest.html +++ b/build/reports/tests/test/classes/minecraft_mod_player_statistics.src.test.java.DatabaseManagerTest.html @@ -41,7 +41,7 @@
duration