Skip to content

Commit

Permalink
✏️ change how versioning works
Browse files Browse the repository at this point in the history
  • Loading branch information
asoji committed Sep 1, 2024
1 parent 3645414 commit 90c5057
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 11 deletions.
10 changes: 9 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.incremental.deleteDirectoryContents

plugins {
kotlin("jvm") version "2.0.0"
kotlin("plugin.serialization") version "2.0.0"
Expand All @@ -7,7 +9,7 @@ plugins {
}

group = "one.devos"
version = System.getenv("GITHUB_SHA") ?: "Development"
version = "${project.property("yiski.version")}${System.getProperty("GITHUB_SHA") ?: "-DEVELOPMENT"}"

repositories {
mavenCentral()
Expand Down Expand Up @@ -44,6 +46,12 @@ tasks {
useJUnitPlatform()
}

named("clean") {
doLast {
rootProject.file("modules").deleteDirectoryContents()
}
}

}

allprojects {
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ org.gradle.jvmargs=-Xmx16384m -Xms16384m -XX:MaxMetaspaceSize=1024m -XX:+HeapDum
org.gradle.parallel.threads=12
org.gradle.parallel=true
org.gradle.daemon=false

yiski.version=0.1.0
2 changes: 1 addition & 1 deletion yiski-common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group = "one.devos"
version = "1.0-SNAPSHOT"
version = rootProject.version.toString()

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion yiski-dependencies/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = "one.devos"
version = "1.0-SNAPSHOT"
version = rootProject.version.toString()

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion yiski-module-loader/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group = "one.devos"
version = "1.0-SNAPSHOT"
version = rootProject.version.toString()

dependencies {
implementation(project(":yiski-module-metadata"))
Expand Down
2 changes: 1 addition & 1 deletion yiski1/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group = "one.devos"
version = "1.0-SNAPSHOT"
version = rootProject.version.toString()

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ class Modules : Scaffold {
ctx.sendEmbed {
setTitle("${YiskiShared.moduleLoader.getModules().size} modules loaded")
YiskiShared.moduleLoader.getModules().forEach {
addField("${it.information.name} - ${it.information.version}", it.information.description, true)
addField("${it.information.name} - ${it.information.authors}",
"""
**Description**: ${it.information.description}
**ID**: `${it.information.id}`
**Version**: `${it.information.version}`
**License**: `${it.information.license}`
""".trimIndent(), false)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion yiski2/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = "one.devos"
version = "1.0-SNAPSHOT"
version = rootProject.version.toString()

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion yiski3/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = "one.devos"
version = "1.0-SNAPSHOT"
version = rootProject.version.toString()

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion yiski4/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group = "one.devos"
version = "1.0-SNAPSHOT"
version = rootProject.version.toString()

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion yiski5/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group = "one.devos"
version = "1.0-SNAPSHOT"
version = rootProject.version.toString()

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion yiski6/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = "one.devos"
version = "1.0-SNAPSHOT"
version = rootProject.version.toString()

repositories {
mavenCentral()
Expand Down

0 comments on commit 90c5057

Please sign in to comment.