From dd6a177fc83036d40b51805a391af5af3a95831d Mon Sep 17 00:00:00 2001 From: Jonathan Dao Date: Mon, 13 Jan 2025 22:07:48 -0800 Subject: [PATCH] Attempt at uploading vendordep json file --- publish.gradle | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/publish.gradle b/publish.gradle index f192c0b..15bdeed 100644 --- a/publish.gradle +++ b/publish.gradle @@ -5,7 +5,7 @@ apply plugin: 'maven-publish' ext.licenseFile = files("$rootDir/LICENSE.txt") -def templateVendorFile = "frc4201Codex.json" +def vendordepFilename = "frc4201Codex.json" def pubVersion = '0.0.1' @@ -86,27 +86,17 @@ task outputJavadocJar(type: Jar, dependsOn: javadoc) { task vendordepJson() { description = 'Builds the vendordep json file.' group = 'Build' - outputs.file("$buildDir/repos/$templateVendorFile") + outputs.file("codex/$vendordepFilename") copy { - from templateVendorFile - into "$buildDir/repos/" + from vendordepFilename + into "codex/" expand(version: pubVersion, groupId: artifactGroupId, artifactId: baseArtifactId) } } -task vendordepJsonZip(type: Zip) { - destinationDirectory = outputsFolder - archiveBaseName = "frc4201Codex" - - from("$buildDir/repos/$templateVendorFile") { - into '/' - } - dependsOn vendordepJson -} - artifacts { archives sourcesJar archives javadocJar @@ -123,7 +113,6 @@ addTaskToCopyAllOutputs(vendordepJsonZip) build.dependsOn outputSourcesJar build.dependsOn outputJavadocJar build.dependsOn outputJar -build.dependsOn vendordepJsonZip libraryBuild.dependsOn build