Skip to content

Commit

Permalink
More manual fixes for changes to Gradle configuration names
Browse files Browse the repository at this point in the history
  • Loading branch information
johnrengelman committed Apr 25, 2022
1 parent 7884762 commit 40bcc75
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions ratpack-manual/src/content/chapters/02-quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ repositories {
}
dependencies {
runtime "org.slf4j:slf4j-simple:@slf4j-version@"
runtimeOnly "org.slf4j:slf4j-simple:@slf4j-version@"
}
mainClassName = "my.app.Main"
Expand Down Expand Up @@ -141,7 +141,7 @@ repositories {
}
dependencies {
runtime "org.slf4j:slf4j-simple:@slf4j-version@"
runtimeOnly "org.slf4j:slf4j-simple:@slf4j-version@"
}
```

Expand Down
6 changes: 3 additions & 3 deletions ratpack-manual/src/content/chapters/13-http.md
Original file line number Diff line number Diff line change
Expand Up @@ -591,10 +591,10 @@ repositories {
}
dependencies {
runtime 'org.slf4j:slf4j-simple:@slf4j-version@'
compile group: 'io.ratpack', name: 'ratpack-session', version: '@ratpack-version@'
runtimeOnly 'org.slf4j:slf4j-simple:@slf4j-version@'
implementation group: 'io.ratpack', name: 'ratpack-session', version: '@ratpack-version@'
testCompile "org.spockframework:spock-core:@spock-version@"
testImplementation "org.spockframework:spock-core:@spock-version@"
}
```

Expand Down
12 changes: 6 additions & 6 deletions ratpack-manual/src/content/chapters/60-gradle.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Note that the `'io.ratpack.ratpack-groovy'` plugin implicitly applies the `'io.r

## Ratpack dependencies

To depend on a Ratpack extension library, simply add it as a regular compile dependency…
To depend on a Ratpack extension library, simply add it as a regular implementation dependency…

```language-groovy gradle
buildscript {
Expand All @@ -72,7 +72,7 @@ repositories {
}
dependencies {
compile ratpack.dependency("dropwizard-metrics")
implementation ratpack.dependency("dropwizard-metrics")
}
```

Expand All @@ -81,13 +81,13 @@ This is the recommended way to add dependencies that are part of the core distri

The `'io.ratpack.ratpack-java'` plugin adds the following implicit dependencies:

* `ratpack-core` - _compile_
* `ratpack-test` - _testCompile_
* `ratpack-core` - _implementation_
* `ratpack-test` - _testImplementation_

The `'io.ratpack.ratpack-groovy'` plugin adds the following implicit dependencies:

* `ratpack-groovy` - _compile_ (depends on `ratpack-core`)
* `ratpack-groovy-test` - _testCompile_ (depends on `ratpack-test`)
* `ratpack-groovy` - _implementation_ (depends on `ratpack-core`)
* `ratpack-groovy-test` - _testImplementation_ (depends on `ratpack-test`)

The available libraries can be [browsed via search.maven.org](https://search.maven.org/search?q=g:io.ratpack).
All Ratpack jars are published to [Maven Central](http://search.maven.org).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class ManualSnippetExtractor {
private static String performSubstitutions(String snippet) {
return snippet
.replaceAll("@ratpack-version@", RatpackVersion.version)
.replaceAll("@shadow-version@", "4.0.3")
.replaceAll("@shadow-version@", "7.1.2")
}

private static TestCodeSnippet createSnippet(String sourceClassName, File sourceFile, int lineNumber, String snippet, SnippetExecuter executer) {
Expand Down

0 comments on commit 40bcc75

Please sign in to comment.