diff --git a/README.md b/README.md index 19715b4..635db44 100644 --- a/README.md +++ b/README.md @@ -159,8 +159,8 @@ To add the plugin to your project, add the following line in the plugins block, In the same file, add the following configuration. Customize all these values appropriately for your library. -| `mavenPublishing {`
` publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)`
` signAllPublications()`
` coordinates("io.github.kotlin-hands-on", "fibonacci", "1.0.3")`
` pom {`
` name.set("Fibonacci library")`
` description.set("A mathematics calculation library.")`
` inceptionYear.set("2024")`
` url.set("https://github.com/kotlin-hands-on/fibonacci/")`
` licenses {`
` license {`
` name.set("The Apache License, Version 2.0")`
` url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")`
` distribution.set("http://www.apache.org/licenses/LICENSE-2.0.txt")`
` }`
` }`
` developers {`
` developer {`
` id.set("kotlin-hands-on")`
` name.set("Kotlin Developer Advocate")`
` url.set("https://github.com/kotlin-hands-on/")`
` }`
` }`
` scm {`
` url.set("https://github.com/kotlin-hands-on/fibonacci/")`
` connection.set("scm:git:git://github.com/kotlin-hands-on/fibonacci.git")`
` developerConnection.set("scm:git:ssh://git@github.com/kotlin-hands-on/fibonacci.git")`
` }`
` }`
` }` | -| :---- | +| `mavenPublishing {`
` publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)`
` signAllPublications()`
` coordinates("io.github.kotlin-hands-on", "fibonacci", "1.0.8")`
` pom {`
` name = "Fibonacci library"`
` description = "A mathematics calculation library."`
` inceptionYear = "2024"`
` url = "https://github.com/kotlin-hands-on/fibonacci/"`
` licenses {`
` license {`
` name = "The Apache License, Version 2.0"`
` url = "http://www.apache.org/licenses/LICENSE-2.0.txt"`
` distribution = "http://www.apache.org/licenses/LICENSE-2.0.txt"`
` }`
` }`
` developers {`
` developer {`
` id = "kotlin-hands-on"`
` name = "Kotlin Developer Advocate"`
` url = "https://github.com/kotlin-hands-on/"`
` }`
` }`
` scm {`
` url = "https://github.com/kotlin-hands-on/fibonacci/"`
` connection "scm:git:git://github.com/kotlin-hands-on/fibonacci.git"`
` developerConnection = "scm:git:ssh://git@github.com/kotlin-hands-on/fibonacci.git"`
` }`
` }`
`}` | +|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| Note that it’s also possible to use Gradle properties instead. @@ -186,7 +186,7 @@ After committing and pushing this change, this workflow will run automatically w \> Alternatively, you could configure the workflow to [trigger when a tag is pushed](https://stackoverflow.com/a/61892639) to your repository. -\> 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)). +\> 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)). \> 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.