gradle

No cached version of gradle available for offline mode

给你一囗甜甜゛ 提交于 2021-01-28 10:12:23
问题 I have no Internet connection at all in my development environment, even temporary Internet is not an option. I have received Android project, but I cannot compile it at all. I get the following message: "No cached version of com.android.tools.build:gradle:2.1.2 available for offline mode" Can I provide the dependencies/caches/etc manually? 回答1: MY SOLUTION Simply Go in : File > Settings > Build, Execution, Deployment > Gradle > Unchecked Offline Mode Now Run your app in device if it's 1st

Gradle Composite Build, transitive dependency is not resolved

半世苍凉 提交于 2021-01-28 09:57:21
问题 First off, I'm sorry I have to showcase the problem in pseudocode, because the original library code is closed source and the overall build process is a little more complicated. The Problem is as follows: We have a project A, which uses an inhouse library B. This Library uses several opensource libraries, we call them C and D for now. For debugging purposes I want to create a gradle composite build of project A, which includes library B using, includeBuild . Project A: settings.gradle

Gradle Composite Build, transitive dependency is not resolved

大兔子大兔子 提交于 2021-01-28 09:56:23
问题 First off, I'm sorry I have to showcase the problem in pseudocode, because the original library code is closed source and the overall build process is a little more complicated. The Problem is as follows: We have a project A, which uses an inhouse library B. This Library uses several opensource libraries, we call them C and D for now. For debugging purposes I want to create a gradle composite build of project A, which includes library B using, includeBuild . Project A: settings.gradle

Could not find com.android.tools.build:gradle:3.2.1. in a sample project from github

 ̄綄美尐妖づ 提交于 2021-01-28 09:06:50
问题 I am trying to compile this project: https://github.com/dakatso/SpeexExample The project as is gives errors during gradle sync (it says something called mipsel-linux-android was not found). I have made changes to the following files: gradle-wrapper.properties : #Tue Jul 07 16:26:18 KST 2020 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-3.2.1-all.zip

Gradle not generate jar

我们两清 提交于 2021-01-28 08:54:08
问题 I have a problem with gradle. My project It consists of several modules (osgi). When I run command: ./gradlew clean assemble Gradle generate the jar file for each module, but I want use the command: ./gradlew clean compileJava to speed up the work, but with this command gradle don't generate the jar file for two module. what could be the reason? 回答1: You can see in the diagram in figure 1 from this documentation the dependencies between Java plugin tasks: see that assemble tasks dependes on

Application of settings.gradle to Gradle build with non-standard build name

情到浓时终转凉″ 提交于 2021-01-28 07:32:19
问题 I have an application that is built with a build script named linuxApp.gradle. We have specified in settings.gradle rootProject.name = "JobThreader" As long as the root project folder is also named "JobThreader", when we execute the installApp task from the application plugin, the application is built to JobThreader/build/install/JobThreader However, if the root project folder is any other name, like "workspace" in the case of Jenkins, then the application is built to workspace/build/install

How can I ask gradle for the value of a property from the command line?

故事扮演 提交于 2021-01-28 07:24:07
问题 For example, if I wanted a shell script to be able to get the value of rootProject.name , how could I do this? Ideally, I'd like to invoke ./gradlew with some set of arguments and have it print the property value (and nothing else) to stdout. 回答1: For clarity, here is my Gradle wrapper version: $ ./gradlew --version ------------------------------------------------------------ Gradle 5.4.1 ------------------------------------------------------------ Build time: 2019-04-26 08:14:42 UTC Revision

Application of settings.gradle to Gradle build with non-standard build name

不羁岁月 提交于 2021-01-28 07:21:01
问题 I have an application that is built with a build script named linuxApp.gradle. We have specified in settings.gradle rootProject.name = "JobThreader" As long as the root project folder is also named "JobThreader", when we execute the installApp task from the application plugin, the application is built to JobThreader/build/install/JobThreader However, if the root project folder is any other name, like "workspace" in the case of Jenkins, then the application is built to workspace/build/install

gradle copy multiline file filter

夙愿已清 提交于 2021-01-28 06:50:36
问题 I'm copying a file using the gradle copy task and I want to apply a filter that matches multiple lines using a regex. It seems like the filter task only matches line by line. Is there a way to analyze the entire file at once? 回答1: There is no multi-line filter. You may have to process the files before or after the copy (with Groovy). 来源: https://stackoverflow.com/questions/17953712/gradle-copy-multiline-file-filter

Beam: Failed to serialize and deserialize property 'awsCredentialsProvider

二次信任 提交于 2021-01-28 06:37:11
问题 I have been using a Beam pipeline examples as a guide in an attempt to load files from S3 for my pipeline. Like in the examples I have defined my own PipelineOptions that also extends S3Options and I am attempting to use the DefaultAWSCredentialsProviderChain. The code to configure this is: MyPipelineOptions options = PipelineOptionsFactory.fromArgs(args).as(MyPipelineOptions.class); options.setAwsCredentialsProvider(new DefaultAWSCredentialsProviderChain()); options.setAwsRegion("us-east-1")