Skip to content

Commit 5e2dd93

Browse files
committed
docs: Update publish section
1 parent a9e2cc8 commit 5e2dd93

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,20 @@ Application:
114114
Common publish configurations for both Android and Kotlin libraries.
115115

116116
- Applies plugin `maven-publish`
117-
- Adds repository [rmrNexus]
118117
- Adds sources to publication
119118

119+
You should specify publishing repositories manually. You can also use predicates for publication:
120+
```kotlin
121+
publishing {
122+
repositories {
123+
rmrNexus()
124+
githubPackages("RedMadRobot/gradle-infrastructure")
125+
// Publication with conditions
126+
if (!isSnapshotVersion && credentialsExist("bintray")) rmrBintray("infrastructure")
127+
}
128+
}
129+
```
130+
120131
### detekt
121132

122133
- Adds repository `jcenter`

0 commit comments

Comments
 (0)