Skip to content

Commit

Permalink
Review Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hemantxpatel committed Jul 2, 2024
1 parent d4bc57a commit 24874ab
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 20 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/run-terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,24 @@ jobs:
--for=condition=ready pod \
--selector=app.kubernetes.io/component=controller \
--timeout=90s
- name: Setup JDK 21
- name: Setup JDK
uses: actions/setup-java@v3.13.0
with:
java-version: '21'
java-version: '22'
distribution: 'temurin'
- name: "Backend-Service Build"
working-directory: mxd/backend-service
run: |-
./gradlew clean dockerize
- name: "Custom TractusX EDC Build"
working-directory: custom-tractusx-edc
run: |-
./gradlew clean dockerize
- name: "Load Docker Images"
run: |-
kind load docker-image -n mxd backend-service:1.0.0
kind load docker-image -n mxd custom-edc-controlplane-postgresql-hashicorp-vault:latest
kind load docker-image -n mxd custom-edc-dataplane-hashicorp-vault:latest
- name: "Terraform init"
working-directory: mxd
run: |-
Expand Down
8 changes: 4 additions & 4 deletions custom-tractusx-edc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@

import com.bmuschko.gradle.docker.tasks.image.DockerBuildImage
import com.github.jengelman.gradle.plugins.shadow.ShadowJavaPlugin
import java.time.Duration

plugins {
`java-library`
id("com.github.johnrengelman.shadow") version "8.1.1"
id("com.bmuschko.docker-remote-api") version "9.4.0"
alias(libs.plugins.shadow)
alias(libs.plugins.docker)
}

val edcVersion = libs.versions.edc
val openTelemetryVersion = libs.versions.opentelemetry.get()

buildscript {
repositories {
Expand Down Expand Up @@ -57,7 +57,7 @@ subprojects {

val agentFile = buildDir.resolve("opentelemetry-javaagent.jar")
// create task to download the opentelemetry agent
val openTelemetryAgentUrl = "https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.32.0/opentelemetry-javaagent.jar"
val openTelemetryAgentUrl = "https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v${openTelemetryVersion}/opentelemetry-javaagent.jar"
val downloadOtel = tasks.create("downloadOtel") {
// only execute task if the opentelemetry agent does not exist. invoke the "clean" task to force
onlyIf {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
`java-library`
id("application")
id("com.github.johnrengelman.shadow") version "8.1.1"
alias(libs.plugins.shadow)
}

dependencies {
Expand All @@ -29,16 +29,10 @@ dependencies {
}

tasks.withType<ShadowJar> {
exclude("**/pom.properties", "**/pom.xm")
mergeServiceFiles()
archiveFileName.set("${project.name}.jar")
}

application {
mainClass.set("org.eclipse.edc.boot.system.runtime.BaseRuntime")
}

// do not publish
edcBuild {
publish.set(false)
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
plugins {
`java-library`
id("application")
id("com.github.johnrengelman.shadow") version "8.1.1"
alias(libs.plugins.shadow)
}

dependencies {
Expand All @@ -27,16 +27,10 @@ dependencies {
}

tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
exclude("**/pom.properties", "**/pom.xm")
mergeServiceFiles()
archiveFileName.set("${project.name}.jar")
}

application {
mainClass.set("org.eclipse.edc.boot.system.runtime.BaseRuntime")
}

// do not publish
edcBuild {
publish.set(false)
}
5 changes: 5 additions & 0 deletions custom-tractusx-edc/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ format.version = "1.1"
[versions]
edc = "0.7.0"
tractusx = "0.7.2"
opentelemetry = "1.32.0"

[libraries]
edc-controlplane-postgresql-hashicorp-vault = { module = "org.eclipse.tractusx.edc:edc-controlplane-postgresql-hashicorp-vault", version.ref = "tractusx" }
edc-dataplane-hashicorp-vault = { module = "org.eclipse.tractusx.edc:edc-dataplane-hashicorp-vault", version.ref = "tractusx" }
edc-identity-trust-sts-remote-client = { module = "org.eclipse.edc:identity-trust-sts-remote-client", version.ref = "edc" }
edc-auth-oauth2-client = { module = "org.eclipse.edc:oauth2-client", version.ref = "edc" }
edc-build-plugin = { module = "org.eclipse.edc.edc-build:org.eclipse.edc.edc-build.gradle.plugin", version.ref = "edc" }

[plugins]
shadow = { id = "com.github.johnrengelman.shadow", version = "8.1.1" }
docker = { id = "com.bmuschko.docker-remote-api", version = "9.4.0" }

0 comments on commit 24874ab

Please sign in to comment.