File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed
Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change 11plugins {
22 id ' java-library'
3+ id ' maven-publish'
4+ id ' signing'
35}
46
57repositories {
@@ -127,3 +129,60 @@ task runSimpleFileServer(type: Test) {
127129 }
128130 }
129131}
132+
133+ publishing {
134+ publications {
135+ maven(MavenPublication ) {
136+ groupId = ' io.github.robaho'
137+ artifactId = ' httpserver'
138+ version = " 1.0.1"
139+
140+ from components. java
141+
142+ pom {
143+ name = ' HttpServer'
144+ description = ' An HttpSettp based on the JDK version'
145+
146+ signing {
147+ sign publishing. publications. maven
148+ sign configurations. archives
149+ }
150+
151+ url = ' https://github.com/robaho/httpserver'
152+
153+ scm {
154+ url = ' https://github.com/robaho/httpserver.git'
155+ }
156+
157+ licenses {
158+ license {
159+ name = ' gnu v2.0'
160+ url = ' https://www.gnu.org/licenses/old-licenses/gpl-2.0.html'
161+ }
162+ license {
163+ name = ' nanohttpd'
164+ url = ' https://github.com/NanoHttpd/nanohttpd/blob/efb2ebf85a2b06f7c508aba9eaad5377e3a01e81/LICENSE.md'
165+ }
166+ }
167+
168+ developers {
169+ developer {
170+ id = ' robaho'
171+ name = ' Robert Engels'
172+ email = ' robaho@me.com'
173+ }
174+ }
175+ }
176+ }
177+ }
178+ repositories {
179+ maven {
180+ name = " OSSRH"
181+ url = " https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
182+ credentials {
183+ username = " $maven_user "
184+ password = " $maven_password "
185+ }
186+ }
187+ }
188+ }
You can’t perform that action at this time.
0 commit comments