gradle

How can I force update all the snapshot Gradle dependencies in intellij

痴心易碎 提交于 2020-06-09 09:18:50
问题 I have a project with some SNAPSHOT dependencies that uses gradle as its build tool in intellij. The problem is that intellij is using SNAPSHOTS that are now outdated. When I build the project on the command line gradle build or gradle clean build --refresh-dependencies On command line the latest dependencies are fetched. I also setup my grade file to always download snapshot dependencies according to this answer. How can I force intellij to download all dependencies? 回答1: I have run into

Is there a way to list all gradle dependencies programmatically?

旧时模样 提交于 2020-06-09 07:56:32
问题 I know that doing: gradle dependencies Lists the full dependency tree. Now, I'm looking for a way to manipulate that dependencies tree programmatically so that I can print the same hierarchy but in JSON instead of the format the gradle cli uses right now in the console. Which are the groovy classes I should use to achieve that? EDITED I would like to obtain (in JSON) some like this: "dependencies" : [ { "groupId" : "com.something", "artifactId" : "somethingArtifact", "version" : "1.0",

Ionic Capacitor app give me lots of errors

天涯浪子 提交于 2020-06-08 18:29:24
问题 I'm on Windows 10 and I've created a Ionic 5.0.7 app with Capacitor 2.0.0. I use this command to build app: ionic build After, I use this command: npx cap sync And, to finish, I use this command to open Android Studio: npx cap open android The first problem come during building on Android Studio: org.gradle.api.reflect.ObjectInstantiationException: Could not create an instance of type com.novoda.release.internal.compat.gradle5_3.AndroidSoftwareComponentCompat_Gradle_5_3. Caused by: org.gradle

Ionic Capacitor app give me lots of errors

本小妞迷上赌 提交于 2020-06-08 18:27:12
问题 I'm on Windows 10 and I've created a Ionic 5.0.7 app with Capacitor 2.0.0. I use this command to build app: ionic build After, I use this command: npx cap sync And, to finish, I use this command to open Android Studio: npx cap open android The first problem come during building on Android Studio: org.gradle.api.reflect.ObjectInstantiationException: Could not create an instance of type com.novoda.release.internal.compat.gradle5_3.AndroidSoftwareComponentCompat_Gradle_5_3. Caused by: org.gradle

Jooq unable to find database when triggered via a gradle image on Dockerfile

╄→尐↘猪︶ㄣ 提交于 2020-06-02 05:49:19
问题 I have a Dockerfile that uses gradle to build my Spring boot application just before coping it into the container and trigger it. This is how it looks: FROM gradle:5.4.1-jdk8-alpine AS build COPY --chown=gradle:gradle . /home/gradle/src WORKDIR /home/gradle/src RUN gradle build --no-daemon FROM openjdk:8-jdk-alpine EXPOSE 8080 RUN mkdir /app COPY --from=build /home/gradle/src/build/libs/*.jar yurlapp.jar ENTRYPOINT ["java","-jar" , "/yurlapp.jar"] It's quite simple, it will execute Gradle and

Jooq unable to find database when triggered via a gradle image on Dockerfile

試著忘記壹切 提交于 2020-06-02 05:46:53
问题 I have a Dockerfile that uses gradle to build my Spring boot application just before coping it into the container and trigger it. This is how it looks: FROM gradle:5.4.1-jdk8-alpine AS build COPY --chown=gradle:gradle . /home/gradle/src WORKDIR /home/gradle/src RUN gradle build --no-daemon FROM openjdk:8-jdk-alpine EXPOSE 8080 RUN mkdir /app COPY --from=build /home/gradle/src/build/libs/*.jar yurlapp.jar ENTRYPOINT ["java","-jar" , "/yurlapp.jar"] It's quite simple, it will execute Gradle and

React native android can not find com.android.tools.build:gradle:3.6.3

Deadly 提交于 2020-06-01 04:49:20
问题 Any people met the issue Could not resolve all artifacts for configuration ':react-native-fast-image:classpath' and can not find com.android.tools.build:gradle:3.6.3 ? I try open the project structure and see the gradle plugin tool is 3.6.3 and the gradle version is 5.4.6 but i dont know what happen now The build.gradle file : // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { /*ext { buildToolsVersion = "28.0.2" minSdkVersion =

R.txt': The data is invalid. (13)

二次信任 提交于 2020-05-30 11:35:51
问题 I am able to gradle build successfully but while running the app getting below Error. error: failed writing to 'D:\ ...\Projects\DineNow\GitCode\DineNow\app\build\intermediates\symbols\debug\R.txt': The data i and failed the app:processDebugResources while run-app into device. Here are the details logs org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:processDebugResources'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions

R.txt': The data is invalid. (13)

我只是一个虾纸丫 提交于 2020-05-30 11:31:06
问题 I am able to gradle build successfully but while running the app getting below Error. error: failed writing to 'D:\ ...\Projects\DineNow\GitCode\DineNow\app\build\intermediates\symbols\debug\R.txt': The data i and failed the app:processDebugResources while run-app into device. Here are the details logs org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:processDebugResources'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions

IntelliJ run configurations in build.gradle file

▼魔方 西西 提交于 2020-05-30 08:26:27
问题 I have a Gradle project which I can currently import into IntelliJ via the build.gradle file. IntelliJ will setup the correct source locations and pull in the dependencies for me. What I would like to do is list the IntelliJ "run configurations" in the build.gradle file so it will automatically set these up for me (correct class/arguments). Is this possible? 回答1: There is an experimental plugin for Gradle developed by an employee of JetBrains. https://github.com/JetBrains/gradle-idea-ext