Programmatically add resource folder to test compile/runtime classpath
I haven’t been able to get this to work by dynamically updating the source set. However, I was able to get it to work by adding the resource path to the testCompile dependency. Thanks, @tiedev for...
View ArticleSymbol from transitive dependency is not found
Hi experts, I have a library “A”, which depends on another library “B”. “A” is stored in local maven and “B” is on jcenter. The dependency is like: My App --> A --> B. In my app, I want to...
View ArticleWin 10, Git Bash, gradlew, multiple debug-jvm, specify different ports
keltik85: Ok, how would i set the latter within a simple command line without additional build.gradle foo? Gradle attempts to make builds as reproducible as possible. As such, the behavior of JavaExec...
View ArticleHow to fail on republish existing artifacts
Is there a option to let the maven-publish plugin fail if the artifact already exists in the target repository? Ivy has the ‘overwrite’ option...
View ArticleSymbol from transitive dependency is not found
The problem is solved! I just noticed that the POM file of Library A is not correct. In its POM, Library B is defined as a dependency with type “pom”. It should be “jar”.
View ArticleRun test case from test jar
We have multi module project for selenium test cases. We don’t want to share this project so for that have created .jar for each module with testJar task. Now how I can run test cases from these jars?...
View ArticleGradle Enterprise Maven Extension 1.4.1 has been released
The Gradle Enterprise Maven Extension v1.4.1 has been released. See release notes for the changelog. Compatible with scans.gradle.com and Gradle Enterprise 2020.1 or later.
View ArticleCustomizing a Gradle plugin
I am using a Gradle plugin that generates Java code. That plugin allows some customization by implementing its interface and adding it to the classpath of the plugin. What are the options for...
View ArticleafterEvaluate is not triggered in unit tests
I am having a rather strange issue. I have a standalone gradle plugin which is essentially a wrapper around maven publication and I want to unit test that publication is created. The publication is...
View ArticleDynamic DependencySubstitution
Hi, I have an issue configuring the dependency substitution for my project. I am trying to use a map containing my group:artifact identifiers as keys and the gradle project paths as values: def...
View ArticleSelecting a single test with Cucumber JUnit5 engine fails
Same problem. Is there any way to solve it? Gradle 6.3. Also also 5.2.1 version tried image1272×421 26.1 KB Testing started at 0:28 … Task :cleanTest Task :compileJava UP-TO-DATE Task...
View ArticleSelecting a single test with Cucumber JUnit5 engine fails
BUT if move test from package “Tests” to green “java” folder it works correctly image1196×876 45 KB
View ArticleUnexpected "Duplicate path" warning in :processFuncTestResources task
Should I report a bug on it?
View ArticleNeed more details on using platforms to align dependency versions in a...
Still nothing even after a month…?
View ArticleWekadeeplearning4j package
Hi I am new to Gradle I am attempting to follow some brief instructions on how to use the above package on my machine My platform is Windows 10 The instructions I have are as follows:- git clone...
View ArticleBuild only subprojects in a dynamic multi-module project
Hello guys, Sorry for the vague question, but I have a bad feeling that I’m doing something wrong. There is a root project that contains a huge number of subprojects. Each subproject is a trivial Java...
View ArticleApp with Jaybird .aar do not Build
What went wrong: Execution failed for task ‘:app:mergeLibDexDebug’. Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’. Failed to transform artifact ‘Jaybird_2_2_12.aar...
View ArticleUse different java for the submodules
i have one main module which has two sub modules. The problem is that one of them is using java 1.8 and the other one is using java 1.7. How can i do it ? How can i add Gradle JVM to be per sub module...
View ArticleCopy files from dependency jar with kotlin build skript
I’m trying to unzip/copy some files from a single dependency.jar. This reply shows how to configure a corresponding task in groovy, which has worked for me in the past. Now trying to achieve the same...
View ArticleCopy files from dependency jar with kotlin build skript
Re-Reading the quoted answer in groovy I just realized my mistake. The configuration has to be declared as not beeing transitive. val myExtraDependencyby configurations.creating { setTransitive(false)...
View Article