My project is using Gradle with Kotlin DSL for building. I now want to add a custom sourceset used for testing. The relevant code looks as follows: By using that, I get another module in Intellij, which is treated as source module. I also tried the following to mark it as test module: However, if I then do a ./gradlew
Tag: gradle
Gradle 5 and IntelliJ 2018.3. Unrecognized option: –add-opens or java.base.java.lang=ALL-UNNAMED
I have a complex set of projects built by Gradle 4.10.3. I can build them from the command line, but I can also import them to IntelliJ 2018.3 Ultimate without major issues. When I upgrade my Gradle to 5.1.1, the projects are still building fine from the console, however I can no longer import (or refresh) the project in IntelliJ
@Generated annotation using gradlew + dagger
I’m confronting a weird issue using gradlew(4.10.2) + dagger(2.18). The problem is when I call: The build fails with: Task :Common:compileDebugJavaWithJavac FAILED /CommonModule_ProvidesGsonFactory.java:6: error: package javax.annotation.processing does not exist import javax.annotation.processing.Generated; /CommonModule_ProvidesGsonFactory.java:8: error: cannot find symbol @Generated( But if I run the task from Android Studio, the task succeed and the @Generated is not present in the dagger generated class.
Gradle – throw exception if project still has SNAPSHOT dependencies
I want to fail the gradle build if the current project still has snapshot dependencies. My code so far only looks for java dependencies, missing the .NET ones so it only works for java projects. I want to make it work for all projects. I need some help in generifying this snippet to be applicable to all types of dependencies(not
java 10 gradle project : automatic module not found
I created a java 10 project with intelliJ, using gradle. I copied some stuff into it (some “AppFx” class using the library guava and javaFx, and a personal build.gradle file). I also added a module-info.java file in src/main/java with this content: in which grava is an automatic module. here is the relevant part of build.gradle: intelliJ can compile the project
Android Studio 3.1.3 – Unresolved reference: R – Kotlin
I am new to kotlin, i have converted some code from java but it seems like there’s something wrong, The R in findViewById(R.id.my_id) is highlighted in red and it shows this message : “Unresolved reference: R”.. I’ve been looking for a solution but i seem not to figure it out, So what should i do? Here’s a screenshot : Answer
How do you invoke schemagen in Java 11?
According to Oracle documentation the schemagen tool is removed from the JDK as part of JEP 320 (http://openjdk.java.net/jeps/320). That JEP points to Maven artifacts that now supply the missing tools. The coordinates of the artifacts are wrong in the JEP, updated coordinates are found in an answer to this question: Which artifacts should I use for JAXB RI in my
Issue with CACERTS IntelliJ + Gradle
I currently am running some REST calls behind a proxy, so I need to follow some strict processes in order for the calls to go through. Previously I was building in Eclipse for a POC, but now that I know it works, I am trying to transfer it over to IntelliJ (Personal favorite IDEA) along with Gradle for the build
How do I create a jar with all dependencies using Gradle 4.4?
This question is related to this one — however, due to the deprecation of compile in favor of implementation, it doesn’t work. It does pick up dependencies that are declared with compile. However, with it being deprecated, using it isn’t an option (and we’d be right back here when it’s removed anyway) I got this Gradle task: And there’s just
Spring Boot Application Could not initialize class org.apache.logging.log4j.util.PropertiesUtil
I am trying to implement the hello world web application using spring boot, gradle and tomcat by following “Building a RESTful Web Service” but have been unable to run make it run so far. The code is pretty much the same as the one provided on the website, I have wasted hours debugging it thinking there was a bug in