Skip to content

Commit

Permalink
Implement MySQL 8 support #1779
Browse files Browse the repository at this point in the history
  • Loading branch information
sgdc3 committed Aug 21, 2021
1 parent 18c31e3 commit 97a599c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
9 changes: 6 additions & 3 deletions docs/config.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- AUTO-GENERATED FILE! Do not edit this directly -->
<!-- File auto-generated on Sat Aug 21 22:53:23 CEST 2021. See docs/config/config.tpl.md -->
<!-- File auto-generated on Sat Aug 21 23:12:31 CEST 2021. See docs/config/config.tpl.md -->

## AuthMe Configuration
The first time you run AuthMe it will create a config.yml file in the plugins/AuthMe folder,
Expand Down Expand Up @@ -28,7 +28,10 @@ DataSource:
mySQLUsername: authme
# Password to connect to the MySQL database
mySQLPassword: '12345'
# Driver Name of the MySQL database
# Driver Name of the MySQL database.
# Built-in drivers:
# MySQL: 'com.mysql.cj.jdbc.Driver'
# MariaDB: 'org.mariadb.jdbc.Driver'
mySQLDriverClassName: com.mysql.cj.jdbc.Driver
# Database Name, use with converters or as SQLITE database name
mySQLDatabase: authme
Expand Down Expand Up @@ -587,4 +590,4 @@ To change settings on a running server, save your changes to config.yml and use

---

This page was automatically generated on the [AuthMe/AuthMeReloaded repository](https://github.com/AuthMe/AuthMeReloaded/tree/master/docs/) on Sat Aug 21 22:53:23 CEST 2021
This page was automatically generated on the [AuthMe/AuthMeReloaded repository](https://github.com/AuthMe/AuthMeReloaded/tree/master/docs/) on Sat Aug 21 23:12:31 CEST 2021
16 changes: 13 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<maven.minimumVersion>3.6.0</maven.minimumVersion>

<!-- Dependencies versions -->
<spigot.version>1.17-R0.1-SNAPSHOT</spigot.version>
<spigot.version>1.17.1-R0.1-SNAPSHOT</spigot.version>

<!-- Versioning properties -->
<project.outputName>AuthMe</project.outputName>
Expand Down Expand Up @@ -290,25 +290,29 @@
<goals>
<goal>shade</goal>
</goals>
<!--
<configuration>
<artifactSet>
<excludes>
<exclude>mysql:mysql-connector-java</exclude>
</excludes>
</artifactSet>
</configuration>
-->
</execution>
<!--
<execution>
<id>shaded-jar-legacy</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<!-- Use the base jar name, to help server owners download the right jar -->
Use the base jar name, to help server owners download the right jar
<finalName>${project.finalNameBase}-legacy</finalName>
</configuration>
</execution>
-->
</executions>
<configuration>
<!-- Don't create the reduced pom file, as we don't deploy the shaded jar -->
Expand Down Expand Up @@ -623,7 +627,13 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.49</version>
<version>8.0.26</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<version>2.7.4</version>
<optional>true</optional>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ public final class DatabaseSettings implements SettingsHolder {
public static final Property<String> MYSQL_PASSWORD =
newProperty("DataSource.mySQLPassword", "12345");

@Comment("Driver Name of the MySQL database")
@Comment({"Driver Name of the MySQL database.",
"Built-in drivers:",
" MySQL: 'com.mysql.cj.jdbc.Driver'",
" MariaDB: 'org.mariadb.jdbc.Driver'"})
public static final Property<String> MYSQL_DRIVER_CLASS_NAME =
newProperty("DataSource.mySQLDriverClassName", "com.mysql.cj.jdbc.Driver");

Expand Down

0 comments on commit 97a599c

Please sign in to comment.