Gradle Enterprise 2020.3.1 has been released
Gradle Enterprise 2020.3.1 is now available. Please see the release notes for more information.
View ArticleBuild cache misses when parent folder changes
(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)
View ArticleExecution failed for task ':app:androidDependencies'
trying to use local maven repo on my machine without any luck. allprojects { repositories { maven { url file('/tmp/repo') } google() jcenter() } } here is my dependency: dependencies {...
View ArticleUnity build to Android failed, because file is in use
problem solved. Where restarting the computer changed nothing, logging off and to a different account, and then back to the main account resolved the isssue on both accounts.
View ArticleConsuming Maven-published SNAPTSHOT from Gradle
I have a repository defined like this: maven { url 'https://repository.apache.org/content/groups/snapshots' // for myfaces snapshots } and a dependency like this...
View ArticleListing dependencies included into an enforced platform
Hello, in my Gradle plugin I need to be able to analyze dependencies included into the enforced platforms the user has configured for the project. Basically, I need the complete list of the...
View ArticleSourceSet with name 'main' not found
I’ve made some improvements. Regarding sourcesJar I’ve moved that function to the module build.gradle.kts and changed it to from(android.sourceSets.getByName("main").java.srcDirs) so the build.gradle...
View ArticleIs it possible to access inferred module path?
I’d like to add a single jar (javax.inject) to the existing, inferred module path, since Gradle isn’t adding it on its own. Is there any way to get the inferred module path like there is with the...
View ArticleWatching the file-system at CI
Hi @Lance, thank you for clearing this up. Looks like I totally misunderstood the purpose of the feature. My expectations were to see the N milliseconds boost in build time by having more consistent...
View ArticleWatching the file-system at CI
Allow me to backtrack… I was getting the new --watch-fs feature confused with --continuous (see continuous build). Please disregard my previous response. I’ve always used clean workspaces on CI agents...
View ArticleEar file depends on EJB & WAR from subproject
I am building an EAR file that contains an EJB and a WAR file both built from the same subproject. The EAR files is being created with only the .war file. In cases where I have a project that is just...
View ArticleWhy isn't Gradle searching all repositories?
hello all, i have these repos defined in my gradle build: mavenLocal() mavenCentral() maven { url = project.uri('https://repository.cloudera.com/artifactory/libs-release-local') url =...
View ArticleEar file depends on EJB & WAR from subproject
I got it. I change the core/build.xml to: plugins { id 'java-library' id 'war' } tasks.withType(Jar) { archivesBaseName = 'my-jar' jar { from ('META') { into 'META-INF' includes = [ 'ejb-jar.xml'] } }...
View ArticleGradle Tooling API - to get direct dependencies and potentially update them
Hi Gradle Community, I’m exploring with Tooling API to find a solution to update existing Gradle build files. I’m targeting the Java Projects for the time being. Using IdeaProject or EclipseProject...
View ArticlebuildSrc classpath instrumentation
Hello, it seems that Gradle instruments all dependencies declared in the buildSrc project since 6.5. This breaks classes which check their code signature since those are erased by the instrumentation....
View ArticleWhy isn't Gradle searching all repositories?
This block calls setUrl(...) four times, the fourth one wins. maven { url = project.uri('https://repository.cloudera.com/artifactory/libs-release-local') url =...
View ArticleApply settings level plugin in kotlin
Hello I have create a small settings plugin that configures the build cache. How can I apply it to my settings.gradle.kts? Here is the code of my plugin: class JvmSettingsPlugin :...
View ArticleHow to perform Eclipselink Static Weaving without breaking up-to-date-checks
I’m trying to add Eclipselink Static weaving to my Java project. I was able to do it by adding a weave task: task weave(type: JavaExec, dependsOn: classes) { description = 'Performs EclipseLink static...
View ArticleWhy isn't Gradle searching all repositories?
Thanks Lance!! I guess I looked at the wrong sample code.
View ArticleHow to increment versions of dependent projects in multi-project build?
I have a large project (2+m LOC) with many sub-projects (50-60). I’d like to be able to version each of the sub-projects separately so that they can be published or released independently. Some of the...
View Article