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="url" value="https://repo.maven.apache.org/maven2/" />
</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>
</project>

View File

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

View File

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