Skip to content

Commit

Permalink
Corrected README workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
stewartbryson committed Apr 7, 2023
1 parent 5e1f152 commit 901636d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ githubRelease {
//dryRun true
}

import org.apache.tools.ant.filters.ReplaceTokens
tasks.register('copyReadme', Copy) {
group 'documentation'
description 'Update README.md file with current version.'
from('src/markdown') {
include 'README.md'
expand(version: version)
filter(ReplaceTokens, tokens: [version: version])
}
into '.'
}
Expand All @@ -58,7 +59,7 @@ tasks.register('copyExamples', Copy) {
description 'Token replacement of current version in examples.'
from('src/examples') {
include '*/build.gradle'
expand(version: version)
filter(ReplaceTokens, tokens: [version: version])
}
into 'examples'
mustRunAfter copyReadme
Expand Down
6 changes: 3 additions & 3 deletions src/markdown/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ is automatically applied by the `snowflake` plugin:
```groovy
plugins {
id 'java'
id 'io.github.stewartbryson.snowflake' version '${version}'
id 'io.github.stewartbryson.snowflake' version '@version@'
}
```

Expand Down Expand Up @@ -235,7 +235,7 @@ Our `plugins` DSL from the build file:
plugins {
id 'java'
id 'groovy' // needed for Spock testing framework
id 'io.github.stewartbryson.snowflake' version '${version}'
id 'io.github.stewartbryson.snowflake' version '@version@'
}
```

Expand Down Expand Up @@ -299,7 +299,7 @@ functionalTest(JvmTestSuite) {
all {
useSpock('2.3-groovy-3.0')
dependencies {
implementation "io.github.stewartbryson:gradle-snowflake-plugin:${version}"
implementation "io.github.stewartbryson:gradle-snowflake-plugin:@version@"
}
testTask.configure {
failFast true
Expand Down

0 comments on commit 901636d

Please sign in to comment.