Skip to content

Commit

Permalink
fix docs (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielittner authored Nov 3, 2022
1 parent 06b7d1d commit f9473c0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ jobs:
- name: Copy docs
run: |
cp README.md docs/index.md
# Fix relative paths
sed -i 's/docs\///' docs/index.md
# Update page time
sed -i 's/# gradle-maven-publish-plugin/# Overview/' docs/index.md
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ and has been enhanced to add Kotlin support and keep up with the latest changes.

# Setup

- [Publishing open source projects to Maven Central](docs/central.md)
- [Publishing to other Maven repositories](docs/other.md)
- [Publishing open source projects to Maven Central](https://vanniktech.github.io/gradle-maven-publish-plugin/central/)
- [Publishing to other Maven repositories](https://vanniktech.github.io/gradle-maven-publish-plugin/other/)

# Advantages over `maven-publish`

Expand All @@ -29,7 +29,7 @@ plugin directly integrate with, so why should you use this plugin?
- **Gradle property based config**. Easily configure the plugin with Gradle properties that will apply to all
subprojects

There is also a [base plugin](docs/base.md) which removes any automatic configuration and allows for a more manual
There is also a [base plugin](https://vanniktech.github.io/gradle-maven-publish-plugin/base/) which removes any automatic configuration and allows for a more manual
configuration of what should be published.

# License
Expand Down
16 changes: 12 additions & 4 deletions docs/central.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ This can be done through either the DSL or by setting Gradle properties.
=== "build.gradle"

```groovy
import com.vanniktech.maven.publish.SonatypeHost

mavenPublishing {
publishToMavenCentral("DEFAULT")
publishToMavenCentral(SonatypeHost.DEFAULT)
// or when publishing to https://s01.oss.sonatype.org
publishToMavenCentral("S01")
publishToMavenCentral(SonatypeHost.S01)

signAllPublications()
}
Expand All @@ -55,6 +57,8 @@ This can be done through either the DSL or by setting Gradle properties.
=== "build.gradle.kts"

```kotlin
import com.vanniktech.maven.publish.SonatypeHost

mavenPublishing {
publishToMavenCentral(SonatypeHost.DEFAULT)
// or when publishing to https://s01.oss.sonatype.org
Expand Down Expand Up @@ -250,16 +254,20 @@ by adding an extra parameter in the DSL or setting a Gradle property
=== "build.gradle"

```groovy
import com.vanniktech.maven.publish.SonatypeHost

mavenPublishing {
publishToMavenCentral("DEFAULT", true)
publishToMavenCentral(SonatypeHost.DEFAULT, true)
// or when publishing to https://s01.oss.sonatype.org
publishToMavenCentral("S01", true)
publishToMavenCentral(SonatypeHost.S01, true)
}
```

=== "build.gradle.kts"

```kotlin
import com.vanniktech.maven.publish.SonatypeHost

mavenPublishing {
publishToMavenCentral(SonatypeHost.DEFAULT, true)
// or when publishing to https://s01.oss.sonatype.org
Expand Down

0 comments on commit f9473c0

Please sign in to comment.