correct pom location
All checks were successful
Publish to snapshot maven / build (push) Successful in 21s
All checks were successful
Publish to snapshot maven / build (push) Successful in 21s
This commit is contained in:
parent
43adf0206f
commit
a099567ac9
|
@ -26,11 +26,10 @@ object VersionChecker {
|
||||||
downloadDirectory.createDirectories()
|
downloadDirectory.createDirectories()
|
||||||
val raw = rawDownload(clientData.url)
|
val raw = rawDownload(clientData.url)
|
||||||
downloadFile.writeBytes(raw)
|
downloadFile.writeBytes(raw)
|
||||||
savePomFile(version, downloadDirectory)
|
|
||||||
return downloadFile
|
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" +
|
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" +
|
"<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" +
|
"\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 AssetIndex(val id: String, val sha1: String, val size: Int, val totalSize: Int, val url: String)
|
||||||
class VersionDownloads(val client: VersionClientData)
|
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)
|
||||||
|
|
|
@ -64,6 +64,7 @@ abstract class PhytotelmaGradleExtensionImpl: PhytotelmaGradleExtension {
|
||||||
VersionChecker.getDependencies(version) {
|
VersionChecker.getDependencies(version) {
|
||||||
getProject().dependencies.add("implementation", it)
|
getProject().dependencies.add("implementation", it)
|
||||||
}
|
}
|
||||||
|
VersionChecker.savePomFile(version, remappedJar.parent)
|
||||||
getProject().dependencies.add("implementation", "net.minecraft:client:$version:remapped")
|
getProject().dependencies.add("implementation", "net.minecraft:client:$version:remapped")
|
||||||
|
|
||||||
println("Generating run configurations...")
|
println("Generating run configurations...")
|
||||||
|
|
Loading…
Reference in a new issue