I have a grails application written in Groovy. It is built and works when it’s launched with : Now I want to run it with java to put it in a Docker container. This is the Dockerfile I prepared : The server fails to start because of the following error: When I checked the classes folder in WEB-INF, I found
Tag: build.gradle
change ant.zip() output directory
I want to store output of ant.zip() inside build directory. I’m doing it the following way for now. Is there way to directly do it in ant.zip()? Answer Like this:
Gradle: Exclude file from resourses and add it from different folder
I am trying to build a jar file with Gradle. I have some resource files (like log4j2 and persistent.xml) into the src/main/resources that I want to exclude when I was built the jar, on contrary I have the same files (with different content in a project directory) and I want to copy these files rather than the src/main/resource files. Into
What is the purpose of apply maven plugin in build.gradle?
I keep seeing apply plugin: ‘maven’ in build.gradle files for Java projects. What is the purpose of adding a Maven plugin? I can’t seem to find the plugin when querying for it on plugins.gradle.org. Answer Why don’t you just google it? http://sorcersoft.org/project/site/gradle/userguide/maven_plugin.html “The Maven plugin adds support for deploying artifacts to Maven repositories.”
Gradle – Could not find load main class
I need to tune the JVM memory by help of Gradle. I’ve writen settings in the gradle.properties file: org.gradle.jvmargs=-XX:MaxMetaspaceSize=60M but it didn’t work. Then I’ve done it manually in an IDEA (Run>Edit Configurations…) and wrote the settings for the needed class (in VM options: field) and it works. Can we do the same by help of Gradle? I’ve tried to
Gradle Build Error in Multi-module project: java.lang.NoClassDefFoundError: at groovyjarjarasm.asm.signature.SignatureReader.parseType
I’m getting Execution failed for task ‘:app-specification:compileTestGroovy’ along with org.gradle.api.tasks.TaskExecutionException: when trying to build gradle. This is a multi-module gradle project with the first module being the main app(SpringBoot app) with some Spock tests and the other module which consists of Cucumber specifications(feature files and step definitions). The gradle build occurs at specifications, which uses the main spring boot application
No such property: count for class: com.github.jengelman.gradle.plugins.shadow.transformers.ServiceFileTransformer
Creating a new application with the latest version of Micronaut using Intellj throws an exception during the build process. gradle-wrapper.properties build.gradle Answer You need to upgrade to Shadow 7.0.0. build.gradle: This issue has been fixed with PR #655. The root cause is a change to Groovy itself (Jira: GROOVY-9292, GitHub: PR #1050), details in the linked PR.
unable to write the logs to log file using log4j through Gradle
I am working on Cucumber TestNg Gradle automation project. As I am new to Gradle and not able to figure the issue though I have put in appropriate log4j dependencies in build.gradle file. Can somebody look into this issue and provide the solutions or advise me on what went wrong due to which logs are not written to log file
how do I import java class in build.gradle file
I want to import static data in build.gradle file from below class: public class MyClass{ public static final String PROPERTY_A = “myStringA”; public static final String …
gradle javaexec error “’apiElements’ directly is not allowed”- Gradle 5.4.1
I am new to Gradle and trying to migrate an existing system build from ant to Gradle. As part of this I need to run a java program on every file in a directory. Directory contains xml files and the …