Giter Site home page Giter Site logo

slackhq / slack-gradle-plugin Goto Github PK

View Code? Open in Web Editor NEW
406.0 15.0 15.0 7.16 MB

Gradle and IntelliJ build tooling used in Slack's Android repo

Home Page: https://slackhq.github.io/slack-gradle-plugin

License: Apache License 2.0

Shell 1.19% Kotlin 98.79% Swift 0.02%
android gradle intellij intellij-plugin java kotlin

slack-gradle-plugin's People

Contributors

arpita184 avatar dependabot[bot] avatar fxchen avatar himanshudroid avatar kateliu20 avatar linhpha avatar roach avatar ryan-moore-slack avatar saifc avatar slack-oss-bot avatar twisterrob avatar valeraz avatar zacsweers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

slack-gradle-plugin's Issues

Logging throws an exception during cleans

io.reactivex.rxjava3.exceptions.OnErrorNotImplementedException: The exception was not handled due to missing onError handler in the subscribe() method call. Further reading: https://github.com/ReactiveX/RxJava/wiki/Error-Handling | java.io.FileNotFoundException: /Users/zacsweers/dev/android/personal/CatchUp/build/outputs/logs/last-build-thermals.log (No such file or directory)
        at io.reactivex.rxjava3.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:718)
        at io.reactivex.rxjava3.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:715)
        at io.reactivex.rxjava3.internal.observers.LambdaObserver.onError(LambdaObserver.java:77)
        at io.reactivex.rxjava3.internal.operators.observable.ObservableScanSeed$ScanSeedObserver.onError(ObservableScanSeed.java:118)
        at io.reactivex.rxjava3.internal.operators.observable.ObservableDoOnEach$DoOnEachObserver.onError(ObservableDoOnEach.java:117)
        at io.reactivex.rxjava3.internal.operators.observable.ObservableDoOnEach$DoOnEachObserver.onNext(ObservableDoOnEach.java:97)
        at io.reactivex.rxjava3.internal.operators.observable.ObservableFilter$FilterObserver.onNext(ObservableFilter.java:52)
        at io.reactivex.rxjava3.internal.operators.observable.ObservableMap$MapObserver.onNext(ObservableMap.java:63)
        at io.reactivex.rxjava3.internal.operators.observable.ObservableInterval$IntervalObserver.run(ObservableInterval.java:82)
        at io.reactivex.rxjava3.internal.schedulers.ScheduledDirectPeriodicTask.run(ScheduledDirectPeriodicTask.java:35)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
        at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.io.FileNotFoundException: /Users/zacsweers/dev/android/personal/CatchUp/build/outputs/logs/last-build-thermals.log (No such file or directory)
        at java.base/java.io.FileOutputStream.open0(Native Method)
        at java.base/java.io.FileOutputStream.open(FileOutputStream.java:293)
        at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:235)
        at kotlin.io.FilesKt__FileReadWriteKt.appendBytes(FileReadWrite.kt:115)
        at kotlin.io.FilesKt__FileReadWriteKt.appendText(FileReadWrite.kt:142)
        at kotlin.io.FilesKt__FileReadWriteKt.appendText$default(FileReadWrite.kt:142)
        at slack.gradle.util.AppleSiliconThermals$start$4.accept(ThermalsWatcher.kt:297)
        at slack.gradle.util.AppleSiliconThermals$start$4.accept(ThermalsWatcher.kt:266)
        at io.reactivex.rxjava3.internal.operators.observable.ObservableDoOnEach$DoOnEachObserver.onNext(ObservableDoOnEach.java:93)
        ... 10 more
Exception in thread "RxComputationThreadPool-6" io.reactivex.rxjava3.exceptions.OnErrorNotImplementedException: The exception was not handled due to missing onError handler in the subscribe() method call. Further reading: https://github.com/ReactiveX/RxJava/wiki/Error-Handling | java.io.FileNotFoundException: /Users/zacsweers/dev/android/personal/CatchUp/build/outputs/logs/last-build-thermals.log (No such file or directory)
        at io.reactivex.rxjava3.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:718)
        at io.reactivex.rxjava3.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:715)
        at io.reactivex.rxjava3.internal.observers.LambdaObserver.onError(LambdaObserver.java:77)
        at io.reactivex.rxjava3.internal.operators.observable.ObservableScanSeed$ScanSeedObserver.onError(ObservableScanSeed.java:118)
        at io.reactivex.rxjava3.internal.operators.observable.ObservableDoOnEach$DoOnEachObserver.onError(ObservableDoOnEach.java:117)
        at io.reactivex.rxjava3.internal.operators.observable.ObservableDoOnEach$DoOnEachObserver.onNext(ObservableDoOnEach.java:97)
        at io.reactivex.rxjava3.internal.operators.observable.ObservableFilter$FilterObserver.onNext(ObservableFilter.java:52)
        at io.reactivex.rxjava3.internal.operators.observable.ObservableMap$MapObserver.onNext(ObservableMap.java:63)
        at io.reactivex.rxjava3.internal.operators.observable.ObservableInterval$IntervalObserver.run(ObservableInterval.java:82)
        at io.reactivex.rxjava3.internal.schedulers.ScheduledDirectPeriodicTask.run(ScheduledDirectPeriodicTask.java:35)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
        at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.io.FileNotFoundException: /Users/zacsweers/dev/android/personal/CatchUp/build/outputs/logs/last-build-thermals.log (No such file or directory)
        at java.base/java.io.FileOutputStream.open0(Native Method)
        at java.base/java.io.FileOutputStream.open(FileOutputStream.java:293)
        at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:235)
        at kotlin.io.FilesKt__FileReadWriteKt.appendBytes(FileReadWrite.kt:115)
        at kotlin.io.FilesKt__FileReadWriteKt.appendText(FileReadWrite.kt:142)
        at kotlin.io.FilesKt__FileReadWriteKt.appendText$default(FileReadWrite.kt:142)
        at slack.gradle.util.AppleSiliconThermals$start$4.accept(ThermalsWatcher.kt:297)
        at slack.gradle.util.AppleSiliconThermals$start$4.accept(ThermalsWatcher.kt:266)
        at io.reactivex.rxjava3.internal.operators.observable.ObservableDoOnEach$DoOnEachObserver.onNext(ObservableDoOnEach.java:93)
        ... 10 more

Add a skate feature to linkify feature flags

It would be cool if we could do a config to recognize certain patterns in code like our internal enum-based flags and linkify them to where they're defined on a backend server. Could work similar to how github can linkify common bugtracker IDs

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

Renovate tried to run on this repository, but found these problems.

  • WARN: Found renovate config warnings
  • WARN: Package lookup failures

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • Update Docsite Dependencies (Markdown, MarkupSafe, mkdocs-material, pymdown-extensions, termcolor, tornado)
  • Update renovatebot/github-action action to v39.2.4
  • Update dependency future to v1
  • Update renovatebot/github-action action to v40

Warning

Renovate failed to look up the following dependencies: Failed to look up maven package com.gradle.enterprise:com.gradle.enterprise.gradle.plugin, Failed to look up maven package com.gradle:gradle-enterprise-gradle-plugin, Failed to look up maven package com.jraska.module.graph.assertion:plugin, Failed to look up maven package com.sergei-lapin.napt:gradle, Failed to look up maven package net.ltgt.gradle:gradle-nullaway-plugin, Failed to look up maven package org.gradle:test-retry-gradle-plugin, Failed to look up maven package com.autonomousapps.plugin-best-practices-plugin:com.autonomousapps.plugin-best-practices-plugin.gradle.plugin, Failed to look up maven package com.github.gmazzo.buildconfig:com.github.gmazzo.buildconfig.gradle.plugin, Failed to look up maven package dev.bmac.intellij.plugin-uploader:dev.bmac.intellij.plugin-uploader.gradle.plugin, Failed to look up maven package com.diffplug.spotless:com.diffplug.spotless.gradle.plugin, Failed to look up maven package com.github.ben-manes.versions:com.github.ben-manes.versions.gradle.plugin.

Files affected: settings.gradle.kts, gradle/libs.versions.toml


Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v4
  • gradle/wrapper-validation-action v2
  • actions/setup-java v4
  • gradle/actions v3
  • actions/upload-artifact v4
  • actions/checkout v4
  • actions/setup-java v4
  • gradle/actions v3
.github/workflows/code-review.yml
  • fxchen/code-review v0.2.9-alpha
.github/workflows/publish-docs.yml
  • actions/checkout v4
  • gradle/wrapper-validation-action v2
  • actions/setup-java v4
  • gradle/gradle-build-action v3
  • actions/setup-python v5
  • peaceiris/actions-gh-pages v3
.github/workflows/renovate.yml
  • actions/checkout v4
  • renovatebot/github-action v39.0.1
gradle
gradle.properties
settings.gradle.kts
  • com.gradle.enterprise 3.14.1
build.gradle.kts
agp-handlers/agp-handler-82/gradle.properties
agp-handlers/agp-handler-82/build.gradle.kts
agp-handlers/agp-handler-83/gradle.properties
agp-handlers/agp-handler-83/build.gradle.kts
agp-handlers/agp-handler-api/gradle.properties
agp-handlers/agp-handler-api/build.gradle.kts
gradle/libs.versions.toml
  • com.android.tools.build:gradle 8.2.2
  • com.android.tools.build:gradle 8.3.0-rc02
  • com.google.auto.service:auto-service-annotations 1.1.1
  • dev.zacsweers.autoservice:auto-service-ksp 1.1.0
  • com.bugsnag:bugsnag 3.7.1
  • com.github.ajalt.clikt:clikt 4.2.2
  • org.apache.commons:commons-text 1.11.0
  • com.slack.lint.compose:compose-lint-checks 1.3.1
  • com.slack.circuit:circuit-foundation 0.19.1
  • org.jetbrains.kotlinx:kotlinx-coroutines-bom 1.8.0
  • io.gitlab.arturbosch.detekt:detekt-core 1.23.5
  • androidx.lint:lint-gradle 1.0.0-alpha01
  • com.squareup.anvil:gradle-plugin 2.4.9-1-8
  • com.bugsnag:bugsnag-android-gradle-plugin 8.1.0
  • org.jetbrains.compose:compose-gradle-plugin 1.5.12
  • com.autonomousapps:dependency-analysis-gradle-plugin 1.30.0
  • io.gitlab.arturbosch.detekt:detekt-gradle-plugin 1.23.5
  • com.osacky.doctor:doctor-plugin 0.9.1
  • com.gradle:gradle-enterprise-gradle-plugin 3.16.2
  • net.ltgt.gradle:gradle-errorprone-plugin 3.0.1
  • com.jraska.module.graph.assertion:plugin 2.3.1
  • org.jetbrains.kotlin:kotlin-gradle-plugin 1.9.22
  • com.google.devtools.ksp:symbol-processing-gradle-plugin 1.9.22-1.0.17
  • dev.zacsweers.moshix:moshi-gradle-plugin 0.25.1
  • com.sergei-lapin.napt:gradle 1.16
  • net.ltgt.gradle:gradle-nullaway-plugin 1.3.0
  • dev.zacsweers.redacted:redacted-compiler-plugin-gradle 1.7.1
  • org.gradle:test-retry-gradle-plugin 1.5.8
  • com.squareup:sort-dependencies-gradle-plugin 0.6
  • com.diffplug.spotless:spotless-plugin-gradle 6.25.0
  • app.cash.sqldelight:gradle-plugin 2.0.1
  • com.github.ben-manes:gradle-versions-plugin 0.47.0
  • com.squareup.wire:wire-gradle-plugin 4.9.3
  • com.google.guava:guava 33.0.0-jre
  • com.slack.cli:kotlin-cli-util 2.6.3
  • org.jetbrains.kotlin:kotlin-bom 1.9.22
  • com.squareup:kotlinpoet 1.16.0
  • org.jetbrains.kotlin:kotlin-reflect 1.9.22
  • com.facebook:ktfmt 0.47
  • org.jgrapht:jgrapht-core 1.5.2
  • net.java.dev.jna:jna 5.14.0
  • net.java.dev.jna:jna-platform 5.14.0
  • junit:junit 4.13.2
  • org.jetbrains:markdown 0.6.1
  • com.squareup.moshi:moshi 1.15.1
  • com.squareup.okhttp3:okhttp 5.0.0-alpha.12
  • com.squareup.okhttp3:okhttp-bom 5.0.0-alpha.12
  • com.squareup.okhttp3:logging-interceptor 5.0.0-alpha.12
  • com.squareup.okio:okio 3.8.0
  • com.squareup.okio:okio-fakefilesystem 3.8.0
  • com.github.oshi:oshi-core 6.4.13
  • com.squareup.retrofit2:retrofit 2.9.0
  • com.squareup.retrofit2:converter-wire 2.9.0
  • io.reactivex.rxjava3:rxjava 3.1.8
  • com.slack.lint:slack-lint-checks 0.7.0
  • com.slack.lint:slack-lint-annotations 0.7.0
  • com.google.truth:truth 1.4.1
  • com.autonomousapps.plugin-best-practices-plugin 0.10
  • com.github.gmazzo.buildconfig 5.3.5
  • org.jetbrains.compose 1.5.12
  • com.autonomousapps.dependency-analysis 1.30.0
  • io.gitlab.arturbosch.detekt 1.23.5
  • org.jetbrains.dokka 1.9.10
  • org.jetbrains.intellij 1.17.0
  • com.google.devtools.ksp 1.9.22-1.0.17
  • org.jetbrains.kotlin.jvm 1.9.22
  • org.jetbrains.kotlin.plugin.sam.with.receiver 1.9.22
  • com.android.lint 8.2.2
  • com.vanniktech.maven.publish 0.27.0
  • dev.zacsweers.moshix 0.25.1
  • dev.bmac.intellij.plugin-uploader 1.3.2
  • com.diffplug.spotless 6.25.0
  • com.squareup.sort-dependencies 0.6
  • com.github.ben-manes.versions 0.47.0
  • com.squareup.wire 4.9.3
sgp-common/gradle.properties
sgp-common/build.gradle.kts
skate-plugin/gradle.properties
skate-plugin/build.gradle.kts
skate-plugin/artifactory-authenticator/gradle.properties
skate-plugin/artifactory-authenticator/build.gradle.kts
skippy/gradle.properties
skippy/build.gradle.kts
slack-plugin/gradle.properties
slack-plugin/build.gradle.kts
tracing/gradle.properties
tracing/build.gradle.kts
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 8.6
pip_requirements
.github/workflows/mkdocs-requirements.txt
  • click ==8.1.7
  • future ==0.18.3
  • Jinja2 ==3.1.3
  • livereload ==2.6.3
  • lunr ==0.7.0.post1
  • Markdown ==3.5.1
  • MarkupSafe ==2.1.3
  • mkdocs ==1.5.3
  • mkdocs-macros-plugin ==1.0.5
  • mkdocs-material ==9.4.14
  • mkdocs-material-extensions ==1.3.1
  • Pygments ==2.17.2
  • pymdown-extensions ==10.5
  • python-dateutil ==2.8.2
  • PyYAML ==6.0.1
  • repackage ==0.7.3
  • six ==1.16.0
  • termcolor ==2.3.0
  • tornado ==6.3.3

Apple Silicon thermal throttling doesn't work in Gradle 8.0-rc-2+

io.reactivex.rxjava3.exceptions.UndeliverableException: The exception could not be delivered to the consumer because it has already canceled/disposed the flow or the exception has nowhere to go to begin with. Further reading: https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0#error-handling | java.lang.UnsatisfiedLinkError: Unable to load library 'thermal_state':
dlopen(libthermal_state.dylib, 0x0009): tried: 'libthermal_state.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/./libthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/../lib/libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache), 'libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache)
dlopen(libthermal_state.dylib, 0x0009): tried: 'libthermal_state.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/./libthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/../lib/libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache), 'libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache)
dlopen(/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state, 0x0009): tried: '/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file, not in dyld cache)
dlopen(/Library/Frameworks/thermal_state.framework/thermal_state, 0x0009): tried: '/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file, not in dyld cache)
dlopen(/System/Library/Frameworks/thermal_state.framework/thermal_state, 0x0009): tried: '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file, not in dyld cache)
	at io.reactivex.rxjava3.plugins.RxJavaPlugins.onError(RxJavaPlugins.java:372)
	at io.reactivex.rxjava3.internal.schedulers.ScheduledDirectPeriodicTask.run(ScheduledDirectPeriodicTask.java:41)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)
	at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:358)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1589)
Caused by: java.lang.UnsatisfiedLinkError: Unable to load library 'thermal_state':
dlopen(libthermal_state.dylib, 0x0009): tried: 'libthermal_state.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/./libthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/../lib/libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache), 'libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache)
dlopen(libthermal_state.dylib, 0x0009): tried: 'libthermal_state.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/./libthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/../lib/libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache), 'libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache)
dlopen(/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state, 0x0009): tried: '/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file, not in dyld cache)
dlopen(/Library/Frameworks/thermal_state.framework/thermal_state, 0x0009): tried: '/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file, not in dyld cache)
dlopen(/System/Library/Frameworks/thermal_state.framework/thermal_state, 0x0009): tried: '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file, not in dyld cache)
	at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:323)
	at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:483)
	at com.sun.jna.Library$Handler.<init>(Library.java:197)
	at com.sun.jna.Native.load(Native.java:622)
	at com.sun.jna.Native.load(Native.java:596)
	at slack.gradle.util.JnaThermalState$Companion.<clinit>(ThermalsWatcher.kt:382)
	at slack.gradle.util.JnaThermalState.<clinit>(ThermalsWatcher.kt)
	at slack.gradle.util.AppleSiliconThermals.getThermalState(ThermalsWatcher.kt:338)
	at slack.gradle.util.AppleSiliconThermals.access$getThermalState(ThermalsWatcher.kt:267)
	at slack.gradle.util.AppleSiliconThermals$start$2.apply(ThermalsWatcher.kt:288)
	at slack.gradle.util.AppleSiliconThermals$start$2.apply(ThermalsWatcher.kt:267)
	at io.reactivex.rxjava3.internal.operators.observable.ObservableMap$MapObserver.onNext(ObservableMap.java:58)
	at io.reactivex.rxjava3.internal.operators.observable.ObservableInterval$IntervalObserver.run(ObservableInterval.java:82)
	at io.reactivex.rxjava3.internal.schedulers.ScheduledDirectPeriodicTask.run(ScheduledDirectPeriodicTask.java:35)
	... 6 more
	Suppressed: java.lang.UnsatisfiedLinkError: dlopen(libthermal_state.dylib, 0x0009): tried: 'libthermal_state.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/./libthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/../lib/libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache), 'libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache)
		at com.sun.jna.Native.open(Native Method)
		at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:211)
		... 19 more
	Suppressed: java.lang.UnsatisfiedLinkError: dlopen(libthermal_state.dylib, 0x0009): tried: 'libthermal_state.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/./libthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/../lib/libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache), 'libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache)
		at com.sun.jna.Native.open(Native Method)
		at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:224)
		... 19 more
	Suppressed: java.lang.UnsatisfiedLinkError: dlopen(/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state, 0x0009): tried: '/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file, not in dyld cache)
		at com.sun.jna.Native.open(Native Method)
		at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:268)
		... 19 more
	Suppressed: java.lang.UnsatisfiedLinkError: dlopen(/Library/Frameworks/thermal_state.framework/thermal_state, 0x0009): tried: '/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file, not in dyld cache)
		at com.sun.jna.Native.open(Native Method)
		at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:268)
		... 19 more
	Suppressed: java.lang.UnsatisfiedLinkError: dlopen(/System/Library/Frameworks/thermal_state.framework/thermal_state, 0x0009): tried: '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file, not in dyld cache)
		at com.sun.jna.Native.open(Native Method)
		at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:268)
		... 19 more
Exception in thread "RxComputationThreadPool-1" io.reactivex.rxjava3.exceptions.UndeliverableException: The exception could not be delivered to the consumer because it has already canceled/disposed the flow or the exception has nowhere to go to begin with. Further reading: https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0#error-handling | java.lang.UnsatisfiedLinkError: Unable to load library 'thermal_state':
dlopen(libthermal_state.dylib, 0x0009): tried: 'libthermal_state.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/./libthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/../lib/libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache), 'libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache)
dlopen(libthermal_state.dylib, 0x0009): tried: 'libthermal_state.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/./libthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/../lib/libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache), 'libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache)
dlopen(/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state, 0x0009): tried: '/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file, not in dyld cache)
dlopen(/Library/Frameworks/thermal_state.framework/thermal_state, 0x0009): tried: '/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file, not in dyld cache)
dlopen(/System/Library/Frameworks/thermal_state.framework/thermal_state, 0x0009): tried: '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file, not in dyld cache)
	at io.reactivex.rxjava3.plugins.RxJavaPlugins.onError(RxJavaPlugins.java:372)
	at io.reactivex.rxjava3.internal.schedulers.ScheduledDirectPeriodicTask.run(ScheduledDirectPeriodicTask.java:41)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:577)
	at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:358)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1589)
Caused by: java.lang.UnsatisfiedLinkError: Unable to load library 'thermal_state':
dlopen(libthermal_state.dylib, 0x0009): tried: 'libthermal_state.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/./libthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/../lib/libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache), 'libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache)
dlopen(libthermal_state.dylib, 0x0009): tried: 'libthermal_state.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/./libthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/../lib/libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache), 'libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache)
dlopen(/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state, 0x0009): tried: '/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file, not in dyld cache)
dlopen(/Library/Frameworks/thermal_state.framework/thermal_state, 0x0009): tried: '/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file, not in dyld cache)
dlopen(/System/Library/Frameworks/thermal_state.framework/thermal_state, 0x0009): tried: '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file, not in dyld cache)
	at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:323)
	at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:483)
	at com.sun.jna.Library$Handler.<init>(Library.java:197)
	at com.sun.jna.Native.load(Native.java:622)
	at com.sun.jna.Native.load(Native.java:596)
	at slack.gradle.util.JnaThermalState$Companion.<clinit>(ThermalsWatcher.kt:382)
	at slack.gradle.util.JnaThermalState.<clinit>(ThermalsWatcher.kt)
	at slack.gradle.util.AppleSiliconThermals.getThermalState(ThermalsWatcher.kt:338)
	at slack.gradle.util.AppleSiliconThermals.access$getThermalState(ThermalsWatcher.kt:267)
	at slack.gradle.util.AppleSiliconThermals$start$2.apply(ThermalsWatcher.kt:288)
	at slack.gradle.util.AppleSiliconThermals$start$2.apply(ThermalsWatcher.kt:267)
	at io.reactivex.rxjava3.internal.operators.observable.ObservableMap$MapObserver.onNext(ObservableMap.java:58)
	at io.reactivex.rxjava3.internal.operators.observable.ObservableInterval$IntervalObserver.run(ObservableInterval.java:82)
	at io.reactivex.rxjava3.internal.schedulers.ScheduledDirectPeriodicTask.run(ScheduledDirectPeriodicTask.java:35)
	... 6 more
	Suppressed: java.lang.UnsatisfiedLinkError: dlopen(libthermal_state.dylib, 0x0009): tried: 'libthermal_state.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/./libthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/../lib/libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache), 'libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache)
		at com.sun.jna.Native.open(Native Method)
		at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:211)
		... 19 more
	Suppressed: java.lang.UnsatisfiedLinkError: dlopen(libthermal_state.dylib, 0x0009): tried: 'libthermal_state.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/./libthermal_state.dylib' (no such file), '/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/../lib/libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache), 'libthermal_state.dylib' (no such file), '/usr/lib/libthermal_state.dylib' (no such file, not in dyld cache)
		at com.sun.jna.Native.open(Native Method)
		at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:224)
		... 19 more
	Suppressed: java.lang.UnsatisfiedLinkError: dlopen(/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state, 0x0009): tried: '/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/Users/zacsweers/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file, not in dyld cache)
		at com.sun.jna.Native.open(Native Method)
		at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:268)
		... 19 more
	Suppressed: java.lang.UnsatisfiedLinkError: dlopen(/Library/Frameworks/thermal_state.framework/thermal_state, 0x0009): tried: '/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file, not in dyld cache)
		at com.sun.jna.Native.open(Native Method)
		at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:268)
		... 19 more
	Suppressed: java.lang.UnsatisfiedLinkError: dlopen(/System/Library/Frameworks/thermal_state.framework/thermal_state, 0x0009): tried: '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file), '/System/Library/Frameworks/thermal_state.framework/thermal_state' (no such file, not in dyld cache)
		at com.sun.jna.Native.open(Native Method)
		at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:268)
		... 19 more

Reconsider memory args for daemons

Currently we split memory 75/25 for kotlin and gradle daemons. This was to give more precedence to kotlin compilations, but this ends up OOMing gradle syncs and a number of other gradle-daemon-heavy tasks otherwise. Should we retool this to 50/50?

Create dependency output tasks, consume in module stats and skippy

Currently we have two different implementations for computing dependencies.

  1. Module stats computes shallow dependencies from explicit build file declarations.
  2. Skippy uses SerializableDependencyGraph, which uses a subset of configurations and appears to also only just be shallow dependencies.

A new solution would be to unify these solutions and use the fully resolved graph for both. Using focus's approach seems good. We could then make a task that writes these to an output file and then aggregate them in module and skippy tasks. This would also obviate the need for declaring an explicit set of configurations to consume, as we could dynamically consume all of them.

Don't write thermlogs in clean tasks

> Unable to delete directory '/Users/sean.kim/Projects/slack-android-ng/build'
    New files were found. This might happen because a process is still writing to the target directory.
    - /Users/sean.kim/Projects/slack-android-ng/build/outputs
    - /Users/sean.kim/Projects/slack-android-ng/build/outputs/logs
    - /Users/sean.kim/Projects/slack-android-ng/build/outputs/logs/last-build-thermals.log

Add Detekt to Skippy

This would require a globalDetekt task umbrella like we do with lint and unit tests.

Add standard IDE plugins as dependencies in skate

Things we use like ktfmt, google-java-format, kotlin, detekt, android, etc would be good to have. Bonus if we can auto-configure them too (i.e. like enabling the formatters, setting their styles, etc).

Git status changes affect configuration cache

We capture these values currently via exec operation since updating to Gradle 7.5, but this breaks configuration cache more often in an undesirable way. We should find a way to ignore this or disable it.

Request to add com.sun.tools.javac.model to bootstrap update.

Getting the below compilation error. Request to add com.sun.tools.javac.model to bootstrap update

FAILED
error: An unhandled exception was thrown by the Error Prone static analysis plugin.
     Please report this at https://github.com/google/error-prone/issues/new and include the following:

     error-prone version: 2.18.0
     BugPattern: (see stack trace)
     Stack Trace:
     java.lang.IllegalAccessError: class com.google.errorprone.VisitorState (in unnamed module @0x57d8937c) cannot access class com.sun.tools.javac.model.JavacElements (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.model to unnamed module @0x57d8937c

Support Dagger KSP in dagger() extensions

We should add a new gradle property to indicate whether or not to use Dagger KSP (i.e. just a boolean flag to indicate if it's allowed, similar to the moshi-ir flag) and then support this in SlackExtension when wiring up dagger.

We should add a second property to track if Anvil supports dagger KSP (square/anvil#704), and if that is not true then we should still use kapt for those projects.

This should allow us to use dagger KSP where possible and incrementally upgrade.

Optimize skippy affected projects by defining configurations

If project A has a testImplementation or androidTestImplementation on project B, then project B should mark project A test/lint/detekt/androidTest tests as affected, but not propagate that to anything that depends on A because only known test configurations were affected.

We do something similar to this right now with changed files and not marking dependents as affected if the files are test-only.

LinkageError when resolving method 'org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()'

Hi skate friends!
I ran into this IDE error, experienced after attaching the debugger, starting a build, cancelling the build, and then restarting Android Studio. This error then showed up in the IDE errors window.

com.intellij.diagnostic.PluginException: Cannot create extension (class=com.slack.sgp.intellij.SkateErrorHandler) [Plugin: com.slack.intellij.skate]
	at com.intellij.serviceContainer.ComponentManagerImpl.createError(ComponentManagerImpl.kt:1096)
	at com.intellij.openapi.extensions.impl.XmlExtensionAdapter.doCreateInstance(XmlExtensionAdapter.kt:70)
	at com.intellij.openapi.extensions.impl.XmlExtensionAdapter.createInstance(XmlExtensionAdapter.kt:31)
	at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapter(ExtensionPointImpl.java:473)
	at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processAdapters(ExtensionPointImpl.java:421)
	at com.intellij.openapi.extensions.impl.ExtensionPointImpl.computeExtensionList(ExtensionPointImpl.java:249)
	at com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensionList(ExtensionPointImpl.java:243)
	at com.intellij.openapi.extensions.ExtensionPointName.getExtensionList(ExtensionPointName.kt:43)
	at com.intellij.diagnostic.IdeErrorsDialog.getSubmitter(IdeErrorsDialog.java:948)
	at com.intellij.diagnostic.IdeErrorsDialog.getSubmitter(IdeErrorsDialog.java:938)
	at com.intellij.diagnostic.DefaultIdeaErrorLogger.canHandle(DefaultIdeaErrorLogger.java:46)
	at com.intellij.diagnostic.DialogAppender.appendToLoggers(DialogAppender.java:95)
	at com.intellij.diagnostic.DialogAppender.lambda$queueAppend$0(DialogAppender.java:79)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:788)
	at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739)
	at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:731)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:758)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:667)
	at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$7(IdeEventQueue.kt:571)
	at com.intellij.openapi.application.impl.ApplicationImpl.withoutImplicitRead(ApplicationImpl.java:1444)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:571)
	at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:68)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:349)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:348)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:348)
	at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:343)
	at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:995)
	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
	at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:995)
	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$4(IdeEventQueue.kt:343)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:829)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:385)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
Caused by: com.intellij.diagnostic.PluginException: Cannot create class com.slack.sgp.intellij.SkateErrorHandler (classloader=PluginClassLoader(plugin=PluginDescriptor(name=Skate, id=com.slack.intellij.skate, descriptorPath=plugin.xml, path=~/Library/Application Support/Google/AndroidStudioPreview2023.1/plugins/skate-plugin, version=0.1.1, package=null, isBundled=false), packagePrefix=null, instanceId=50, state=active))
	at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:1034)
	at com.intellij.openapi.extensions.impl.XmlExtensionAdapter.instantiateClass(XmlExtensionAdapter.kt:79)
	at com.intellij.openapi.extensions.impl.XmlExtensionAdapter$SimpleConstructorInjectionAdapter.instantiateClass(XmlExtensionAdapter.kt:90)
	at com.intellij.openapi.extensions.impl.XmlExtensionAdapter.doCreateInstance(XmlExtensionAdapter.kt:50)
	... 40 more
Caused by: java.lang.LinkageError: loader constraint violation: when resolving method 'org.slf4j.ILoggerFactory org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()' the class loader com.intellij.ide.plugins.cl.PluginClassLoader @e428c59 of the current class, org/slf4j/LoggerFactory, and the class loader com.intellij.util.lang.PathClassLoader @1888ff2c for the method's defining class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory used in the signature (org.slf4j.LoggerFactory is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @e428c59, parent loader 'bootstrap'; org.slf4j.impl.StaticLoggerBinder is in unnamed module of loader com.intellij.util.lang.PathClassLoader @1888ff2c)
	at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:418)
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357)
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)
	at com.bugsnag.Bugsnag.<clinit>(Bugsnag.java:27)
	at com.slack.sgp.intellij.SkateErrorHandler.<init>(SkateErrorHandler.kt:36)
	at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:993)
	... 43 more

Fix thermlog and rosetta detection

We are running into the following issues with the configuration cache when trying to build:

Configuration cache problems found in this build.

2 problems were found storing the configuration cache.
- Class `org.zeroturnaround.exec.ProcessExecutor`: external process started 'sysctl -in sysctl.proc_translated'
  See https://docs.gradle.org/8.2-rc-2/userguide/configuration_cache.html#config_cache:requirements:external_processes
- Plugin 'com.slack.gradle.root': external process started 'pmset -g thermlog'
  See https://docs.gradle.org/8.2-rc-2/userguide/configuration_cache.html#config_cache:requirements:external_processes

See the complete report at file:///Users/yichen.che/slack-android-ng/build/reports/configuration-cache/5aw9d87yjtpi97w7xi82e3xn0/3m2h1xdb9yedffywz6edjjzpc/configuration-cache-report.html
> Starting an external process 'sysctl -in sysctl.proc_translated' during configuration time is unsupported.
> Starting an external process 'pmset -g thermlog' during configuration time is unsupported.

Configuration caching is broken by UpdateRobolectricJarsTask

Tried re-enabling Gradle configuration caching in my project once we were updated to Kotlin 1.9.0 since it didn't seem to work with Multiplatform projects. Now it doesn't seem to be playing nice with the update robolectric jars task. Using SGP 0.10.0.

FAILURE: Build failed with an exception.

* What went wrong:
Configuration cache state could not be cached: field `__allJars__` of task `:updateRobolectricJars` of type `slack.gradle.tasks.robolectric.UpdateRobolectricJarsTask`: error writing value of type 'org.gradle.api.internal.provider.DefaultListProperty'
> Could not resolve all artifacts for configuration ':detachedConfiguration1'.
   > Could not find org.robolectric:android-all-instrumented:11-robolectric-6757853-i-1.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/robolectric/android-all-instrumented/11-robolectric-6757853-i-1/android-all-instrumented-11-robolectric-6757853-i-1.pom
       - https://maven-central.storage-download.googleapis.com/maven2/org/robolectric/android-all-instrumented/11-robolectric-6757853-i-1/android-all-instrumented-11-robolectric-6757853-i-1.pom
       - https://repo.maven.apache.org/maven2/org/robolectric/android-all-instrumented/11-robolectric-6757853-i-1/android-all-instrumented-11-robolectric-6757853-i-1.pom
       - https://jitpack.io/org/robolectric/android-all-instrumented/11-robolectric-6757853-i-1/android-all-instrumented-11-robolectric-6757853-i-1.pom
     Required by:
         project :

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org./

BUILD FAILED in 7s
Error: Gradle build failed: see console output for details

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.