Skip to content

Commit

Permalink
Remove example bot
Browse files Browse the repository at this point in the history
It was so useless and just made the project structure confusing
  • Loading branch information
srnyx committed Apr 3, 2024
1 parent fde636c commit 89f4ad3
Show file tree
Hide file tree
Showing 23 changed files with 33 additions and 152 deletions.
44 changes: 32 additions & 12 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,26 +1,46 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import xyz.srnyx.gradlegalaxy.data.pom.DeveloperData
import xyz.srnyx.gradlegalaxy.data.pom.LicenseData
import xyz.srnyx.gradlegalaxy.enums.Repository
import xyz.srnyx.gradlegalaxy.enums.repository
import xyz.srnyx.gradlegalaxy.utility.addCompilerArgs
import xyz.srnyx.gradlegalaxy.utility.setupJava
import xyz.srnyx.gradlegalaxy.utility.setupPublishing


plugins {
application
id("xyz.srnyx.gradle-galaxy") version "1.1.2" apply false
id("com.github.johnrengelman.shadow") version "8.1.1" apply false
id("xyz.srnyx.gradle-galaxy") version "1.1.2"
id("com.github.johnrengelman.shadow") version "8.1.1"
}

subprojects {
apply(plugin = "application")
apply(plugin = "xyz.srnyx.gradle-galaxy")
apply(plugin = "com.github.johnrengelman.shadow")
setupJava("xyz.srnyx", "3.0.1", "A simple library for JDA Discord bots", JavaVersion.VERSION_19)
application.mainClass.set("xyz.srnyx.lazylibrary.LazyLibrary")
addCompilerArgs("-parameters")

setupJava("xyz.srnyx", "3.0.1", "A simple library for JDA Discord bots", JavaVersion.VERSION_19)
addCompilerArgs("-parameters")
repository(Repository.MAVEN_CENTRAL, Repository.JITPACK)
repository(Repository.MAVEN_CENTRAL, Repository.JITPACK)
dependencies {
compileOnly("net.dv8tion", "JDA", "5.0.0-beta.21") // JDA
implementation("xyz.srnyx", "java-utilities", "1.0.0") // General Java utility library
implementation("xyz.srnyx", "magic-mongo", "1.1.0") // MongoDB framework
implementation("io.github.freya022", "BotCommands", "2.10.3") // Command framework
implementation("org.spongepowered", "configurate-yaml", "4.1.2") // Config manager
implementation("org.postgresql", "postgresql", "42.7.3") // Database
implementation("com.zaxxer", "HikariCP", "5.1.0") // Database
implementation("ch.qos.logback", "logback-classic", "1.5.3") // Logging
}

setupPublishing(
artifactId = "lazy-library",
url = "https://lazy-library.srnyx.com",
licenses = listOf(LicenseData.MIT),
developers = listOf(DeveloperData.srnyx))

tasks.withType<ShadowJar> {
dependsOn("distTar", "distZip")
// Fix some tasks
tasks {
startScripts {
dependsOn("shadowJar")
}
startShadowScripts {
dependsOn("jar")
}
}
5 changes: 0 additions & 5 deletions example-bot/build.gradle.kts

This file was deleted.

33 changes: 0 additions & 33 deletions example-bot/src/main/java/xyz/srnyx/lazyexample/LazyExample.java

This file was deleted.

This file was deleted.

23 changes: 0 additions & 23 deletions library/build.gradle.kts

This file was deleted.

5 changes: 1 addition & 4 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
include("library", "example-bot")

project(":library").name = "LazyLibrary"
project(":example-bot").name = "LazyExample"
rootProject.name = "LazyLibrary"
File renamed without changes.
File renamed without changes.

0 comments on commit 89f4ad3

Please sign in to comment.