Adam
05/29/2025, 8:34 PMorg/package/version/
directories. To support Maven I think a Maven plugin could make it work, but I'm just curious whether a pom.xml
would be necessary, since the GMM contains the same data.ephemient
05/29/2025, 8:41 PMephemient
05/29/2025, 8:41 PMephemient
05/29/2025, 8:43 PMAdam
05/29/2025, 8:43 PMAdam
05/29/2025, 8:47 PMEach file included in a release must be under 2 GiB. There is no limit on the total size of a release, nor bandwidth usage. https://docs.github.com/en/repositories/releasing-projects-on-github/about-releases#storage-and-bandwidth-quotas
Vampire
05/29/2025, 9:10 PMephemient
05/29/2025, 9:12 PMAdam
05/29/2025, 9:36 PM<http://api.github.com|api.github.com>
. Do you think it's also downloading release assets? The URLs are different at least, and don't start with <http://api.github.com|api.github.com>
Adam
05/29/2025, 9:38 PMephemient
05/29/2025, 9:38 PMephemient
05/29/2025, 9:39 PMAdam
05/29/2025, 9:42 PMephemient
05/29/2025, 9:51 PMAdam
05/29/2025, 9:55 PMivy(file("../demo-lib/github-release-files")) {
name = "DemoLibReleaseFiles"
patternLayout {
setM2compatible(true)
artifact("[organisation]/releases/download/v[revision]/[module]-[revision].[ext]")
}
metadataSources {
gradleMetadata()
}
}
Vampire
05/29/2025, 10:02 PMVampire
05/29/2025, 10:06 PMVampire
05/29/2025, 10:14 PMartifact(...)
call in the publication is appropriate.
If you use an Ivy
repository to publish to, but want to also add the POM file.
val java by components.getting
val maven by publications.creating(MavenPublication::class) {
from(java)
}
val ivy by publications.creating(IvyPublication::class) {
from(java)
val generatePomFileForMavenPublication by tasks.existing
artifact(generatePomFileForMavenPublication)
}
repositories {
ivy {
//...
}
}
Adam
05/30/2025, 7:05 AMorg.gradle.usage
of java-runtime
or java-api
, and converting them to dependencies with a <scope>
of runtime
or compile
respectively.
Maybe determining the versions gets complicated if there are constraints? What else could make it complicated?Vampire
05/30/2025, 7:29 AMAdam
05/30/2025, 7:34 AMCould not resolve all files for configuration. [...] Cannot locate module version for non-maven layout