correct pom location
All checks were successful
Publish to snapshot maven / build (push) Successful in 21s

This commit is contained in:
moehreag 2024-06-10 20:27:14 +02:00
parent 43adf0206f
commit a099567ac9
2 changed files with 3 additions and 3 deletions

View file

@ -26,11 +26,10 @@ object VersionChecker {
downloadDirectory.createDirectories()
val raw = rawDownload(clientData.url)
downloadFile.writeBytes(raw)
savePomFile(version, downloadDirectory)
return downloadFile
}
private fun savePomFile(version: String, dir: Path){
fun savePomFile(version: String, dir: Path){
val content = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
"<project xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\" xmlns=\"http://maven.apache.org/POM/4.0.0\"\n" +
"\t\t xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n" +
@ -122,4 +121,4 @@ class LibraryArtifact(val path: String, val sha1: String, val size: Int, val url
class AssetIndex(val id: String, val sha1: String, val size: Int, val totalSize: Int, val url: String)
class VersionDownloads(val client: VersionClientData)
class VersionClientData(val sha1: String, val size: Int, val url: String)
class VersionClientData(val sha1: String, val size: Int, val url: String)

View file

@ -64,6 +64,7 @@ abstract class PhytotelmaGradleExtensionImpl: PhytotelmaGradleExtension {
VersionChecker.getDependencies(version) {
getProject().dependencies.add("implementation", it)
}
VersionChecker.savePomFile(version, remappedJar.parent)
getProject().dependencies.add("implementation", "net.minecraft:client:$version:remapped")
println("Generating run configurations...")