-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only locally available included builds are shown as unresolved #725
Comments
I would guess that we’d need to filter not just for ExternalDependency, but also exclude ExternalModuleDependency. Otherwise we think it is a BOM supplied version which is dynamically determined. |
Maybe you misunderstood me. |
I figured if we could simply not query for included build dependencies then that would solve the problem. We don't query for project dependencies and this is similar. My guess was that to detect if this is an included build we'd need to see if it was a |
I don't know the Gradle internals there, but I guess it is not that trivial. |
You can use the branch |
Thanks! For context we get the dependency set like so. I’m guessing we can add another filter clause. Lines 95 to 99 in ad0ce46
|
The But just to be clear, that the Actually I gave it a try to set the groups using the patch diff --git a/gradle/build-logic/build-logic.gradle.kts b/gradle/build-logic/build-logic.gradle.kts
index 4233ac2..f18c9d0 100644
--- a/gradle/build-logic/build-logic.gradle.kts
+++ b/gradle/build-logic/build-logic.gradle.kts
@@ -30,7 +30,7 @@ dependencies {
implementation(plugin(libs.plugins.grgit))
implementation(plugin(libs.plugins.github))
implementation(plugin(libs.plugins.kotlin.js))
- implementation(":dependency-updates-report-aggregation")
+ implementation("net.kautler:dependency-updates-report-aggregation")
implementation(libs.build.inject)
implementation(libs.build.github.api)
implementation(libs.build.snakeyaml)
diff --git a/gradle/build-logic/gradle.properties b/gradle/build-logic/gradle.properties
index f5c5b07..5d7bcc7 100644
--- a/gradle/build-logic/gradle.properties
+++ b/gradle/build-logic/gradle.properties
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+group = net.kautler
org.gradle.caching = true
dependency.analysis.print.build.health = true
diff --git a/gradle/dependency-updates-report-aggregation/gradle.properties b/gradle/dependency-updates-report-aggregation/gradle.properties
index f5c5b07..5d7bcc7 100644
--- a/gradle/dependency-updates-report-aggregation/gradle.properties
+++ b/gradle/dependency-updates-report-aggregation/gradle.properties
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+group = net.kautler
org.gradle.caching = true
dependency.analysis.print.build.health = true
diff --git a/gradle/dependency-updates-report-aggregation/src/main/kotlin/net/kautler/dependency-updates-report-aggregation.gradle.kts b/gradle/dependency-updates-report-aggregation/src/main/kotlin/net/kautler/dependency-updates-report-aggregation.gradle.kts
index e1df0b0..c109937 100644
--- a/gradle/dependency-updates-report-aggregation/src/main/kotlin/net/kautler/dependency-updates-report-aggregation.gradle.kts
+++ b/gradle/dependency-updates-report-aggregation/src/main/kotlin/net/kautler/dependency-updates-report-aggregation.gradle.kts
@@ -79,7 +79,7 @@ if (gradle.parent == null && parent == null) {
dependencies {
includedBuildNames
.filterNot { it == "conditional-refresh-versions" }
- .forEach { dependencyUpdatesResults(":$it") }
+ .forEach { dependencyUpdatesResults("net.kautler:$it") }
}
tasks.dependencyUpdates { But with that the dependencies are not shown as unresolved, but as up-to-date. |
Yep, my suspicion was correct. |
Released in v46 |
I have build
A
with an included buildbuild-logic
that is a purely local included build without a published release.The report show this as
If such a dependency that has no version available at all is coming from an included build, then it would be nice if it would not be shown as unresolved, but probably as up-to-date or not at all.
The text was updated successfully, but these errors were encountered: