Skip to content

Commit

Permalink
build: add mbeddr artifact, do not test when packaging
Browse files Browse the repository at this point in the history
It is now possible to use the standard `assemble` task to assemble the
artifacts without running tests. This follows Gradle conventions.
  • Loading branch information
sergej-koscejev committed Oct 24, 2024
1 parent e3d97ae commit 940ca52
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions build/com.mbeddr/languages/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -171,20 +171,16 @@ tasks.named('check') {
dependsOn 'test'
}


def pubDeb
if (ciBuild) {
pubDeb = test_mbeddr
} else {
pubDeb = build_mbeddr
}

task package_mbeddr(type: Zip, dependsOn: pubDeb) {
task package_mbeddr(type: Zip, dependsOn: build_mbeddr) {
archiveFileName = 'com.mbeddr.zip'
from artifactsDir
include "mbeddr/**"
}

artifacts {
'default'(package_mbeddr)
}

publishing {
publications {
mbeddr(MavenPublication) {
Expand Down

0 comments on commit 940ca52

Please sign in to comment.