Skip to content

Commit 0776be6

Browse files
Merge pull request #12 from QuiltServerTools/feat/performance
2 parents a767a78 + a884460 commit 0776be6

File tree

15 files changed

+281
-187
lines changed

15 files changed

+281
-187
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ url = ""
2828
username = ""
2929
password = ""
3030
properties = []
31+
maxPoolSize = 10
32+
connectionTimeout = 60000
3133
```
3234

3335
`url`: Must be URL of database with `/<database_name>` appended. An example URL would be `localhost/ledger`. You can optionally add port information such as `localhost:3000/ledger`
@@ -41,6 +43,15 @@ url = ""
4143
username = ""
4244
password = ""
4345
properties = []
46+
maxPoolSize = 10
47+
connectionTimeout = 60000
48+
```
49+
50+
## SQLite
51+
52+
```toml
53+
[database_extensions]
54+
database = "SQLITE"
4455
```
4556

4657
## Connector properties

build.gradle

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
2-
id 'fabric-loom' version '0.10-SNAPSHOT'
2+
id 'fabric-loom' version '1.2.+'
33
id 'maven-publish'
4-
id 'org.jetbrains.kotlin.jvm' version "1.6.0"
4+
id 'org.jetbrains.kotlin.jvm' version "1.8.22"
55
}
66

77
sourceCompatibility = JavaVersion.VERSION_17
@@ -19,9 +19,6 @@ repositories {
1919
maven {
2020
url = "https://oss.sonatype.org/content/repositories/snapshots"
2121
}
22-
maven {
23-
url = "https://maven.bymartrixx.me/"
24-
}
2522
}
2623

2724
dependencies {
@@ -30,22 +27,21 @@ dependencies {
3027
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
3128
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
3229

33-
// Fabric API. This is technically optional, but you probably want it anyway.
34-
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
35-
3630
// Yes this has to be capitalised
37-
modImplementation "com.github.quiltservertools:ledger:1.2.0"
31+
modImplementation "com.github.quiltservertools:Ledger:1.3.0+local"
32+
33+
modImplementation "net.fabricmc:fabric-language-kotlin:1.9.4+kotlin.1.8.21"
3834

39-
modImplementation "net.fabricmc:fabric-language-kotlin:1.7.0+kotlin.1.6.0"
35+
implementation(include("com.zaxxer:HikariCP:5.0.1"))
4036

4137
// H2
42-
implementation(include("com.h2database:h2:1.4.200"))
38+
implementation(include("com.h2database:h2:2.2.224"))
4339

4440
// MySQL
45-
implementation(include('mysql:mysql-connector-java:8.0.19'))
41+
implementation(include('com.mysql:mysql-connector-j:8.3.0'))
4642

4743
// PostgreSQL
48-
implementation(include("org.postgresql:postgresql:42.3.0"))
44+
implementation(include("org.postgresql:postgresql:42.7.3"))
4945
}
5046

5147
processResources {
@@ -79,7 +75,13 @@ jar {
7975
publishing {
8076
publications {
8177
mavenJava(MavenPublication) {
82-
from(components["java"])
78+
// add all the jars that should be included when publishing to maven
79+
artifact(remapJar) {
80+
builtBy remapJar
81+
}
82+
artifact(sourcesJar) {
83+
builtBy remapSourcesJar
84+
}
8385
}
8486
}
8587

gradle.properties

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
# Done to increase the memory available to gradle.
2-
org.gradle.jvmargs=-Xmx1G
2+
org.gradle.jvmargs=-Xmx2G
33

44
# Fabric Properties
55
# check these on https://fabricmc.net/versions.html
6-
minecraft_version=1.18.1
7-
yarn_mappings=1.18.1+build.2
8-
loader_version=0.12.11
6+
minecraft_version=1.19
7+
yarn_mappings=1.19+build.4
8+
loader_version=0.14.8
99

1010
# Mod Properties
11-
mod_version = 1.1.1
11+
mod_version = 1.2.0
1212
maven_group = net.quiltservertools
13-
archives_base_name = ledger-databases
14-
15-
# Dependencies
16-
fabric_version=0.43.1+1.18
13+
archives_base_name = ledger-databases
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)