Skip to content

Commit 3dba327

Browse files
authored
Merge branch 'discord-jda:master' into master
2 parents c86daf5 + 0528180 commit 3dba327

File tree

4 files changed

+16
-22
lines changed

4 files changed

+16
-22
lines changed

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
[maven-central]: https://img.shields.io/maven-central/v/net.dv8tion/JDA?color=blue
2-
[jitpack]: https://img.shields.io/badge/Snapshots-JitPack-blue
1+
[maven-central]: https://img.shields.io/maven-central/v/net.dv8tion/JDA?filter=!*-preview*&logo=apachemaven&color=blue
2+
[jitpack]: https://img.shields.io/badge/Snapshots-JitPack?logo=jitpack
33
[installation]: #-installation
44
[discord-invite]: https://discord.gg/0hMr4ce0tIl3SLv5
5-
[migration]: https://jda.wiki/introduction/migration-v4-v5/
6-
[jenkins]: https://ci.dv8tion.net/job/JDA5
75
[license]: https://github.com/discord-jda/JDA/tree/master/LICENSE
86
[faq]: https://jda.wiki/introduction/faq/
97
[docs]: https://docs.jda.wiki/index.html
@@ -13,9 +11,7 @@
1311
[faq-shield]: https://img.shields.io/badge/Wiki-FAQ-blue.svg
1412
[docs-shield]: https://img.shields.io/badge/Wiki-Docs-blue.svg
1513
[troubleshooting-shield]: https://img.shields.io/badge/Wiki-Troubleshooting-darkgreen.svg
16-
[jenkins-shield]: https://img.shields.io/badge/Download-Jenkins-purple.svg
1714
[license-shield]: https://img.shields.io/badge/License-Apache%202.0-white.svg
18-
[migration-shield]: https://img.shields.io/badge/Wiki-Migrating%20from%20V4-darkgreen.svg
1915
[GatewayIntent]: https://docs.jda.wiki/net/dv8tion/jda/api/requests/GatewayIntent.html
2016
[JDABuilder]: https://docs.jda.wiki/net/dv8tion/jda/api/JDABuilder.html
2117
[DefaultShardManagerBuilder]: https://docs.jda.wiki/net/dv8tion/jda/api/sharding/DefaultShardManagerBuilder.html
@@ -24,14 +20,12 @@
2420

2521
[![maven-central][]][installation]
2622
[![jitpack][]](https://jitpack.io/#discord-jda/JDA)
27-
[![jenkins-shield][]][jenkins]
2823
[![license-shield][]][license]
2924

3025
[![discord-shield][]][discord-invite]
3126
[![faq-shield]][faq]
3227
[![docs-shield]][docs]
3328
[![troubleshooting-shield]][troubleshooting]
34-
[![migration-shield][]][migration]
3529

3630
# JDA (Java Discord API)
3731

@@ -53,7 +47,7 @@ You can learn more by visiting our [wiki][wiki] or referencing our [Javadocs][do
5347

5448
## 🔬 Installation
5549

56-
[![maven-central][]](https://mvnrepository.com/artifact/net.dv8tion/JDA/latest)
50+
[![maven-central][]](https://central.sonatype.com/artifact/net.dv8tion/JDA)
5751
[![jitpack][]](https://jitpack.io/#discord-jda/JDA)
5852

5953
This library is available on maven central. The latest version is always shown in the [GitHub Release](https://github.com/discord-jda/JDA/releases/latest).

build.gradle.kts

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
1818
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
19+
import de.undercouch.gradle.tasks.download.Download
1920
import net.dv8tion.jda.tasks.Version
2021
import net.dv8tion.jda.tasks.applyAudioExclusions
2122
import net.dv8tion.jda.tasks.applyOpusExclusions
@@ -35,6 +36,7 @@ plugins {
3536
alias(libs.plugins.versions)
3637
alias(libs.plugins.version.catalog.update)
3738
alias(libs.plugins.jreleaser)
39+
alias(libs.plugins.download)
3840
}
3941

4042

@@ -45,7 +47,7 @@ plugins {
4547
////////////////////////////////////
4648

4749
projectEnvironment {
48-
version = Version(major = "5", minor = "6", revision = "1", classifier = null)
50+
version = Version(major = "6", minor = "0", revision = "0", classifier = "rc.1")
4951
}
5052

5153
artifactFilters {
@@ -88,10 +90,7 @@ configure<SourceSetContainer> {
8890
// //
8991
////////////////////////////////////
9092

91-
val recipeParserClasspath by configurations.creating
92-
9393
repositories {
94-
mavenLocal()
9594
mavenCentral()
9695
}
9796

@@ -160,8 +159,6 @@ dependencies {
160159

161160
// For authoring tests for any kind of Recipe
162161
testImplementation("org.openrewrite:rewrite-test")
163-
164-
recipeParserClasspath("net.dv8tion:JDA:5.6.1")
165162
}
166163

167164
fun isNonStable(version: String): Boolean {
@@ -299,7 +296,9 @@ val javadoc by tasks.getting(Javadoc::class) {
299296
dependsOn(generateJavaSources)
300297
source = generateJavaSources.get().source
301298

302-
exclude("net/dv8tion/jda/internal")
299+
exclude {
300+
it.file.absolutePath.contains("internal", ignoreCase=false)
301+
}
303302
}
304303

305304
val javadocJar by tasks.registering(Jar::class) {
@@ -341,11 +340,11 @@ val build by tasks.getting(Task::class) {
341340
shadowJar.mustRunAfter(sourcesJar)
342341
}
343342

344-
val downloadRecipeClasspath by tasks.registering(Copy::class) {
345-
from(recipeParserClasspath)
346-
into("src/test/resources/META-INF/rewrite/classpath")
347-
348-
include("JDA-*.jar")
343+
val downloadRecipeClasspath by tasks.registering(Download::class) {
344+
val targetVersion = "5.6.1"
345+
src("https://repo.maven.apache.org/maven2/net/dv8tion/JDA/$targetVersion/JDA-$targetVersion.jar")
346+
dest("src/test/resources/META-INF/rewrite/classpath/JDA-$targetVersion.jar")
347+
overwrite(false)
349348
}
350349

351350
tasks.named("processTestResources").configure {

buildSrc/src/main/kotlin/net/dv8tion/jda/tasks/ProjectEnvironmentConfig.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ abstract class ProjectEnvironmentConfig(
3131
) {
3232
abstract val version: Property<Version>
3333

34-
val isGithubAction = System.getenv("GITHUB_ACTION") == "true"
34+
val isGithubAction = System.getenv("GITHUB_ACTION") != null
3535
val isJitpack = System.getenv("JITPACK") == "true"
3636
val isCI = isGithubAction || isJitpack
3737

gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ shadow = "com.gradleup.shadow:8.3.8"
3838
version-catalog-update = "nl.littlerobots.version-catalog-update:1.0.0"
3939
versions = "com.github.ben-manes.versions:0.52.0"
4040
jreleaser = "org.jreleaser:1.19.0"
41+
download = "de.undercouch.download:5.6.0"

0 commit comments

Comments
 (0)