Skip to content

Commit

Permalink
Merge pull request #80 from stewartbryson/stewart
Browse files Browse the repository at this point in the history
Corrected README
  • Loading branch information
stewartbryson authored Apr 7, 2023
2 parents 0459788 + c59004e commit ce65b5a
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 11 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
2 changes: 1 addition & 1 deletion src/examples/groovy/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'groovy'
id 'com.github.ben-manes.versions' version '0.46.0'
id 'io.github.stewartbryson.snowflake' version '${version}'
id 'io.github.stewartbryson.snowflake' version '@version@'
}

repositories {
Expand Down
2 changes: 1 addition & 1 deletion src/examples/java-external-stage/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'java'
id 'com.github.ben-manes.versions' version '0.46.0'
id 'io.github.stewartbryson.snowflake' version '${version}'
id 'io.github.stewartbryson.snowflake' version '@version@'
}

repositories {
Expand Down
2 changes: 1 addition & 1 deletion src/examples/java-testing/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'java'
id 'groovy' // needed for Spock testing framework
id 'io.github.stewartbryson.snowflake' version '${version}'
id 'io.github.stewartbryson.snowflake' version '@version@'
id 'com.adarshr.test-logger' version '3.2.0' // added for testing
id 'com.github.ben-manes.versions' version '0.46.0'
}
Expand Down
2 changes: 1 addition & 1 deletion src/examples/java/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'java'
id 'com.github.ben-manes.versions' version '0.46.0'
id 'io.github.stewartbryson.snowflake' version '${version}'
id 'io.github.stewartbryson.snowflake' version '@version@'
}

repositories {
Expand Down
2 changes: 1 addition & 1 deletion src/examples/kotlin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id "org.jetbrains.kotlin.jvm" version "1.7.21"
id 'com.github.ben-manes.versions' version '0.46.0'
id 'io.github.stewartbryson.snowflake' version '${version}'
id 'io.github.stewartbryson.snowflake' version '@version@'
}

repositories {
Expand Down
2 changes: 1 addition & 1 deletion src/examples/scala/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'scala'
id 'com.github.ben-manes.versions' version '0.46.0'
id 'io.github.stewartbryson.snowflake' version '${version}'
id 'io.github.stewartbryson.snowflake' version '@version@'
}

repositories {
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 ce65b5a

Please sign in to comment.