-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
1,090 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,11 +11,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 18 | ||
- name: Set up JDK 15 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: adopt | ||
java-version: 18 | ||
java-version: 15 | ||
- name: Build Javadocs | ||
run: | | ||
echo "Building javadocs with gradle" | ||
|
@@ -25,7 +25,7 @@ jobs: | |
echo "Creating .nojekyll to have Github pages deploy html as is:" | ||
touch .nojekyll | ||
- name: Deploy | ||
uses: JamesIves/[email protected].0 | ||
uses: JamesIves/[email protected].1 | ||
with: | ||
branch: gh-pages # The branch the action should deploy to. | ||
folder: build/docs/javadoc # The folder the action should deploy. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
dependencies { | ||
api("org.slf4j", "slf4j-api", "2.0.3") | ||
api("org.jetbrains", "annotations", "23.0.0") | ||
api("org.slf4j", "slf4j-api", "2.0.7") | ||
api("org.jetbrains", "annotations", "24.0.1") | ||
api("com.google.code.findbugs", "jsr305", "3.0.2") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
sadu-core/src/main/java/de/chojo/sadu/updater/UpdaterBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* SPDX-License-Identifier: AGPL-3.0-only | ||
* | ||
* Copyright (C) 2022 RainbowDashLabs and Contributor | ||
*/ | ||
|
||
package de.chojo.sadu.updater; | ||
|
||
import de.chojo.sadu.jdbc.JdbcConfig; | ||
import org.jetbrains.annotations.ApiStatus; | ||
|
||
import javax.sql.DataSource; | ||
|
||
@ApiStatus.Internal | ||
public interface UpdaterBuilder<T extends JdbcConfig<?>, S extends UpdaterBuilder<T, ?>> { | ||
void setSource(DataSource source); | ||
void setVersion(SqlVersion version); | ||
} |
29 changes: 29 additions & 0 deletions
29
sadu-core/src/test/java/de/chojo/sadu/conversion/UUIDConverterTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* SPDX-License-Identifier: AGPL-3.0-only | ||
* | ||
* Copyright (C) 2022 RainbowDashLabs and Contributor | ||
*/ | ||
|
||
package de.chojo.sadu.conversion; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import java.util.UUID; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
import static org.junit.jupiter.api.Assertions.assertNull; | ||
|
||
class UUIDConverterTest { | ||
|
||
@Test | ||
void convert() { | ||
// Check if you can still convert with bytes | ||
UUID uuid = UUID.fromString("7ccf6e1c-68fc-442d-88d0-341b315a29cd"); | ||
byte[] uuidAsByte = UUIDConverter.convert(uuid); | ||
|
||
assertEquals(UUIDConverter.convert(uuidAsByte), uuid); | ||
|
||
// Check if the new null check works | ||
assertNull(UUIDConverter.convert((byte[]) null)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
sadu-datasource/src/main/java/de/chojo/sadu/datasource/DriverClassNotFoundException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* SPDX-License-Identifier: AGPL-3.0-only | ||
* | ||
* Copyright (C) 2022 RainbowDashLabs and Contributor | ||
*/ | ||
|
||
package de.chojo.sadu.datasource; | ||
|
||
/** | ||
* Thrown when a driver class is not found. | ||
*/ | ||
|
||
public class DriverClassNotFoundException extends RuntimeException { | ||
|
||
public DriverClassNotFoundException(String message, ClassNotFoundException e) { | ||
super(message, e); | ||
} | ||
} |
Oops, something went wrong.