Skip to content

Commit

Permalink
v0.3.0: Update example. Add actual kotlin version to template from build
Browse files Browse the repository at this point in the history
  • Loading branch information
LimeBeck committed May 4, 2024
1 parent abcdeb0 commit 51409aa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions example/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
val revealKtVersion = "0.2.4"
val revealKtVersion = "0.3.0"
group = "com.example"
version = "1.0.0-SNAPSHOT"

plugins {
kotlin("jvm") version "1.7.20"
kotlin("jvm") version "2.0.0-RC2"
}

repositories {
Expand Down
5 changes: 3 additions & 2 deletions reveal-kt/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ repositories {

buildTimeConfig {
config {
destination.set(project.buildDir)
destination.set(project.layout.buildDirectory.get().asFile)
objectName.set("RevealkConfig")
packageName.set("dev.limebeck.revealkt")
configProperties {
property<String>("version") set revealKtVersion
val version by string(revealKtVersion)
val kotlinVersion by string(libs.versions.kotlin.get())
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ fun substitute(text: String, values: Map<String, String>) = text.replace(substit
fun generatePresentationTemplate(name: String, targetDir: Path) {
val substitutionValues = mapOf(
"basename" to name,
"version" to RevealkConfig.version
"version" to RevealkConfig.version,
"kotlinVersion" to RevealkConfig.kotlinVersion
)

targetDir.toFile().mkdirs()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ group = "dev.limebeck"
version = "1.0.0"

plugins {
kotlin("jvm") version "1.8.10"
kotlin("jvm") version "{{kotlinVersion}}"
}

repositories {
Expand Down

0 comments on commit 51409aa

Please sign in to comment.