-
Notifications
You must be signed in to change notification settings - Fork 135
Open
Description
Thank you so much for an amazing plugin!
I'm trying to publish snapshot builds of one of my libraries to Github Packages
According to Github documentation
GitHub Packages supports SNAPSHOT versions of Apache Maven. To use the GitHub Packages repository for downloading SNAPSHOT artifacts, enable SNAPSHOTS in the POM of the consuming project or your ~/.m2/settings.xml file.
which requires the pom to include
<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
</repository>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/OWNER/REPOSITORY</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>I think the current MavenPom is missing this flag
pom {
name.set(..)
description.set(..)
inceptionYear.set(..)
url.set(..)
profile("github"){
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/OWNER/REPOSITORY")
// missing flag
snapshots {
enabled = true
}
}
}
}
}Is this something we can add?
Metadata
Metadata
Assignees
Labels
No labels