Skip to content

Commit

Permalink
Update release tasks to include jar with drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
Iru21 committed Aug 23, 2023
1 parent 5504cc6 commit 8ef5dcb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ tasks {
versionType.set("release")
versionName.set("$pluginName $version")
uploadFile.set(shadowJar as Any)
additionalFiles.set(listOf(shadowJarDrivers))
gameVersions.addAll("1.17", "1.18", "1.19", "1.20")
loaders.addAll("spigot", "paper", "purpur")
changelog.set(rootProject.file("changelog.md").readText())
Expand All @@ -94,6 +95,8 @@ tasks {

val createGitHubRelease by registering {
dependsOn(shadowJar)
dependsOn(shadowJarDrivers)

doLast {
val git = Grgit.open {
dir = projectDir
Expand All @@ -109,7 +112,7 @@ tasks {
}
git.close()

val command = "gh release create $tagName -F changelog.md -t \"$tagName\" \"build/libs/${pluginName}-${pluginVersion}.jar\""
val command = "gh release create $tagName -F changelog.md -t \"$tagName\" \"build/libs/${pluginName}-${pluginVersion}.jar\" \"build/libs/${pluginName}-${pluginVersion}-drv.jar\""
val process = ProcessBuilder(command.split(" ")).start()
process.waitFor()
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/me/iru/data/DatabaseConnection.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class DatabaseConnection(val type: DatabaseType) {
}

private fun connectSQLite(): Connection {
Class.forName("org.sqlite.JDBC");
Class.forName("org.sqlite.JDBC")

if(!authy.dataFolder.exists()) {
authy.dataFolder.mkdir()
Expand Down

0 comments on commit 8ef5dcb

Please sign in to comment.