Skip to content

Commit

Permalink
build: depend on resolve_mbeddr_platform
Browse files Browse the repository at this point in the history
Because we always need the platform zip unzipped.

In case of a local build we zip the platform first and then unzip it
again later, but we keep the projects more independent, and we can fix
this later with more Gradle modelling.
  • Loading branch information
sergej-koscejev committed Oct 24, 2024
1 parent 33492bd commit ca2dbad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build/com.mbeddr/languages/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ dependencies {
}

task resolve_mbeddr_platform() {
dependsOn(configurations.mbeddrPlatform)
doLast {
copy {
from {
Expand All @@ -65,9 +66,7 @@ ant.taskdef(name: 'junit', classname: 'org.apache.tools.ant.taskdefs.optional.ju
ant.taskdef(name: 'junitreport', classname: 'org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator',
classpath: configurations.junitAnt.asPath)

def mbeddrPlatformDependency

task build_mbeddr(type: BuildLanguages, dependsOn: [':com.mbeddr:platform:copy_allScripts', configurations.mbeddrPlatform]) {
task build_mbeddr(type: BuildLanguages, dependsOn: [':com.mbeddr:platform:copy_allScripts', 'resolve_mbeddr_platform']) {
script script_build_mbeddr
outputs.dir("$artifactsDir/mbeddr")
}
Expand Down

0 comments on commit ca2dbad

Please sign in to comment.