gradle

Execution failed for task ':bootRun'. How do I resolve this issue for my grails app

白昼怎懂夜的黑 提交于 2020-06-28 05:34:30
问题 This is my first grails app. Here is my stacktrace: grails> run-app --stacktrace | Running application... <-------------> 0% CONFIGURING [0s] FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':bootRun'. > A problem occurred starting process 'command 'C:\Program Files\Java\jdk1.8.0_201\bin\java.exe'' * Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Exception is: org.gradle.api.tasks

Gradle : Unable to generate QueryDSL classes

主宰稳场 提交于 2020-06-28 03:55:36
问题 Gradle version: 5.1 Java version: 11 I have the following task defined in gradle file to generate QueryDSL classes: task generateQClasses (type: JavaCompile) { source = sourceSets.main.java.srcDirs classpath = sourceSets.main.compileClasspath destinationDir = file('src/main/java') options.annotationProcessorPath = configurations.annotationProcessor options.compilerArgs = ['-proc:only', '-processor', 'com.querydsl.apt.jpa.JPAAnnotationProcessor', '-Aquerydsl.packageSuffix=.querydsl'] } Below

PayCards Android Dependencies Errors | Could not resolve all task dependencies for configuration

血红的双手。 提交于 2020-06-28 03:41:51
问题 I recently migrated to Android Studio 4.0 and made the decision to update all dependencies, including Gradle. When I tried to compile the app, this error [the image below] is shown. This type of error usually happens when libraries are updated, so I decided to go back to a previous commit where I didn't make any modifications but I was surprised that the error was still there. I proceeded to check some similar errors on the network and made several changes with my gradle and dependencies ..

Gradle sync failed on android studio 4.0 [duplicate]

瘦欲@ 提交于 2020-06-27 16:38:21
问题 This question already has answers here : Ionic Capacitor app give me lots of errors (5 answers) Closed 25 days ago . After upgrading my android project to classpath 'com.android.tools.build:gradle:4.0.0' and distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip I found this error Gradle sync failed: Cause: org/gradle/api/internal/java/usagecontext/LazyConfigurationUsageContext my project details is: compileSdkVersion 29 ndkVersion "21.1.6352462" minSdkVersion 21

Gradle sync failed on android studio 4.0 [duplicate]

浪尽此生 提交于 2020-06-27 16:38:05
问题 This question already has answers here : Ionic Capacitor app give me lots of errors (5 answers) Closed 25 days ago . After upgrading my android project to classpath 'com.android.tools.build:gradle:4.0.0' and distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip I found this error Gradle sync failed: Cause: org/gradle/api/internal/java/usagecontext/LazyConfigurationUsageContext my project details is: compileSdkVersion 29 ndkVersion "21.1.6352462" minSdkVersion 21

Gradle Sync Failed in Android Studio 3.6 Cause invalid type code :85

∥☆過路亽.° 提交于 2020-06-27 14:30:22
问题 I just update my Android Studio from version 3.5.3 to 3.6, now I open any project I see this error and gradle doesn't sync 回答1: I was having the same issue. I solved it by changing the JDK version I was using which was JDK 13. Go to File -> Project Structure . On the left side, click on SDK Location and go to JDK Location . Change it to the Embedded JDK that comes with Android Studio. Click on OK . 来源: https://stackoverflow.com/questions/60435743/gradle-sync-failed-in-android-studio-3-6-cause

Building Kotlin projects with Gradle sometimes fails with NoClassDefFoundError

*爱你&永不变心* 提交于 2020-06-27 12:24:29
问题 I can't reliably reproduce this problem because it is sporadic. This is what I get when I build a Kotlin project with Gradle : Could not perform incremental compilation: Could not connect to Kotlin compile daemon Could not connect to kotlin daemon. Using fallback strategy. :myproj:compileKotlin FAILED 1 actionable task: 1 executed e: java.lang.NoClassDefFoundError: Could not initialize class kotlin.Unit warning: the '-d' option with a directory destination is ignored because '-Xbuild-file' is

How do I Import a .proto file from a dependency jar using gradle

好久不见. 提交于 2020-06-27 11:58:08
问题 I have a project that creates a set of protobuf objects and GRPC stubs. I have a dependency on a jar with other .proto files in it, that I would like to use in my project. ie: project-abc-0.0.1.jar contains a file: /some-types.proto It contains these pieces: package foo_companyname; message StatusItem { string status = 1; string statusDescription = 2; } my project has a build.gradle file where I am trying to import it like so: buildscript { dependencies { classpath 'com.google.protobuf

Pass liquibase parameters to gradle liquibase 'update' task

我与影子孤独终老i 提交于 2020-06-27 10:33:50
问题 I want to pass username, password and url liquibase parameters as a command line parameters to gradle's liquibase update task. I have followed liquibase-gradle-plugin to configure the plugin. What I actually want to achieve is, pass these database parameters at runtime instead of hardcoding them in liquibase.properties file. I can do this by exporting these three values as environment variables and access them in build.gradle. But I want to achieve this using commandline parameters. I tried

How is a token replaced in a file for a Gradle build product?

感情迁移 提交于 2020-06-26 06:55:12
问题 I have a normal buildscript for Gradle set up, and one thing I want to do is have the version of my build specified. This is the code I've set up to replace the version token in my main Java source file: import org.apache.tools.ant.filters.ReplaceTokens processResources { from (sourceSets.main.java) { include 'T145/myproj/Main.java' filter(ReplaceTokens, tokens: ['@VERSION@' : project.version]) } } However it doesn't work. I tried using the replace function, but that didn't prove to be a