Skip to content

Commit bab61df

Browse files
committed
Fixes some maven related publishing
1 parent 6055b68 commit bab61df

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

build.gradle

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,14 @@ publishing {
134134
}
135135
publications {
136136
maven(MavenPublication) {
137-
artifactId base.archivesName.get()
138-
from components.java
137+
artifactId = base.archivesName.get()
138+
139+
artifact(tasks.shadowJar)
140+
artifact(tasks.sourcesJar)
141+
artifact(tasks.javadocJar)
139142
pom.withXml {
140143
asNode().dependencies.dependency.each { dep ->
141-
if (dep.groupId.text() == 'com.buuz135' && dep.groupId.text() == 'curse.maven') {
144+
if (dep.groupId.text() == 'com.buuz135' || dep.groupId.text() == 'curse.maven') {
142145
dep.parent().remove(dep)
143146
}
144147
}

0 commit comments

Comments
 (0)