Skip to content

Gradle metadata not published by artifactory gradle plugin #247

@bclozel

Description

@bclozel

As of Gradle 5.3, we can now publish Gradle metadata with our build. Right now, one needs to enable this feature with enableFeaturePreview("GRADLE_METADATA").

I'm using Gradle 5.6.1 and artifactory plugin 4.9.8 with a publication setup. The module.json are generated during the build (and they can be seen in build/publications/mavenJava/ for each module. As advised by Gradle developers I'm publishing porper software components as well.

You can more details about my setup here and here, but basically:

// using a software component in the publication setup
publishing {
	publications {
		mavenJava(MavenPublication) {
			from components.java
			artifact sourcesJar
			artifact javadocJar
		}
	}
}

// publishing the maven publication for each project
artifactoryPublish {
	publications(publishing.publications.mavenJava)
}

The build log shows that now both generateMetadataFileForMavenJavaPublication and generatePomFileForMavenJavaPublication tasks are running before the artifactoryPublish task, but the module.json is not pushed to the artifact repository by the artifactoryDeploy task.

Is this feature supported by the artifactory gradle plugin?
Am I missing an experimental flag or some specific configuration on my side?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions