@@ -24,7 +24,7 @@ dependencies {
24
24
testImplementation ' org.junit.jupiter:junit-jupiter-api:5.8.2'
25
25
testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine:5.8.2'
26
26
implementation group : ' org.slf4j' , name : ' slf4j-api' , version : ' 1.7.35'
27
- api group : ' com.github.romanqed' , name : ' jutils' , version : ' 1.2.7 '
27
+ api group : ' com.github.romanqed' , name : ' jutils' , version : ' 3.3.0 '
28
28
}
29
29
30
30
test {
@@ -43,12 +43,45 @@ signing {
43
43
publishing {
44
44
publications {
45
45
mavenJava(MavenPublication ) {
46
- customizePom(pom)
47
- groupId group
48
- artifactId archivesBaseName
49
- version version
50
-
46
+ // Specify artifacts
47
+ groupId = group
48
+ artifactId = archivesBaseName
49
+ version = version
51
50
from components. java
51
+ // Configure pom
52
+ pom {
53
+ name. set(' http-server' )
54
+ description. set(' A repackaged and refactored sun http server, ' +
55
+ ' created in the original form by Oracle and formerly embedded in the jdk. ' +
56
+ ' Distributed under the GNU v2 license.' )
57
+ url. set(' https://github.com/AmayaFramework/sun-http-server' )
58
+ organization {
59
+ name. set(' io.github.amayaframework' )
60
+ url. set(' https://github.com/AmayaFramework' )
61
+ }
62
+ issueManagement {
63
+ system. set(' GitHub' )
64
+ url. set(' https://github.com/AmayaFramework/sun-http-server/issues' )
65
+ }
66
+ licenses {
67
+ license {
68
+ name. set(' GNU General Public License v2.0' )
69
+ url. set(' https://github.com/AmayaFramework/sun-http-server/blob/main/LICENSE' )
70
+ }
71
+ }
72
+ scm {
73
+ url. set(' https://github.com/AmayaFramework/sun-http-server' )
74
+ connection. set(' scm:https://github.com/AmayaFramework/sun-http-server.git' )
75
+ developerConnection. set(' scm:https://github.com/AmayaFramework/sun-http-server.git' )
76
+ }
77
+ developers {
78
+ developer {
79
+ id. set(' RomanQed' )
80
+ name. set(' Roman Bakaldin' )
81
+ email. set(' gbakaldin@gmail.com' )
82
+ }
83
+ }
84
+ }
52
85
}
53
86
}
54
87
repositories {
@@ -60,49 +93,4 @@ publishing {
60
93
}
61
94
}
62
95
}
63
- }
64
-
65
- def customizePom (pom ) {
66
- pom. withXml {
67
- def root = asNode()
68
-
69
- root. dependencies. removeAll { dep ->
70
- dep. scope == " test"
71
- }
72
-
73
- root. children(). last() + {
74
- resolveStrategy = DELEGATE_FIRST
75
- description ' A repackaged and refactored sun http server, ' +
76
- ' created in the original form by Oracle and formerly embedded in the jdk. ' +
77
- ' Distributed under the GNU v2 license.'
78
- name ' http-server'
79
- url ' https://github.com/AmayaFramework/sun-http-server'
80
- organization {
81
- name ' io.github.amayaframework'
82
- url ' https://github.com/AmayaFramework'
83
- }
84
- issueManagement {
85
- system ' GitHub'
86
- url ' https://github.com/AmayaFramework/sun-http-server/issues'
87
- }
88
- licenses {
89
- license {
90
- name ' GNU General Public License v2.0'
91
- url ' https://github.com/AmayaFramework/sun-http-server/blob/main/LICENSE'
92
- }
93
- }
94
- scm {
95
- url ' https://github.com/AmayaFramework/sun-http-server'
96
- connection ' scm:https://github.com/AmayaFramework/sun-http-server.git'
97
- developerConnection ' scm:https://github.com/AmayaFramework/sun-http-server.git'
98
- }
99
- developers {
100
- developer {
101
- id ' dev'
102
- name ' RomanQed'
103
- email ' gbakaldin@gmail.com'
104
- }
105
- }
106
- }
107
- }
108
96
}
0 commit comments