From ebe0d542f8d1a5ce56ddd4c5dfa6c5825aee15f8 Mon Sep 17 00:00:00 2001 From: "Daniel A. A. Pelsmaeker" Date: Thu, 11 Jul 2024 15:57:50 +0200 Subject: [PATCH] Fix subproject --- build.gradle.kts | 5 +++++ example/build.gradle.kts | 5 +---- example/java-example/build.gradle.kts | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 build.gradle.kts diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 0000000..ac8ac61 --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,5 @@ +import org.metaborg.convention.MavenPublishConventionExtension + +plugins { + id("org.metaborg.convention.root-project") +} diff --git a/example/build.gradle.kts b/example/build.gradle.kts index 6f35225..23a14e8 100644 --- a/example/build.gradle.kts +++ b/example/build.gradle.kts @@ -4,10 +4,7 @@ plugins { id("org.metaborg.convention.root-project") } -rootProjectConvention { - taskNameSuffix.set("All") -} - +// Required, either here or on each subproject allprojects { pluginManager.withPlugin("org.metaborg.convention.maven-publish") { extensions.configure(MavenPublishConventionExtension::class.java) { diff --git a/example/java-example/build.gradle.kts b/example/java-example/build.gradle.kts index bb9bea6..8cd76de 100644 --- a/example/java-example/build.gradle.kts +++ b/example/java-example/build.gradle.kts @@ -11,7 +11,7 @@ javaConvention { javaVersion.set(JavaLanguageVersion.of(17)) // Optional } -// This is required, either here or on the root project +// Required, either here or on the root project mavenPublishConvention { repoOwner.set("metaborg") repoName.set("convention-plugin-example")