From 52da0182a226bb6e2d6bfd83a5d5e4e6fd1e9e8e Mon Sep 17 00:00:00 2001 From: Dominic Fellbaum Date: Mon, 29 May 2023 23:51:20 +0200 Subject: [PATCH] Fix dependency for use in maven projects --- build.gradle.kts | 3 +++ gradle.properties | 2 +- lib/build.gradle.kts | 14 +++++++------- lib/src/test/java/dih/LibraryTest.java | 8 -------- 4 files changed, 11 insertions(+), 16 deletions(-) create mode 100644 build.gradle.kts diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 0000000..d2c526e --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,3 @@ +plugins { + id ("com.autonomousapps.dependency-analysis") version "1.20.0" +} \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 5090456..8526c4d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ org.gradle.caching=true group=net.fellbaum description=A Java library for conveniently working with interactions from Discord -version=0.2.1 +version=0.2.2 diff --git a/lib/build.gradle.kts b/lib/build.gradle.kts index 00cfcf2..1f21f3c 100644 --- a/lib/build.gradle.kts +++ b/lib/build.gradle.kts @@ -10,7 +10,7 @@ repositories { } dependencies { - implementation("org.javacord:javacord:3.8.0") + api("org.javacord:javacord-api:3.8.0") implementation("org.apache.logging.log4j:log4j-api:2.20.0") // Use JUnit Jupiter for testing. @@ -49,7 +49,7 @@ publishing { pom { name.set("Discord Interaction Handler") description.set(rootProject.description) - url.set("https://github.com/KILLEliteMaste/discord-interaction-handler") + url.set("https://github.com/felldo/discord-interaction-handler") licenses { license { @@ -61,17 +61,17 @@ publishing { inceptionYear.set("2022") developers { developer { - id.set("KILLEliteMaste") + id.set("felldo") name.set("Dominic Fellbaum") email.set("d.fellbaum@hotmail.de") - url.set("https://github.com/KILLEliteMaste") + url.set("https://github.com/felldo") timezone.set("Europe/Berlin") } } scm { - connection.set("scm:git:https://github.com/KILLEliteMaste/discord-interaction-handler.git") - developerConnection.set("scm:git:git@github.com:KILLEliteMaste/discord-interaction-handler.git") - url.set("https://github.com/KILLEliteMaste/discord-interaction-handler") + connection.set("scm:git:https://github.com/felldo/discord-interaction-handler.git") + developerConnection.set("scm:git:git@github.com:felldo/discord-interaction-handler.git") + url.set("https://github.com/felldo/discord-interaction-handler") } } } diff --git a/lib/src/test/java/dih/LibraryTest.java b/lib/src/test/java/dih/LibraryTest.java index fa3fe38..6620723 100644 --- a/lib/src/test/java/dih/LibraryTest.java +++ b/lib/src/test/java/dih/LibraryTest.java @@ -1,16 +1,8 @@ -/* - * This Java source file was generated by the Gradle 'init' task. - */ package dih; import net.fellbaum.dih.handler.SimpleInteractionHandler; import org.junit.jupiter.api.Test; -import java.util.Objects; -import java.util.function.BiFunction; - -import static org.junit.jupiter.api.Assertions.*; - class LibraryTest { @Test void someLibraryMethodReturnsTrue() { SimpleInteractionHandler handler = new SimpleInteractionHandler();