Skip to content

Commit fd2f425

Browse files
committed
Update README.md
1 parent 08cddf1 commit fd2f425

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,35 @@ publishing {
8282
}
8383
```
8484

85+
```kotlin
86+
plugins {
87+
java
88+
id("moe.karla.maven-publishing")
89+
`maven-publish`
90+
}
91+
92+
group = "moe.karla.mptest"
93+
version = "1.0.0"
94+
description = "The Example Project. Project description is included in maven pom."
95+
96+
mavenPublishing {
97+
// Add This line if you want to verify your component before publishing.
98+
publishingType = moe.karla.maven.publishing.MavenPublishingExtension.PublishingType.USER_MANAGED
99+
100+
url = "https://github.com/YourUserName/YourProject"
101+
developer("YourUserName", "user@example.com")
102+
}
103+
104+
publishing {
105+
publications {
106+
register<MavenPublication>("maven") {
107+
from(project.components["java"])
108+
}
109+
}
110+
}
111+
112+
```
113+
85114
## Minimal Configure
86115

87116
```groovy

0 commit comments

Comments
 (0)