Skip to content

Commit

Permalink
Specify version globally
Browse files Browse the repository at this point in the history
  • Loading branch information
outadoc committed Jan 4, 2025
1 parent e3afb41 commit 8c74858
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {
}

group = "fr.outadoc.minipavi"
version = "0.0.3"
version = findProperty("fr.outadoc.minipavi.version") as String

kotlin {
explicitApi()
Expand Down Expand Up @@ -54,6 +54,7 @@ tasks.withType<DokkaTaskPartial>().configureEach {
dokkaSourceSets {
configureEach {
includes.from("README.md")
apiVersion.set(version.toString())

externalDocumentationLink {
url.set(URL("https://kotlinlang.org/api/kotlinx.serialization/"))
Expand Down
5 changes: 4 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ kotlin.daemon.jvmargs=-Xmx2048M
org.gradle.jvmargs=-Xmx2048M -Dfile.encoding=UTF-8

#Ktor
io.ktor.development=true
io.ktor.development=true

#Library configuration
fr.outadoc.minipavi.version=0.0.6
3 changes: 2 additions & 1 deletion videotex/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
}

group = "fr.outadoc.minipavi"
version = "0.0.3"
version = findProperty("fr.outadoc.minipavi.version") as String

kotlin {
explicitApi()
Expand Down Expand Up @@ -41,6 +41,7 @@ tasks.withType<DokkaTaskPartial>().configureEach {
dokkaSourceSets {
configureEach {
includes.from("README.md")
apiVersion.set(version.toString())

externalDocumentationLink {
url.set(URL("https://kotlinlang.org/api/kotlinx-io/"))
Expand Down

0 comments on commit 8c74858

Please sign in to comment.