Replies: 1 comment
-
I recommend getting familiar with
I'm sure you'll understand that we are unable to provide individual support, when tutorials like the Samples repo exist. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I want to run a connector.jar only with required dependencies to run successfully. What should i write on build.gradle.kts to make it happen. i tried the code from samples kts file to copy it to edc kts file but i take an error as you can see in the picture.
plugins {
java-library`id("application")
alias(libs.plugins.shadow)
}
dependencies {
implementation(libs.edc.boot)
implementation(libs.edc.connector.core)
}
application {
mainClass.set("org.eclipse.edc.boot.system.runtime.BaseRuntime")
}
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
mergeServiceFiles()
archiveFileName.set("basic-connector.jar")
}`
Also i tried this code.
`/*
*/
plugins {
java-library
id("application")
id("com.github.johnrengelman.shadow") version "8.1.1"
}
repositories {
mavenCentral()
}
// pick-up the latest version from https://github.com/eclipse-edc/Connector/releases
val edcVersion = "0.5.1"
dependencies {
// the core control-plane module set
implementation("org.eclipse.edc:control-plane-core:${edcVersion}")
implementation("org.eclipse.edc:control-plane-api-client:${edcVersion}")
}
// configure the main class
application {
mainClass.set("org.eclipse.edc.boot.system.runtime.BaseRuntime")
}
// build the application as a single jar that will be available in
build/libs/connector.jar
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
mergeServiceFiles()
archiveFileName.set("connector.jar")
}`
and the error i take.
I don't know what the requirements to make it work. also i dont understand the errors. Can you please help me to run a basic connector inside the edc connector repo.
Beta Was this translation helpful? Give feedback.
All reactions