Skip to content

Commit c9454e3

Browse files
committed
Move .tool-versions to root dir so Renovate finds it
1 parent c089a6d commit c9454e3

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
- name: Install Node.js
126126
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
127127
with:
128-
node-version-file: documentation/.tool-versions
128+
node-version-file: .tool-versions
129129
- name: Build Documentation
130130
uses: ./.github/actions/run-gradle
131131
with:

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ gradle-app.setting
3131
coverage.db*
3232
.metadata
3333
/.sdkmanrc
34-
/.tool-versions
3534

3635
checksums*
3736

gradle/plugins/antora/src/main/kotlin/junitbuild.antora-conventions.gradle.kts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ val generateAntoraPlaybook by tasks.registering(Copy::class) {
4343

4444
node {
4545
download = buildParameters.antora.downloadNode
46-
version = providers.fileContents(layout.projectDirectory.file(".tool-versions")).asText.map {
47-
it.substringAfter("nodejs").trim()
46+
version = providers.fileContents(layout.settingsDirectory.file(".tool-versions")).asText.map {
47+
it.lineSequence()
48+
.single { line -> line.startsWith("nodejs") }
49+
.substringAfter(" ").trim()
4850
}
4951
}
5052

0 commit comments

Comments
 (0)