Oleg Nenashev
04/12/2024, 11:35 AMOleg Nenashev
04/15/2024, 12:15 PMOleg Nenashev
04/15/2024, 12:16 PMOleg Nenashev
04/18/2024, 12:35 PMOleg Nenashev
04/18/2024, 12:44 PMOleg Nenashev
04/18/2024, 12:46 PMOleg Nenashev
04/18/2024, 12:55 PMOleg Nenashev
04/18/2024, 12:56 PMTapchicoma
04/26/2024, 6:12 PMSince Gradle 8.7, it's been possible for plugins to define their own dependencies-like block.
Vampire
04/26/2024, 9:16 PMRenΓ©
06/07/2024, 10:20 AM-m
flag? I noticed that its not passed down to included buildsJakub Chrzanowski
06/28/2024, 11:44 AMTapchicoma
08/08/2024, 1:30 PMLifecycleAwareProject
info is missing in 8.10-RC-1 release notesAdam
08/08/2024, 2:26 PMAlexander Likhachev
08/15/2024, 7:08 PMEug
02/13/2025, 12:50 PMLouis Jacomet
04/15/2025, 3:47 PMScott Palmer
07/21/2025, 2:19 PMβ― gradle tasks
FAILURE: Build failed with an exception.
* Where:
Build file '/my-project/build.gradle' line: 31
* What went wrong:
A problem occurred evaluating root project 'my-project'.
> Could not resolve all artifacts for configuration ':detachedConfiguration3'.
> Cannot resolve external dependency org.springframework.boot:spring-boot-dependencies:3.5.0 because no repositories are defined.
Required by:
root project 'my-project'
For context, here is the beginning of the project build file... note there are repositories defined.:
ββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β File: build.gradle
ββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1 β plugins {
2 β id 'java'
3 β id 'maven-publish'
4 β id 'jacoco'
5 β alias(libs.plugins.cyclonedx)
6 β alias(libs.plugins.openapi.generator)
7 β alias(libs.plugins.shadow)
8 β alias(libs.plugins.spotless)
9 β alias(libs.plugins.spring.dependency.management)
10 β alias(libs.plugins.spring)
11 β }
12 β
13 β group = 'my.company'
14 β
15 β // disable building jar that contains only bytecode of your source code (slim jar)
16 β // shadowJar will build jar that not only contains bytecode of your source code but also JARs from third parties
17 β // We will be publishing only the shadow jar (fat jar) into maven repo and disabling the slim jar will help reduce cost and speed up build time.
18 β jar.enabled = false
19 β bootJar.enabled = false
20 β
21 β // Required by task ':shadowJar' when the archive contains more than 65535 entries.
22 β // Beta versions of "stripe-java" bring the archive over the limit.
23 β tasks.withType(Zip) {
24 β zip64 = true
25 β }
26 β
27 β configurations {
28 β compileOnly {
29 β extendsFrom annotationProcessor
30 β }
31 β all*.exclude module : 'spring-boot-starter-logging'
32 β }
33 β
34 β repositories {
35 β mavenCentral()
36 β mavenLocal()
37 β maven {
38 β name = 'GitHubPackages'
39 β url = uri('<https://maven.pkg.github.com/my-company/my-other-project-0>')
40 β // the "githubUser" and "githubToken" properties should be set
41 β // by each developer individually under ~/.gradle/gradle.properties, e.g.:
42 β // githubUser=my-github-username
43 β // githubToken=42ed8...99a7c
44 β credentials {
45 β username = githubUser
46 β password = githubToken
47 β }
48 β }
49 β maven {
50 β name = 'GitHubPackages'
51 β url = uri('<https://maven.pkg.github.com/my-company/my-other-project-1>')
52 β credentials {
53 β username = githubUser
54 β password = githubToken
55 β }
56 β }
57 β maven {
58 β name = 'GitHubPackages'
59 β url = uri('<https://maven.pkg.github.com/my-company/my-other-project-2>')
60 β credentials {
61 β username = githubUser
62 β password = githubToken
63 β }
64 β }
65 β }
66 β
67 β java {
68 β toolchain { languageVersion = JavaLanguageVersion.of(21) }
69 β }
... snipped the rest ...
Changing the build.gradle
file so the repositories are defined before the configurations fixes the issue, but this was not required with Gradle 8.14.3