Skip to content

Commit 21337e3

Browse files
committed
build: use edc-build from Gradle Plugin Portal (#200)
1 parent e24bc01 commit 21337e3

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

build.gradle.kts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
plugins {
1616
`java-library`
17+
alias(libs.plugins.edc.build)
1718
}
1819

1920
val hcScmUrl: String by project
@@ -22,18 +23,21 @@ val hcScmConnection: String by project
2223

2324
buildscript {
2425
dependencies {
25-
val version = "0.14.0-SNAPSHOT"
26-
classpath("org.eclipse.edc.edc-build:org.eclipse.edc.edc-build.gradle.plugin:${version}")
26+
val version: String by project
27+
classpath("org.eclipse.edc.autodoc:org.eclipse.edc.autodoc.gradle.plugin:$version")
2728
}
2829
}
2930

31+
val edcBuildId = libs.plugins.edc.build.get().pluginId
32+
3033
allprojects {
31-
apply(plugin = "org.eclipse.edc.edc-build")
34+
apply(plugin = edcBuildId)
35+
apply(plugin = "org.eclipse.edc.autodoc")
3236

3337
configure<org.eclipse.edc.plugins.edcbuild.extensions.BuildExtension> {
3438

3539
pom {
36-
scmUrl.set(hcScmConnection)
40+
scmUrl.set(hcScmUrl)
3741
scmConnection.set(hcScmConnection)
3842
groupId = project.group.toString()
3943
}

gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,5 @@ huawei-dws-jdbc = { module = "com.huaweicloud.dws:huaweicloud-dws-jdbc", version
9797
edc-dpf = ["edc-dpf-signaling","edc-dpf-signaling-api","edc-dpf-public-api", "edc-dpf-selector-core", "edc-spi-dataplane-selector"]
9898

9999
[plugins]
100+
edc-build = { id = "org.eclipse.edc.edc-build", version = "0.0.2" }
100101
shadow = { id = "com.gradleup.shadow", version = "8.3.5" }

0 commit comments

Comments
 (0)