Skip to content
This repository was archived by the owner on Jan 18, 2021. It is now read-only.
This repository was archived by the owner on Jan 18, 2021. It is now read-only.

Adding an archive from a subproject's task causes a build failure #857

Description

@LunNova
def gradlePluginJar = tasks.getByPath(':gradle-plugin:jar')
gradlePluginJar.getArchiveClassifier().set("gradle-plugin")
artifacts {
	add("archives", gradlePluginJar)
}

Causes a failure https://travis-ci.com/MinimallyCorrect/Mixin/jobs/277408476 :

org.gradle.api.publish.maven.InvalidMavenPublicationException: Invalid publication 'javaLibrary': POM file is invalid. Check any modifications you have made to the POM file.
...
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: Duplicated tag: 'packaging' (position: START_TAG seen ...<name>gradle-plugin</name>\n  <packaging>... @22:14) 

Thought this was the same issue as #847 but it still happens with shipkit 2.2.7.

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions