build.gradle

Error: Could not find or load main class cucumber.api.cli.Main

对着背影说爱祢 提交于 2019-12-23 20:21:35
问题 I try to run this gradle task task runCucumber(type: JavaExec) { main = "cucumber.api.cli.Main" args += ['-f', 'html:build/reports/cucumber/', '-f', 'json:build/reports/cucumber/report.json', '--glue', 'com.waze.testing.cucumber', 'src/main/resources/features' , '--tags', '~@ignore', '--tags', '~@preRelease', '--tags', '@advil'] systemProperties['http.keepAlive'] = 'false' systemProperties['http.maxRedirects'] = '20' ignoreExitValue = true } and get this error: Error: Could not find or load

How to manage common dependencies for multiple Android library projects?

喜夏-厌秋 提交于 2019-12-23 20:03:09
问题 I'm aware of this question: How to add dependencies to project's top-level build.gradle file? But it doesn't give the answer I need. Lets say my android project has 3 library modules A , B and C . And all three uses a common dependency say D1 where D1 is library like Dagger , Room , etc. Now instead of adding D1 to all three, I am thinking about adding D1 to project level build.gradle . I tried doing something like this but it gives error as: Could not find method implementation() for

Is it possible to have different build.gradles for different product flavors?

偶尔善良 提交于 2019-12-23 19:20:01
问题 The project that I am working is built for both Amazon based devices as well as Android. Almost of 95% of the code base is common between these two. So instead of making these two as different projects, I thought of putting these two together using product flavors.(Please let me know if there can be other better solution) But one of the problem I am facing here is with the buildscript and android properties in build.gradle, where I will need different values for Amazon and Android. For

Run gradle task multiple times

泪湿孤枕 提交于 2019-12-23 18:50:27
问题 I have a gradle project containing two modules in subdirectories. The directory structure is as below. root module1 build.gradle module2 build.gradle build.gradle settings.gradle The top level settings.gradle includes the two modules. The top level build.gradle contains the following. task runScript(type: Exec) { workingDir 'scripts' commandLine 'python3', 'myscript.py' } project(':module1') { evaluationDependsOn(':module1') final test = tasks.findByName('test') test.dependsOn(runScript) }

Grails 3 - How to publish to Artifactory

北城以北 提交于 2019-12-23 17:08:37
问题 I have several Grails 3 projects. Most are plugins and one is the main app that depends on the plugins. Can someone who has successfully published a Grails 3 project to an Artifactory repo tell me how you did it? What gradle plugin do you use and what do you need to add to your build.gradle to make it work? Regards, Rob 回答1: I blogged the answer: http://rvanderwerf.blogspot.com/2015/07/how-to-publish-grails-3-plugin.html Basically you need to strip out anything in the POM with no version on

Import swagger-codegen project into existing Android project

亡梦爱人 提交于 2019-12-23 17:05:47
问题 Im trying to integrate a "module"-project generated by swagger-codegen, into my Android project. Haven't worked that much with gradle before and the swagger-codegen creates a quite messy build.gradle from my point of view. I have a hard time finding documentation on how to do this. And I feel a bit lost. I used this method described in the FAQ mvn clean package java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \ -i http://petstore.swagger.io/v2/swagger.json \ -l

How to fix “More than one file was found with OS independent path 'project.properties'” Error in Android Studio 3.0 Beta-6

让人想犯罪 __ 提交于 2019-12-23 16:27:26
问题 I am using Android Gradle:3.0.0-beta-6 and it throws the following Error ever since I included Google Translation API. FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. More than one file was found with OS independent path 'project.properties' This is my dependencies dependencies { annotationProcessor 'com.google.auto.value:auto-value:1.2' implementation fileTree(include: ['*.jar'], dir: 'libs')

How do I exclude a directory, like `node_modules` from Android Studio's Open File window?

安稳与你 提交于 2019-12-23 16:22:18
问题 The Open File window in Android Studio, Command + Shift + O , will search all directories by default, including the node_modules directory. This forces you to have to go through endless common files, like AndroidManifest.xml , before finding the one in your root directory. I noticed that in the my_project.iml file there is an excludeFolder tag but any edits I make to the my_project.iml file get overwritten the next time I rebuild the project. How do I exclude the node_modules directory

Using google map and FCM in one react-native project

情到浓时终转凉″ 提交于 2019-12-23 12:53:13
问题 I want to use google map and FCM in one react native project , first I added FCM in project, everything was okay but when I added google map, I faced an error : I googled a lot, there are so many answers that I have tried but none of them worked for me for example: https://github.com/firebase/FirebaseUI-Android/issues/1230 , some one help me. I will provide some screen shoots of my project , if u need something else, let me know. 回答1: Note: I'm using the latest version of react-native (v0.56

build.gradle dependencies auto updates itself

*爱你&永不变心* 提交于 2019-12-23 12:28:10
问题 compile 'com.google.android.gms:play-services:8.3.0' compile 'com.android.support:support-v4:22.2.1' compile 'com.android.support:design:22.2.1' to compile 'com.google.android.gms:play-services:8.4.0' compile 'com.android.support:support-v4:23.1.0' compile 'com.android.support:design:23.1.0' Time to time, android studio will automatically change the values to the latest version which is extremely annoying and breaks my application. Is there a way to prevent this from happening? Did a google