Caleb Cushing
08/09/2024, 3:08 PMCalculating task graph as no cached configuration is available for tasks: :jpa:dependencyInsight --configuration runtimeClasspath --dependency transaction
Type-safe project accessors is an incubating feature.
> Task :buildSrc:checkKotlinGradlePluginConfigurationErrors
> Task :buildSrc:generateExternalPluginSpecBuilders UP-TO-DATE
> Task :buildSrc:extractPrecompiledScriptPluginPlugins UP-TO-DATE
> Task :buildSrc:compilePluginsBlocks UP-TO-DATE
> Task :buildSrc:generatePrecompiledScriptPluginAccessors UP-TO-DATE
> Task :buildSrc:generateScriptPluginAdapters UP-TO-DATE
> Task :buildSrc:compileKotlin UP-TO-DATE
> Task :buildSrc:compileJava NO-SOURCE
> Task :buildSrc:compileGroovy NO-SOURCE
> Task :buildSrc:pluginDescriptors UP-TO-DATE
> Task :buildSrc:processResources UP-TO-DATE
> Task :buildSrc:classes UP-TO-DATE
> Task :buildSrc:jar UP-TO-DATE
> Task :jpa:dependencyInsight
jakarta.transaction:jakarta.transaction-api:2.0.1
Variant runtime:
| Attribute Name | Provided | Requested |
|--------------------------------|--------------|--------------|
| org.gradle.status | release | |
| org.gradle.category | library | library |
| org.gradle.libraryelements | jar | jar |
| org.gradle.usage | java-runtime | java-runtime |
| org.gradle.dependency.bundling | | external |
| org.gradle.jvm.environment | | standard-jvm |
| org.gradle.jvm.version | | 17 |
Selection reasons:
- By constraint: dependency was locked to version '2.0.1'
- By ancestor
jakarta.transaction:jakarta.transaction-api:{strictly 2.0.1} -> 2.0.1
\--- runtimeClasspath
jakarta.transaction:jakarta.transaction-api:2.0.1
+--- org.hibernate.orm:hibernate-core:6.5.2.Final
| +--- runtimeClasspath (requested org.hibernate.orm:hibernate-core:{strictly 6.5.2.Final})
| +--- org.springframework.boot:spring-boot-dependencies:3.3.2
| | +--- runtimeClasspath (requested org.springframework.boot:spring-boot-dependencies:3.+)
| | \--- project :model (requested org.springframework.boot:spring-boot-dependencies:3.+)
| | \--- runtimeClasspath
| +--- org.hibernate.orm:hibernate-envers:6.5.2.Final
| | +--- runtimeClasspath (requested org.hibernate.orm:hibernate-envers)
| | \--- org.springframework.boot:spring-boot-dependencies:3.3.2 (*)
| \--- org.springframework.boot:spring-boot-starter-data-jpa:3.3.2
| +--- runtimeClasspath (requested org.springframework.boot:spring-boot-starter-data-jpa)
| \--- org.springframework.boot:spring-boot-dependencies:3.3.2 (*)
\--- org.springframework.boot:spring-boot-dependencies:3.3.2 (*)
(*) - Indicates repeated occurrences of a transitive dependency subtree. Gradle expands transitive dependency subtrees only once per project; repeat occurrences only display the root of the subtree, followed by this annotation.
A web-based, searchable dependency report is available by adding the --scan option.
BUILD SUCCESSFUL in 2s
11 actionable tasks: 2 executed, 9 up-to-date
Publishing build scan...
<https://gradle.com/s/zngohwgoi6gv6>
Configuration cache entry stored.Vampire
08/09/2024, 3:20 PMCaleb Cushing
08/09/2024, 3:22 PMVampire
08/09/2024, 3:22 PMCaleb Cushing
08/09/2024, 3:23 PMCaleb Cushing
08/09/2024, 3:23 PMCaleb Cushing
08/09/2024, 3:24 PMVampire
08/09/2024, 3:29 PMCaleb Cushing
08/09/2024, 3:29 PMCaleb Cushing
08/09/2024, 3:29 PMCaleb Cushing
08/09/2024, 3:29 PMCaleb Cushing
08/09/2024, 3:29 PMCaleb Cushing
08/09/2024, 3:30 PMCaleb Cushing
08/09/2024, 3:30 PMCaleb Cushing
08/09/2024, 3:31 PMCaleb Cushing
08/09/2024, 3:57 PMCaleb Cushing
08/09/2024, 3:58 PMCaleb Cushing
08/09/2024, 4:09 PMCaleb Cushing
08/09/2024, 4:09 PMCaleb Cushing
08/09/2024, 4:10 PMVampire
08/09/2024, 4:49 PMprovided library is meant to be provided by the runtime environment, this can for example be a JEE container.
if a dependency in maven is defined as "provided" gradle doesn't do that if a version is provided either huhJust like Maven, Gradle basically ignores any
provided or optional entries, they are only considered informative for the human user.
They will not be added automatically anywhere and they also will not influence versions in any way.
"if transient or explicit transaction-api present also add deps"That would then be a component metadata rule in which you add the dependency
Caleb Cushing
08/09/2024, 4:53 PMCaleb Cushing
08/09/2024, 4:53 PMVampire
08/09/2024, 5:00 PMVampire
08/09/2024, 5:01 PMCaleb Cushing
08/09/2024, 5:06 PMCaleb Cushing
08/09/2024, 5:06 PMCaleb Cushing
08/09/2024, 5:06 PMCaleb Cushing
08/09/2024, 5:06 PMCaleb Cushing
08/09/2024, 5:06 PMCaleb Cushing
08/09/2024, 5:07 PMCaleb Cushing
08/09/2024, 5:09 PMVampire
08/09/2024, 5:12 PMrequires static does not make sense if it is provided, because as you correctly said, it is effectively required.
requires static is for stuff that is optional and it works if it is not present at runtime.
But yeah, probably Boot should provide it or at least provide a version. 🤷♂️Caleb Cushing
08/09/2024, 5:13 PMCaleb Cushing
08/09/2024, 5:14 PMCaleb Cushing
08/09/2024, 5:15 PMVampire
08/09/2024, 5:16 PMCaleb Cushing
08/09/2024, 5:16 PMCaleb Cushing
08/09/2024, 5:16 PMCaleb Cushing
08/09/2024, 5:16 PM@Inject still worksCaleb Cushing
08/09/2024, 5:17 PMCaleb Cushing
08/09/2024, 5:17 PMCaleb Cushing
08/09/2024, 5:17 PMVampire
08/09/2024, 5:17 PM@Inject is not CDIVampire
08/09/2024, 5:17 PM@Inject annotationCaleb Cushing
08/09/2024, 5:17 PMCaleb Cushing
08/09/2024, 5:18 PMCaleb Cushing
08/09/2024, 5:18 PMCaleb Cushing
08/09/2024, 5:18 PMCaleb Cushing
08/09/2024, 5:18 PMCaleb Cushing
08/09/2024, 5:18 PMCaleb Cushing
08/09/2024, 5:18 PMCaleb Cushing
08/09/2024, 5:19 PMVampire
08/09/2024, 5:19 PMCaleb Cushing
08/09/2024, 5:20 PMCaleb Cushing
08/09/2024, 5:21 PMCaleb Cushing
08/09/2024, 5:21 PMCaleb Cushing
08/09/2024, 5:25 PM