gradle

Kotlin JaCoCo, no coverage -> IllegalClassFormatException … Please supply original non-instrumented classes

假如想象 提交于 2021-02-07 12:19:05
问题 kotlin verion: 1.3.61 Android Gradle Plugin: 3.5.3 JaCoCo Version: 0.8.4.201905082037 (default android gradle version) project: https://github.com/goldy1992/Mp3Player/tree/feature/issue-112/migrate-to-kotlin I have a multi module gradle project with: 2 flavours: full, automation 2 build types: release, debug I'm in the process of migrating everything to kotlin. Module structure commons [android library] (works as expected with test coverage) client-test-support (used for test implementations

Is it possible to check which gradle dependencies contains given class?

佐手、 提交于 2021-02-07 12:03:31
问题 Recently we had a version mismatch problem with a class org.apache.commons.beanutils.PropertyUtilsBean . We thought that mismatch is just between some dependency that brings commons-beanutils in versions 1.8 and 1.9.3 but after tracking and excluding each transitive dependency we were still facing an issue. It turns out that the the PropertyUtilsBean was also packed inside the commons-digester3-3.2-with-deps instead declared as dependency to commons-beanutils . Is it possible in gradle to

Gradle assemble specific flavor and build

杀马特。学长 韩版系。学妹 提交于 2021-02-07 11:59:42
问题 Running ./gradlew tasks shows options to assemble all builds for a particular flavor, or all flavors for a particular build. Does there exist an option to assemble for a specific flavor and build combination? 回答1: Yes - you're referring to a specific build variant ./gradlew assembleFlavoraBuildb Where your flavor is called flavora and your build is buildb Read more here: http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Building-and-Tasks 来源: https://stackoverflow.com

React Native Unable to find a matching configuration of project (Build only)

旧巷老猫 提交于 2021-02-07 11:16:17
问题 My react native build works fine when running react-native run-android or cd android && ./gradlew assembleDebug . But I'll get the following for all every react native package I have installed when running ./gradlew assembleRelease > Could not resolve project :react-native-fbsdk. Required by: project :app > Unable to find a matching configuration of project :react-native-fbsdk: - Configuration 'debugApiElements': - Required com.android.build.api.attributes.BuildTypeAttr 'releaseStaging' and

React Native Unable to find a matching configuration of project (Build only)

江枫思渺然 提交于 2021-02-07 11:14:01
问题 My react native build works fine when running react-native run-android or cd android && ./gradlew assembleDebug . But I'll get the following for all every react native package I have installed when running ./gradlew assembleRelease > Could not resolve project :react-native-fbsdk. Required by: project :app > Unable to find a matching configuration of project :react-native-fbsdk: - Configuration 'debugApiElements': - Required com.android.build.api.attributes.BuildTypeAttr 'releaseStaging' and

Could not reserve enough space for 1572864KB object heap Android Studio

天涯浪子 提交于 2021-02-07 10:13:40
问题 So I don't know what I clicked on but after I did, everything, like literally everything stopped working. Current error message: ERROR: Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used. Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/5.4.1/userguide/gradle_daemon.html Process command line: C:\Program Files (x86)\Java\jdk1.8.0_181\bin\java.exe -Xmx1536m

Intellij plugin development print in console window

倖福魔咒の 提交于 2021-02-07 09:49:44
问题 I am new to Intellij Idea plugin development. So I am developing a simple plugin to print a string value in a tool window(similar to console window)! There are less examples when I searched the web! I have a slight understanding about the Intellij action system but is unable to figure out how to register the necessary action in the plugin.xml to print the string in a tool window! Following is my code import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.actionSystem

Adding a Configuration as a dependency is a confusing behavior which isn't recommended

天大地大妈咪最大 提交于 2021-02-07 09:19:23
问题 I have encountered the following warning after trying to build my Kotlin project with Gradle 7. > Configure project :app Adding a Configuration as a dependency is a confusing behavior which isn't recommended. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. If you're interested in inheriting the dependencies from the Configuration you are adding, you should use Configuration#extendsFrom instead. See https://docs.gradle.org/6.7/dsl/org.gradle.api.artifacts

Adding a Configuration as a dependency is a confusing behavior which isn't recommended

倾然丶 夕夏残阳落幕 提交于 2021-02-07 09:17:58
问题 I have encountered the following warning after trying to build my Kotlin project with Gradle 7. > Configure project :app Adding a Configuration as a dependency is a confusing behavior which isn't recommended. This behaviour has been deprecated and is scheduled to be removed in Gradle 8.0. If you're interested in inheriting the dependencies from the Configuration you are adding, you should use Configuration#extendsFrom instead. See https://docs.gradle.org/6.7/dsl/org.gradle.api.artifacts

Is it possible to cache Spring's Application Context between classes?

时光毁灭记忆、已成空白 提交于 2021-02-07 08:15:54
问题 I'm trying to improve the performance of the Spring integration tests of a project I'm working on. We're using Spring + Gradle + JUnit. With this configuration inside the build.gradle file: test { useJUnit() setForkEvery(0) setMaxParallelForks(1) } We're able to run all tests in a single JVM. Though I think this is the default behaviour. But I've been reading about Spring Test Context Caching and with this property in my application-test.yml: logging: level: org: springframework: test: