Building old Milestones #3210
-
I have the problem to build my edc connector again, because of gradle errors. FAILURE: Build failed with an exception.
* What went wrong:
org.gradle.api.InvalidUserDataException: Invalid catalog definition:
- Problem: In version catalog libs, version reference 'okhttp' doesn't exist.
Reason: Dependency 'com.squareup.okhttp3:okhttp-dnsoverhttps' references version 'okhttp' which doesn't exist.
Possible solutions:
1. Declare 'okhttp' in the catalog.
2. Use one of the following existing versions: 'jackson' or 'jetbrainsAnnotation'.
Please refer to https://docs.gradle.org/7.5.1/userguide/version_catalog_problems.html#undefined_version_reference for more details about this problem.
> Invalid catalog definition:
- Problem: In version catalog libs, version reference 'okhttp' doesn't exist.
Reason: Dependency 'com.squareup.okhttp3:okhttp-dnsoverhttps' references version 'okhttp' which doesn't exist.
Possible solutions:
1. Declare 'okhttp' in the catalog.
2. Use one of the following existing versions: 'jackson' or 'jetbrainsAnnotation'.
Please refer to https://docs.gradle.org/7.5.1/userguide/version_catalog_problems.html#undefined_version_reference for more details about this problem.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 721ms I have already tried the second possible, but it also ends with an error.
I'm not an expert in java and the build system with Gradle, but I think it has something to do with the following configuration in the dependencyResolutionManagement {
repositories {
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
}
mavenCentral()
mavenLocal()
}
versionCatalogs {
create("libs") {
from("org.eclipse.edc:edc-versions:0.0.1-SNAPSHOT")
// this is not part of the published EDC Version Catalog, so we'll just "amend" it
library("dnsOverHttps", "com.squareup.okhttp3", "okhttp-dnsoverhttps").versionRef("okhttp")
}
}
} My connector Version is from Milestone8 and I know there is a newer Milestone, but I don't want to switch right now. I just want to make a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Finally! 🙈 I just updated the
|
Beta Was this translation helpful? Give feedback.
Finally! 🙈
I just updated the
from("...")
statement to the proper and available version for milestone8. Also, I had to change the JavaVersion