Skip to content

Commit

Permalink
chore(deps): bump to JDA 5.0.0-beta.2
Browse files Browse the repository at this point in the history
fix: add isNSFW to change detection
fix: warning in ThreadFactoryBuilder
chore: bump to 0.0.36_5.0.0-beta.2
  • Loading branch information
itsmefox committed Dec 9, 2022
1 parent 89a8568 commit 2fa4176
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<p align="center">
<a href="https://github.com/viascom/aluna-spring-boot-starter/releases"><img src="https://img.shields.io/maven-metadata/v.svg?label=maven-central&metadataUrl=https%3A%2F%2Frepo1.maven.org%2Fmaven2%2Fio%2Fviascom%2Fdiscord%2Fbot%2Faluna-spring-boot-starter%2Fmaven-metadata.xml"
alt="Maven central"></a>
<a href=""><img src="https://img.shields.io/badge/JDA--Version-5.0.0--beta.1-blue.svg"
<a href=""><img src="https://img.shields.io/badge/JDA--Version-5.0.0--beta.2-blue.svg"
alt="JDA-Version "></a>
<a href="http://www.apache.org/licenses/"><img src="https://img.shields.io/badge/license-Apache_2.0-blue.svg"
alt="license Apache 2.0"></a>
Expand All @@ -21,7 +21,7 @@

| Library | Version |
|-------------|:-----------------------------------------------------------------------------------:|
| JDA | <img src="https://img.shields.io/badge/5.0.0-beta.1-yellow.svg" alt="5.0.0-beta.1"> |
| JDA | <img src="https://img.shields.io/badge/5.0.0-beta.2-yellow.svg" alt="5.0.0-beta.2"> |
| Spring Boot | <img src="https://img.shields.io/badge/3.0.0-brightgreen.svg" alt="3.0.0"> |
| Kotlin | <img src="https://img.shields.io/badge/1.7.22-brightgreen.svg" alt="1.7.22"> |
| emoji-java | <img src="https://img.shields.io/badge/5.1.1-brightgreen.svg" alt="5.1.1"> |
Expand All @@ -31,7 +31,7 @@
Gradle:
```gradle
dependencies {
implementation 'io.viascom.discord.bot:aluna-spring-boot-starter:0.0.35_5.0.0-beta.1'
implementation 'io.viascom.discord.bot:aluna-spring-boot-starter:0.0.36_5.0.0-beta.2'
}
```

Expand All @@ -40,7 +40,7 @@ Maven:
<dependency>
<groupId>io.viascom.discord.bot</groupId>
<artifactId>aluna-spring-boot-starter</artifactId>
<version>0.0.35_5.0.0-beta.1</version>
<version>0.0.36_5.0.0-beta.2</version>
</dependency>
```

Expand Down
10 changes: 6 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
id "idea"
id "java-library"
Expand All @@ -16,11 +18,11 @@ targetCompatibility = JavaVersion.VERSION_17
ext {
major = 0
minor = 0
patch = 35
patch = 36

isCiServer = System.getenv("GITHUB_ACTIONS") != null || System.getProperty("GITHUB_ACTIONS") != null

jdaVersion = "5.0.0-beta.1"
jdaVersion = "5.0.0-beta.2"
retrofitVersion = "2.9.0"
jacksonSpringBootVersion = "3.0.0"
jacksonVersion = "2.14.1"
Expand Down Expand Up @@ -109,7 +111,7 @@ dependencies {
testImplementation "org.jetbrains.kotlin:kotlin-compiler-embeddable"
}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17
freeCompilerArgs = ["-Xjvm-default=all"]
Expand Down Expand Up @@ -214,6 +216,6 @@ signing {
sign publishing.publications.mavenJava
}

tasks.withType(Sign) {
tasks.withType(Sign).configureEach {
onlyIf { isCiServer }
}
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,8 @@ internal open class InteractionInitializer(
commandData.defaultPermissions.permissionsRaw == command.defaultPermissions.permissionsRaw &&
commandData.isGuildOnly == command.isGuildOnly &&
commandData.nameLocalizations.toMap() == command.nameLocalizations.toMap() &&
commandData.descriptionLocalizations.toMap() == command.descriptionLocalizations.toMap()
commandData.descriptionLocalizations.toMap() == command.descriptionLocalizations.toMap() &&
commandData.isNSFW == command.isNSFW
}

private fun compareSubCommandGroup(groupData: SubcommandGroup, group: SubcommandGroup?): Boolean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ internal class ThreadFactoryBuilder
* @return this for the builder pattern
*/
fun setNameFormat(nameFormat: String): ThreadFactoryBuilder {
@Suppress("UNUSED_VARIABLE")
val unused = format(nameFormat, 0) // fail fast if the format is bad or null
this.nameFormat = nameFormat
return this
Expand Down

0 comments on commit 2fa4176

Please sign in to comment.