Quantcast
Channel: Gradle Forums - Latest posts
Browsing all 19854 articles
Browse latest View live

Filtering artifacts by capabilities/attributes

Thank you for this! for a moment I thought of adding custom headers into the manifest but I wasn’t sure it was a good practice, although I didn’t think of adding my own properties file, I like that...

View Article


Gradle DSL method not found: 'testImplementation()'

Hi. I am trying to add unit tests to my project and have, as described here https://developer.android.com/training/testing/unit-testing/local-unit-tests added the line testImplementation...

View Article


processResources in 6.5.1

I am building a very basic java project on 6.5.1 but I cannot see the processResources Task. Has it been removed? I should have checked and been clearer. The processResources task is triggered when I...

View Article

Best-practice Gradle setup for Maven&Gradle plugin?

Hi all, I want to code a plugin that takes some Java-style pseudocode and generates Java sources from it. I need help setting up a Gradle project that follows best practices, because this goes beyond...

View Article

How to share tests between multiple projects?

Greetings, We’re struggling to setup a project where two subprojects must share a set of classes, and related test classes. Detailed problem: The root project R contains 3 java subprojects A, B, C....

View Article


How to share tests between multiple projects?

Ideally you’d only have utility classes and abstract base test classes in project T. Then you’d have the actual concrete test cases in both A and B. Can you tell us a bit more about how the same test...

View Article

How to share tests between multiple projects?

Another option is to copy the tests from project T into projects A & B under a “$buildDir/generated” folder prior to test compile. You could then run the tests in your IDE via the “generated”...

View Article

Process 'command '/path/to/jdk-11.0.6+10/bin/java'' finished with non-zero...

I am learning to understanding the project jvm-libp2p (https://github.com/libp2p/jvm-libp2p) under the hood, which makes uses of gradle 5.5.1 incorporating kotlin code. However I am not familiar with...

View Article


Image may be NSFW.
Clik here to view.

processResources in 6.5.1

svrahul: However, this is not visible in either the gradle tasks output command or in the gradle tasks list window in eclipse. Running gradle tasks is not intended to output all tasks by default....

View Article


Where this task method comes from?

Hi, I am a new to gradle. I have a question, the following code: task(‘copy’, type: Copy) { from(file(‘srcDir’)) into(buildDir) } Where this task method comes from? I can’t find it in the Project or...

View Article

Image may be NSFW.
Clik here to view.

Add new "types" to Build Init plugin?

See github.com/gradle/gradle Support 3rd party templates in build init plugin opened 01:19PM - 28 Mar 17 UTC pioterj Provide ability in Build Init Plugin to support 3rd party templates in addition to...

View Article

Where this task method comes from?

It’s the Task task(Map<String, ?> args, String name, Closure configureClosure) method on Project that’s referenced here. In the Groovy language (not specific to Gradle), named arguments are...

View Article

Image may be NSFW.
Clik here to view.

How to add project reactor dependency in gradle.kts

abbas_gradle: implementation 'io.projectreactor.kotlin:reactor-kotlin-extensions:1.0.1.RELEASE' This is Groovy. abbas_gradle: implementation("io.projectreactor.kotlin:reactor-kotlin-extensions") This...

View Article


Using task output directory as Java srcDir

Does the lack of responses mean that the solution is too obvious, or that there is no good solution, and the deprecation has perhaps come somewhat prematurely without a proper replacement?

View Article

Where this task method comes from?

Thanks @jjustinic, I understand now.

View Article


Running tests in parallel from one Class

Using Java 11, Gradle 6.5.1 In the build.gradle there is an option: maxParallelForks = 8 I have two classes, first has 2 tests and second has 30 tests. When I run tests using Gradle it runs only in 2...

View Article

Kotlin could not find the required JDK tools in the Java installation...

Gradle finds wrong JAVA_HOME even though it’s correctly set! Kotlin could not find the required JDK tools in the Java installation ‘/usr/lib/jvm/java-8-openjdk- amd64/jre’ used by Gradle. Make sure...

View Article


How to add project reactor dependency in gradle.kts

@jjustinic Thanks a lot, it worked, Having said that, please if you could advise why then the format works for other such statements e.g: plugins { … id(“io.spring.dependency-management”) version...

View Article

How to add project reactor dependency in gradle.kts

@jjustinic or this one below: kotlin(“plugin.spring”) version “1.3.72” (that works)

View Article

Gradle concurrency issues with project.version

I have a task (lets call it firstTask) which sets project.version and another task (fourthTask) which reads project.version. These tasks have a transitive mustRunAfter dependency:...

View Article
Browsing all 19854 articles
Browse latest View live