Skip to content

Commit

Permalink
Refactor: dependencies formatted correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
KatieUmbra committed Sep 2, 2023
1 parent 55c6f95 commit d751c57
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 18 deletions.
35 changes: 19 additions & 16 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,47 +8,50 @@ plugins {

group = "studios.pinkcloud.celestial"
version = "1.0-SNAPSHOT"

val jvmTarget = 17
val jdaVersion = "5.0.0-alpha.11"
val Version = "1.0-SNAPSHOT"

repositories {
mavenCentral()
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://m2.dv8tion.net/releases")
maven ("https://jitpack.io")

}

val jdaVersion: String by project
val kamlVersion: String by project
val ktomlVersion: String by project
val slf4jVersion: String by project
val coroutinesVersion: String by project
val gsonVersion: String by project
val botCommandsVersion: String by project

dependencies {
implementation("net.dv8tion:JDA:$jdaVersion")
implementation("com.charleskorn.kaml:kaml:0.52.0")
implementation("org.slf4j:slf4j-simple:1.7.32")
implementation("com.akuleshov7:ktoml-source-jvm:0.5.0")
implementation("com.akuleshov7:ktoml-core:0.5.0")
implementation("com.akuleshov7:ktoml-file:0.5.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2")
implementation("com.google.code.gson:gson:2.8.8")
implementation("io.github.freya022:BotCommands:2.10.2")


implementation("com.charleskorn.kaml:kaml:$kamlVersion")
implementation("org.slf4j:slf4j-simple:$slf4jVersion")
implementation("com.akuleshov7:ktoml-source-jvm:$ktomlVersion")
implementation("com.akuleshov7:ktoml-core:$ktomlVersion")
implementation("com.akuleshov7:ktoml-file:$ktomlVersion")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
implementation("com.google.code.gson:gson:$gsonVersion")
implementation("io.github.freya022:BotCommands:$botCommandsVersion")
}


tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
archiveClassifier.set("")

exclude("**/*.kotlin_metadata")
exclude("**/*.kotlin_builtins")
exclude("META-INF/")

archiveFileName.set("Celestial-$Version.jar")
archiveFileName.set("Celestial-$version.jar")
}

kotlin {
jvmToolchain(jvmTarget)
}

application {
mainClass.set("studios.pinkcloud.celestial.MainKt")
mainClass.set("$group.MainKt")
}
12 changes: 10 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
kotlin.code.style=official
REPO_GROUP_ID=default-group-id
REPO_ARTIFACT_ID=default-artifact-id
REPO_VERSION=1.0.0
REPO_VERSION =1.0.0
REPO_URL=https://example.com/repo
REPO_USERNAME=
REPO_PASSWORD=
REPO_PASSWORD=

jdaVersion=5.0.0-alpha.11
kamlVersion=0.52.0
ktomlVersion=0.5.0
slf4jVersion=1.7.32
coroutinesVersion=1.7.3
gsonVersion=2.8.8
botCommandsVersion=2.10.2

0 comments on commit d751c57

Please sign in to comment.