Getting relative path of a subfolder under root folder
Hi, I want to get the relative path or absolute path of a folder/subproject under root project using gradle. Can anyone help me in this?
View ArticleGetting relative path of a subfolder under root folder
You probably want Project.file(Object). Eg File file1 = file('path/to/file1') File file2 = rootProject.file('path/to/file2') println "$file1.absolutePath $file2.absolutePath"
View ArticleHow can i use value of variable in gradle from file.java
What do you mean? Do you have a Java properties file? a Java source file from which you want to read a value? Some compiled class file / jar?
View ArticleRun gradle junits from eclipse
I’m trying to run junits from eclipse. But i cannot see Run as Junit option at all. Any pointers to help?
View ArticleDistrusted HTTPS Certificate after relocation from plugins.gradle.org to...
Hi @twwwt, The JFrog support team has been unable to reproduce this issue. Are you still experiencing the same problem still? They report that their certificates are no longer issued by Semantic &...
View ArticleDistrusted HTTPS Certificate after relocation from plugins.gradle.org to...
I was also experiencing similar behaviour last week - and continue to do so: > Could not resolve all artifacts for configuration ':classpath'. > Could not download ant.jar...
View ArticleDistrusted HTTPS Certificate after relocation from plugins.gradle.org to...
JLLeitschuh: If you are still having the same issue, can you run curl -v https://d29vzk4ow07wi7.cloudfront.net and report the output here? After trying your suggestion, I have less of a clue of what...
View ArticleDistrusted HTTPS Certificate after relocation from plugins.gradle.org to...
Just in case it helps, here is a debug output excerpt of the failing build (cannot post entire output due to message size limit here): 2019-12-25T11:23:18.899+0100 [DEBUG]...
View ArticleBuilding an uberjar with bouncycastle
Hi Thomas, Could you share with me how you used the spring-boot-loader with Bouncy Castle provider. For me, I still run into the issue described in this post. Thanks!
View ArticleHow to override the version comparison mechanism?
I don’t think your solution works since execution of the all {} block is deferred. This seems to work though: def allThings = [:] configurations.foolib.resolutionStrategy { componentSelection { all {...
View ArticleGradle test hang there, without giving an error
Here is the Github repo: https://github.com/IdiotLeon/lcidiot Here are the logs, running gradle :test -i gradle :test -i Initialized native services in: C:\Users\yanglu\.gradle\native The client will...
View ArticleGradle test hang there, without giving an error
This turned out to be an error in my solution leading to infinite loops.
View ArticleNativescript-Vue: Gradle could not extract native JNI library
Hellow everyone, I am trying to learn Nativescript-Vue and I followed all the instructions on how to get started. After a little while, I was able to create my first project but I coudn’t run it into...
View ArticleDistrusted HTTPS Certificate after relocation from plugins.gradle.org to...
Here is the suggestion from JFrog Support: The user mentioned that downloading with curl works for him and does not result certs issue, therefore we suspect that the issue is with the user JAVA...
View ArticleDistrusted HTTPS Certificate after relocation from plugins.gradle.org to...
@JLLeitschuh - thanks for the follow-up. I can’t speak for @twwwt’s particular situation, but after further investigation (and much hair-pulling) it does look as though (in our case at least) the...
View ArticleUnrecognized JVM option for [--add-opens] , Gradle 6 and JDK11
Gradle process is not able to launch JVM with following VM args. Please help if there is a fix for this problem. application { applicationDefaultJvmArgs = ["--add-opens...
View Article[Packt] Use Java and Deeplearning4j to build robust, enterprise-grade deep...
Java is one of the most widely used programming languages in the world. With this book, you will see how to perform deep learning using Deeplearning4j (DL4J) – the most popular Java library for...
View ArticleDistribution plugin : generate only a tar (or avoid generate zip)
I absolutely agree. I’ve had some use for this in multiple projects in the last 6 months and this is the first time I’ve found a nice gradley solution. Before I’ve used solutions where I scripted...
View Article