Force rerun a task by another task
As I said, I’m not fluent in kotlin. TBH I find the source quite ugly but that’s just me. I’m assuming you’ll need two compile tasks in the service project. One for src/main/kotlin and another for the...
View ArticleForce rerun a task by another task
Another thing to consider: You could split your generate task into two tasks. The first task (in each subproject) uses the complied classes to generate an xml/json file with all the annotation info....
View ArticleHow to make plugin dependent on gradle task
Thank you, it was helpful to resolve my issue.
View ArticleGradle download sources failed
I’m using Gradle build tool and I can’t get the source code and docs for spark-core. I’ve already searched and applied: idea { project { jdkName = '1.8' languageLevel = '1.8' } module {...
View ArticleJaCoCo Gradle Kotlin DSL exclude file from violation rules
I am trying to set my project up to run JaCoCo and to fail the build if it has less that 80% test coverage. The caveat is that I want to exclude a particular file and I can’t seem to make that work. I...
View ArticleCopy dependencies to an offline machine failed.
I followed the steps in the document (https://docs.gradle.org/current/userguide/dependency_resolution.html#sub:cache_copy), but I failed to build with --offline....
View ArticleException in thread "main" java.util.NoSuchElementException
The NoSuchElementException in Java is thrown when one tries to access an iterable beyond its maximum limit. This means that, this exception is thrown by various accessor methods to indicate that the...
View ArticleBuild Scan activation email not sent
Activating the scan on a different browser didn’t work for me. Adding the enterprise plugin to the build script did. Don’t really understand why...
View ArticleGradlew build single module doesn't work
Hello. I have a problem with build single module from Gradle multimodule project. I have a structure: -root-project: -first-module -second-module -modules: -first-submodule -second-submodule -...
View ArticleForce rerun a task by another task
I created my plugin to use PSI api from JetBrains to parse all kotlin files and gather the annotations info then generate all the classes. That hit the wall due to the complexity of reading...
View ArticleGradle download sources failed
The problem belongs to Scala plugin. If you face this issue, it doesn’t matter on build tool you are using Maven or Gradle probably installation of the Scala plugin solves your problem. My Intellij...
View ArticleFAILURE: Build failed with an exception PROBLEM
Hi! Can you help me? I can’t solve this problem FAILURE: Build failed with an exception. Where: Initialization script ‘C:\Users\Erdem\AppData\Local\Temp\Main_main__.gradle’ line: 21 What went wrong: A...
View ArticleFAILURE: Build failed with an exception PROBLEM!
Hi! Can you help me? I can’t solve this problem FAILURE: Build failed with an exception. Where: Initialization script ‘C:\Users\Erdem\AppData\Local\Temp\Main_main__.gradle’ line: 21 What went wrong: A...
View ArticleForce rerun a task by another task
If there is a way to delay the service from compiling it sources just until all dependant modules have finalised their annotation processing task ( kaptDebugCompile ) You’re trying your old chicken or...
View ArticleForce rerun a task by another task
Also adding a SourceSet to android is not that trivial So just add a KotlinCompile task to the project then
View ArticleError when building a minecraft mod project
A problem occurred evaluating root project ‘TestMod’. <---- Name of my mod Failed to apply plugin [id ‘net.minecraftforge.gradle’] Failed to validate certificate for...
View ArticleForce rerun a task by another task
@Lance Well that would be great to do but I can’t find a documented resource on how to do that. Are you aware of any?
View Article"Problem forking build scan upload... java.lang.UnsupportedOperationException"
Argh, sorry @luke_daley. Yes, this was an issue report and I meant to include more context. Also, just updated my profile to use my current email address so I should see responses in a more timely...
View ArticleGradle appears to ignore JUnit @FixMethodOrder annotation
Hi Gradlers, I’m working on converting a large project from Maven to Gradle. Part of it is an integration test suite where the tests must run in a certain order because they’re manipulating a real...
View ArticleForce rerun a task by another task
@Lance do you think if I just jar provide these generated sources using a task and make compileDebugKotlin depend on that will solve the problem? classes -> jar -> archive Like this thread...
View Article