Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Versions.xx in README.adoc #5

Merged
merged 5 commits into from
Nov 23, 2018

Conversation

jmfayard
Copy link
Collaborator

@jmfayard jmfayard commented Nov 7, 2018

Hello again,

So first I just wanted to handle the nice comments added by gildor in the previous pull request
#2

Then I said, why not update buildSrc/src/main/kotlin/Versions.kt?
Notably Kotlin 1.3.0.
The project still works nice!

Then I realized I had a problem, the README does not auto-update itself if I update Versions.kt

Then I realized there is a solution for that too.
I could use variables in the README if I convert it from Markdown to https://asciidoctor.org/ (which is like Markdown for the simple things, but without the pile of hacks when you want to do something more complex.
Because then I can generate the variables for the README from Gradle!

Ok, so that was more time than I expected but it was fun!

$ ./gradlew updateReadme

> Task :updateReadme
== Copy-paste the content above in the top of README.adoc

:gradle: 4.10.2
:junit: 4.12
:jupiter: 5.3.1
:kotlintest: 3.1.10
:mockk: 1.8.12
:spek: 2.0.0-rc.1
:mockito: 2.23.0
:strikt: 0.17.0
:mockito_kotlin: 2.0.0-RC1

BUILD SUCCESSFUL in 0s
1 actionable task: 1 executed
@rozkminiacz rozkminiacz merged commit 3ef5daa into rozkminiacz:master Nov 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants