Skip to content

Commit

Permalink
Port performance-related changes from 2.3.1:
Browse files Browse the repository at this point in the history
- Fix small detekt error
- Add threadpool context for interaction events.
- Add a separate event filter for events submitted to the bot directly, rather than from Kord.
  • Loading branch information
gdude2002 committed Jan 1, 2025
1 parent b5dc02a commit 62d21bb
Show file tree
Hide file tree
Showing 18 changed files with 211 additions and 88 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches-ignore:
- "gh-pages"
- "root"
- "v2.2.1"

pull_request:
merge_group:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: "CodeQL"
on:
push:
branches:
- root
- "root"

pull_request:
branches:
- root
- "root"

schedule:
- cron: '19 21 * * 4'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "root"
- "v2.2.1"

permissions:
contents: write
Expand Down
1 change: 0 additions & 1 deletion .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 4 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
maven {
name = "Sonatype Snapshots"
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
name = "Kord Snapshots"
url = uri("https://repo.kord.dev/snapshots")
}
}
}
Expand All @@ -14,7 +14,6 @@ plugins {

kotlin("jvm")

id("com.github.jakemarsden.git-hooks")
id("org.jetbrains.dokka")
}

Expand All @@ -36,15 +35,11 @@ repositories {
mavenCentral()

maven {
name = "Sonatype Snapshots"
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
name = "Kord Snapshots"
url = uri("https://repo.kord.dev/snapshots")
}
}

gitHooks {
setHooks(mapOf("pre-commit" to "applyLicenses detekt"))
}

subprojects {
group = "dev.kordex"
version = projectVersion
Expand Down
1 change: 0 additions & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ dependencies {
implementation(kotlin("serialization", version = "2.0.20"))

implementation("com.github.ben-manes", "gradle-versions-plugin", "0.51.0")
implementation("com.github.jakemarsden", "git-hooks-gradle-plugin", "0.0.2")
implementation("com.google.devtools.ksp", "com.google.devtools.ksp.gradle.plugin", "2.0.20-1.0.24")
implementation("dev.yumi", "yumi-gradle-licenser", "1.2.0")
implementation("io.gitlab.arturbosch.detekt", "detekt-gradle-plugin", "1.23.6")
Expand Down
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/kordex-module.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ repositories {
}

maven {
name = "Sonatype Snapshots"
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
name = "Kord Snapshots"
url = uri("https://repo.kord.dev/snapshots")
}
}

Expand Down
4 changes: 2 additions & 2 deletions kord-extensions/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
buildscript {
repositories {
maven {
name = "Sonatype Snapshots"
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
name = "Kord Snapshots"
url = uri("https://repo.kord.dev/snapshots")
}
}
}
Expand Down
Loading

0 comments on commit 62d21bb

Please sign in to comment.