fix project name in meta upload (should be full name incl. maven group)
All checks were successful
Publish to snapshot maven / build (push) Successful in 26s

This commit is contained in:
moehreag 2024-06-17 19:08:21 +02:00
parent 41c3cce314
commit 36e646f69b
2 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@ plugins {
} }
group = "dev.frogmc" group = "dev.frogmc"
version = "0.0.1-alpha.6" version = "0.0.1-alpha.7"
repositories { repositories {
mavenCentral() mavenCentral()

View file

@ -7,7 +7,6 @@ import groovy.json.JsonOutput
import org.gradle.api.DefaultTask import org.gradle.api.DefaultTask
import org.gradle.api.artifacts.ResolvedArtifact import org.gradle.api.artifacts.ResolvedArtifact
import org.gradle.api.artifacts.repositories.MavenArtifactRepository import org.gradle.api.artifacts.repositories.MavenArtifactRepository
import org.gradle.api.plugins.JavaBasePlugin
import org.gradle.api.plugins.JavaPlugin import org.gradle.api.plugins.JavaPlugin
import org.gradle.api.tasks.TaskAction import org.gradle.api.tasks.TaskAction
import org.gradle.work.DisableCachingByDefault import org.gradle.work.DisableCachingByDefault
@ -52,7 +51,8 @@ open class MetaV1UpdateTask : DefaultTask() {
) )
}.toMutableList() }.toMutableList()
val builtFile = project.tasks.getByName(JavaPlugin.JAR_TASK_NAME).outputs.files.files.find { !it.name.endsWith("-dev.jar") && !it.name.endsWith("-sources.jar") && !it.name.endsWith("-javadoc.jar") } val builtFile = project.tasks.getByName(JavaPlugin.JAR_TASK_NAME).outputs.files.files.find { !it.name.endsWith("-dev.jar") && !it.name.endsWith("-sources.jar") && !it.name.endsWith("-javadoc.jar") }
libraries.add(MetaLibrary(project.name, getOwnUrl(), Files.size(builtFile!!.toPath()), Hashing.sha1().hashBytes(builtFile.readBytes()).toString())) libraries.add(MetaLibrary(project.group.toString() + ":" + project.name + ":" + project.version,
getOwnUrl(), Files.size(builtFile!!.toPath()), Hashing.sha1().hashBytes(builtFile.readBytes()).toString()))
val json = JsonOutput.toJson(MetaData(version, date, libraries)) val json = JsonOutput.toJson(MetaData(version, date, libraries))