File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments