Gradle-Bearbeitung

This commit is contained in:
Mats Pape 2022-01-10 14:10:25 +01:00
parent 770e6916b5
commit 03dcf9e8a3
13 changed files with 11 additions and 4 deletions

View File

@ -16,5 +16,10 @@
<option name="name" value="MavenRepo" /> <option name="name" value="MavenRepo" />
<option name="url" value="https://repo.maven.apache.org/maven2/" /> <option name="url" value="https://repo.maven.apache.org/maven2/" />
</remote-repository> </remote-repository>
<remote-repository>
<option name="id" value="BintrayJCenter" />
<option name="name" value="BintrayJCenter" />
<option name="url" value="https://jcenter.bintray.com/" />
</remote-repository>
</component> </component>
</project> </project>

View File

@ -9,6 +9,7 @@ version '1.0-SNAPSHOT'
repositories { repositories {
mavenCentral() mavenCentral()
jcenter()
} }
ext { ext {
@ -36,6 +37,7 @@ dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}") testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}") testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
implementation 'org.mariadb.jdbc:mariadb-java-client:2.1.2'
} }
test { test {

View File

@ -13,10 +13,10 @@ public class MariaDB
public MariaDB() public MariaDB()
{ {
/*
username="root"; username="root";
pw="HappyBird1"; pw="HappyBird1";
url="jdbc:mariadb://localhost:3306/happybird"; url="jdbc:mariadb://localhost/happybird";
driver="org.mariadb.jdbc.Driver"; driver="org.mariadb.jdbc.Driver";
try { try {
Class.forName(driver); Class.forName(driver);
@ -28,8 +28,8 @@ public class MariaDB
e.printStackTrace(); e.printStackTrace();
} }
*/
/*
try try
{ {
con = DriverManager.getConnection("jdbc:mariadb://localhost:3306/happybird?user=root&password=HappyBird1"); con = DriverManager.getConnection("jdbc:mariadb://localhost:3306/happybird?user=root&password=HappyBird1");
@ -43,6 +43,6 @@ public class MariaDB
e.printStackTrace(); e.printStackTrace();
} }
*/
} }
} }