Open kirill-linnik opened 1 year ago
ah, it seems like the issue is bigger than that:
Execution failed for task ':appName-service:compileJava'.
> Could not resolve all files for configuration ':appName-service:compileClasspath'.
> Could not find io.micronaut:micronaut-inject:.
Required by:
project :appName-service
> Could not find javax.annotation:javax.annotation-api:.
Required by:
project :appName-service
> Could not find io.micronaut:micronaut-validation:.
Required by:
project :appName-service
> Could not find io.micronaut.cache:micronaut-cache-caffeine:.
Required by:
project :appName-service
> Could not find io.micronaut.cache:micronaut-cache-core:.
Required by:
project :appName-service
> Could not find io.micronaut:micronaut-management:.
Required by:
project :appName-service
> Could not find io.micronaut.spring:micronaut-spring:.
Required by:
project :appName-service
> Could not find io.micronaut.rxjava2:micronaut-rxjava2:.
Required by:
project :appName-service
> Could not find io.micronaut:micronaut-http-client:.
Required by:
project :appName-service
> Could not find io.micronaut:micronaut-runtime:.
Required by:
project :appName-service
> Could not find io.micronaut.sql:micronaut-jdbc-hikari:.
Required by:
project :appName-service
> Could not find io.micronaut.liquibase:micronaut-liquibase:.
Required by:
project :appName-service
> Could not find io.micronaut:micronaut-http-server-netty:.
Required by:
project :appName-service
> Could not find io.micronaut:micronaut-bom:4.0.0-M1.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/io/micronaut/micronaut-bom/4.0.0-M1/micronaut-bom-4.0.0-M1.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :appName-service
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
4.0.0 M1 is not fully released yet as we are still preparing the new BOM and releasing the sub-modules. You will need to wait a little while before trying it out. Really this release was more to help us get sub-modules ready, it probably makes sense to hold off until at least M2 before you trying anything
Expected Behavior
According to doc, I still should be able to use @Singleton annotation for beans
Actual Behaviour
While trying 4.0.0-M1, I see that Jakarta Inject has disappeared from dependencies:
Should I inject it separately now?
Steps To Reproduce
Get 4.0.0-M1, create new bean, try to annotate it with @Singleton
Environment Information
No response
Example Application
No response
Version
4.0.0-M1