Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,14 @@ jobs:
java-version: '17'

- name: Build Gradle Plugin, Kotlin Compiler Plugin, and Snapshots Runtime distribution artifacts
run: ./gradlew :plugin-build:assemble :sentry-kotlin-compiler-plugin:assemble :sentry-snapshots-runtime:assemble
run: ./gradlew assemble

- name: Archive artifacts
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
with:
name: ${{ github.sha }}
path: |
${{ github.workspace }}/plugin-build/build/distributions/*.zip
${{ github.workspace }}/sentry-kotlin-compiler-plugin/build/distributions/*.zip
${{ github.workspace }}/sentry-snapshots-runtime/build/distributions/*.zip
./*/build/distributions/*.zip

- name: Verify artifact contents
shell: bash
Expand Down
11 changes: 5 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ allprojects {

tasks.withType<Delete>().configureEach {
delete(rootProject.buildDir)
dependsOn(gradle.includedBuild("plugin-build").task(":clean"))
dependsOn(gradle.includedBuild("sentry-kotlin-compiler-plugin").task(":clean"))
gradle.includedBuilds.forEach { dependsOn(it.task(":clean")) }
}

tasks.register("integrationTest") {
Expand Down Expand Up @@ -75,11 +74,11 @@ tasks.register("preMerge") {
}

tasks.named("spotlessCheck") {
dependsOn(gradle.includedBuild("sentry-kotlin-compiler-plugin").task(":spotlessCheck"))
dependsOn(gradle.includedBuild("plugin-build").task(":spotlessCheck"))
gradle.includedBuilds.forEach { dependsOn(it.task(":spotlessCheck")) }
}

tasks.named("spotlessApply") {
dependsOn(gradle.includedBuild("sentry-kotlin-compiler-plugin").task(":spotlessApply"))
dependsOn(gradle.includedBuild("plugin-build").task(":spotlessApply"))
gradle.includedBuilds.forEach { dependsOn(it.task(":spotlessApply")) }
}

tasks.named("assemble") { gradle.includedBuilds.forEach { dependsOn(it.task(":assemble")) } }
2 changes: 2 additions & 0 deletions sentry-kotlin-compiler-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ tasks.named("distZip") {
onlyIf { inputs.sourceFiles.isEmpty.not().also { require(it) { "No distribution to zip." } } }
}

tasks.named("distTar") { enabled = false }

dependencies {
compileOnly(libs.kotlinCompilerEmbeddable)

Expand Down
2 changes: 2 additions & 0 deletions sentry-snapshots-runtime/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ tasks.named("distZip") {
onlyIf { inputs.sourceFiles.isEmpty.not().also { require(it) { "No distribution to zip." } } }
}

tasks.named("distTar") { enabled = false }

dependencies { compileOnly(libs.androidxAnnotation) }

plugins.withId("com.vanniktech.maven.publish.base") {
Expand Down
Loading