Skip to content

Commit

Permalink
Attempt at uploading vendordep json file
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathandao0 committed Jan 14, 2025
1 parent ef58665 commit dd6a177
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -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
Expand All @@ -123,7 +113,6 @@ addTaskToCopyAllOutputs(vendordepJsonZip)
build.dependsOn outputSourcesJar
build.dependsOn outputJavadocJar
build.dependsOn outputJar
build.dependsOn vendordepJsonZip

libraryBuild.dependsOn build

Expand Down

0 comments on commit dd6a177

Please sign in to comment.