Skip to content

Commit 232c5f2

Browse files
authored
Merge pull request #5 from kotlin-hands-on/update_readme_dsl
Update readme dsl
2 parents e019015 + 5eb2a70 commit 232c5f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ To add the plugin to your project, add the following line in the plugins block,
159159

160160
In the same file, add the following configuration. Customize all these values appropriately for your library.
161161

162-
| `mavenPublishing {`<br>` publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)`<br>` signAllPublications()`<br>` coordinates("io.github.kotlin-hands-on", "fibonacci", "1.0.3")`<br>` pom {`<br>` name.set("Fibonacci library")`<br>` description.set("A mathematics calculation library.")`<br>` inceptionYear.set("2024")`<br>` url.set("https://github.com/kotlin-hands-on/fibonacci/")`<br>` licenses {`<br>` license {`<br>` name.set("The Apache License, Version 2.0")`<br>` url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")`<br>` distribution.set("http://www.apache.org/licenses/LICENSE-2.0.txt")`<br>` }`<br>` }`<br>` developers {`<br>` developer {`<br>` id.set("kotlin-hands-on")`<br>` name.set("Kotlin Developer Advocate")`<br>` url.set("https://github.com/kotlin-hands-on/")`<br>` }`<br>` }`<br>` scm {`<br>` url.set("https://github.com/kotlin-hands-on/fibonacci/")`<br>` connection.set("scm:git:git://github.com/kotlin-hands-on/fibonacci.git")`<br>` developerConnection.set("scm:git:ssh://[email protected]/kotlin-hands-on/fibonacci.git")`<br>` }`<br>` }`<br>` }` |
163-
| :---- |
162+
| `mavenPublishing {`<br>` publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)`<br>` signAllPublications()`<br>` coordinates("io.github.kotlin-hands-on", "fibonacci", "1.0.8")`<br>` pom {`<br>` name = "Fibonacci library"`<br>` description = "A mathematics calculation library."`<br>` inceptionYear = "2024"`<br>` url = "https://github.com/kotlin-hands-on/fibonacci/"`<br>` licenses {`<br>` license {`<br>` name = "The Apache License, Version 2.0"`<br>` url = "http://www.apache.org/licenses/LICENSE-2.0.txt"`<br>` distribution = "http://www.apache.org/licenses/LICENSE-2.0.txt"`<br>` }`<br>` }`<br>` developers {`<br>` developer {`<br>` id = "kotlin-hands-on"`<br>` name = "Kotlin Developer Advocate"`<br>` url = "https://github.com/kotlin-hands-on/"`<br>` }`<br>` }`<br>` scm {`<br>` url = "https://github.com/kotlin-hands-on/fibonacci/"`<br>` connection "scm:git:git://github.com/kotlin-hands-on/fibonacci.git"`<br>` developerConnection = "scm:git:ssh://[email protected]/kotlin-hands-on/fibonacci.git"`<br>` }`<br>` }`<br>`}` |
163+
|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
164164

165165
Note that it’s also possible to use Gradle properties instead.
166166

@@ -186,7 +186,7 @@ After committing and pushing this change, this workflow will run automatically w
186186

187187
\> Alternatively, you could configure the workflow to [trigger when a tag is pushed](https://stackoverflow.com/a/61892639) to your repository.
188188

189-
\> If you’re using Gradle [configuration cache](https://docs.gradle.org/current/userguide/configuration_cache.html), you’ll need to disable it for the publication task by adding `--no-configuration-cache` to the Gradle command, as the publication plugin does not support it (see this [open issue](https://github.com/gradle/gradle/issues/22779)).
189+
\> The script above disables Gradle [configuration cache](https://docs.gradle.org/current/userguide/configuration_cache.html) for the publication task by adding `--no-configuration-cache` to the Gradle command, as the publication plugin does not support it (see this [open issue](https://github.com/gradle/gradle/issues/22779)).
190190

191191
\> Reminder: When using `publishToMavenCentral`, you’ll still need to check and release your deployment manually on the website, as described in the previous section. You may use `publishAndReleaseToMavenCentral` instead for a fully automated release.
192192

0 commit comments

Comments
 (0)