-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It was so useless and just made the project structure confusing
- Loading branch information
Showing
23 changed files
with
33 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
example-bot/src/main/java/xyz/srnyx/lazyexample/LazyExample.java
This file was deleted.
Oops, something went wrong.
75 changes: 0 additions & 75 deletions
75
example-bot/src/main/java/xyz/srnyx/lazyexample/commands/ServersCmd.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.