gradle

./gradlew assembleRelease build failing when updated to react native 59.8 & gradle to 5.1

让人想犯罪 __ 提交于 2021-02-11 15:31:26
问题 Before updating react-native to 59.8 and gradle to 5.1, I can take build using ./gradlew assembleRelease. When I updated react native to 59.8 and gradle to 5.1, I got following error * What went wrong: Execution failed for task ':react-native-app-settings:verifyReleaseResources'. > java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed \node_modules\react-native-app-settings\android\build\intermediates\res\merged\release

Gradle library including local jar as api dependency doesn't show up in consumer's classpath

元气小坏坏 提交于 2021-02-11 15:23:55
问题 In my gradle java library project, I have a dependency on a local jar file (the artifact is not published anywhere). The dependencies configuration looks like: dependencies { api fileTree(dir: '3rdparty', include: '*.jar') } When I publish my library to maven local, and then pull it in from another project, the symbols from the jar in the 3rdparty folder aren't available on the classpath, even though it's listed as an api dependency. Is this just a limitation of using jar files directly

Gradle Multi Module Project: Apply module dependency to all subprojects except for itself

ぃ、小莉子 提交于 2021-02-11 15:10:24
问题 My application is a Gradle Multi Module Project, consisting of multiple services with one service-common module. I´ve pulled all dependencies that all modules have in common out into the root build.gradle, and I also want to include the service-common module in all subprojects, which in theory works, but I´m getting a circular dependency issue because it is included in itself. apply plugin: 'java' group = 'com.myapplication' ext { set('springCloudVersion', "2.2.0.RELEASE") set(

Is there an inherent problem with using if statements to define the minSdkVersion in the defaultConfig block?

痴心易碎 提交于 2021-02-11 14:50:14
问题 Background Working on a project that has multiple sub projects (modules) that are dependent on some libraries within the same root project. For the purpose of some testing functionality, we need a higher minSdkVersion (21), but this minSdkVersion is not necessary for the normal use of the application as we can get all we need from version 14. Therefore we've tried to include some if logic to separate the build for testing vs production purposes. The snippet in question is here: android {

compileAssets failing on upgrading Grails application

孤者浪人 提交于 2021-02-11 14:46:20
问题 I have a Grails application running version 3.3. I recently upgraded to version 4.0.3. The way I typically upgrade, which I understand is probably not the best way, is to upgrade my environment to the new Grails version, then create a brand new Grails project (I'm using IntelliJ), and then slowly move my files over from the old project to the new project, fixing things as I find they don't work. I have everything moved over and the app works perfectly while running run-app inside IntelliJ.

Android Studio 3.5.2 Offline setup Error: app@debug/compileClasspath

£可爱£侵袭症+ 提交于 2021-02-11 14:43:10
问题 Help please, After I setup and I follow this instructions: Configure offline build dependencies If you'd like to build your project without a network connection, follow the steps below to configure the IDE to use offline versions of the Android Gradle Plugin and Google Maven dependencies. If you haven't already done so, download the offline components from the downloads page. Download and unzip offline components After you have downloaded the offline components, unzip their contents into the

How to get latest sources.jar and javadoc.jar for latest SNAPSHOT aar?

我怕爱的太早我们不能终老 提交于 2021-02-11 12:56:58
问题 I am trying to pull dependency from our local network repo with: configurations.all { resolutionStrategy { cacheChangingModulesFor 0, 'seconds' } } And : implementation("com.abc.core.library:library:0.6.1-SNAPSHOT") { changing = true } But when the library snapshot is updated with same number, aar file is updated but the sources.jar and javadoc.jar is not updated. Any solution? 来源: https://stackoverflow.com/questions/65189106/how-to-get-latest-sources-jar-and-javadoc-jar-for-latest-snapshot

Environment variable not injected into multi stage docker build on Azure Devops pipeline

江枫思渺然 提交于 2021-02-11 12:23:03
问题 I have a docker file that I can build locally without issues, on Azure Devops the variable is not set properly. E.g. locally I can run a multi-stage docker build where artifacts are fetched from an Azure artifact repository with authorization. The authorization token can be set locally without issues. On the build pipeline I haven't been able to inject it properly. The docker file: FROM gradle:5.4.1-jdk8 AS build ARG AZURE_ARTIFACTS_ENV_ACCESS_TOKEN ENV AZURE_ARTIFACTS_ENV_ACCESS_TOKEN $AZURE

Manage Spring Boot Profiles with Gradle

我只是一个虾纸丫 提交于 2021-02-11 12:13:06
问题 I have a Spring boot application which is managed by Gradle. What is done so far: Created application.yaml , application-dev.yaml , and application-qa.yaml files Mentioned spring: profiles: active: dev in application.yaml (default profile should be dev if none is mentioned) What need to be done: Need to build war with profile mentioned or passed while building. Example, for QA build, spring: profiles: active: should have value qa , so that it can pick-up application-qa.yaml properties. If no

Manage Spring Boot Profiles with Gradle

江枫思渺然 提交于 2021-02-11 12:05:36
问题 I have a Spring boot application which is managed by Gradle. What is done so far: Created application.yaml , application-dev.yaml , and application-qa.yaml files Mentioned spring: profiles: active: dev in application.yaml (default profile should be dev if none is mentioned) What need to be done: Need to build war with profile mentioned or passed while building. Example, for QA build, spring: profiles: active: should have value qa , so that it can pick-up application-qa.yaml properties. If no