From 98be32ee5ac00784c591328b78ecffadd98d4e03 Mon Sep 17 00:00:00 2001 From: Pascal Knecht Date: Wed, 11 Sep 2024 21:01:34 +0200 Subject: [PATCH] Include dependency model into connector plugin by applying shadow plugin --- connector-plugin/build.gradle.kts | 23 ++--------------------- gradle.properties | 2 +- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/connector-plugin/build.gradle.kts b/connector-plugin/build.gradle.kts index 6cbd414..895458e 100644 --- a/connector-plugin/build.gradle.kts +++ b/connector-plugin/build.gradle.kts @@ -1,8 +1,8 @@ plugins { id("ch.addere.dga.kotlin-library-conventions") + id("com.gradleup.shadow") version "8.3.1" + id("com.github.johnrengelman.shadow") version "8.1.1" `java-gradle-plugin` - `maven-publish` - id("com.gradle.plugin-publish") version "1.2.1" } description = "Gradle plugin that is injected into to be analysed Gradle projects" @@ -30,22 +30,3 @@ gradlePlugin { } } } - -publishing { - repositories { - maven { - name = "pluginRepo" - url = uri(layout.projectDirectory.dir("../build/pluginRepo")) - } - - publications { - create("maven") { - from(components["kotlin"]) - } - } - } -} - -tasks.withType { - dependsOn(tasks.getByPath(":connector-model:publishToMavenLocal")) -} diff --git a/gradle.properties b/gradle.properties index b3765fd..759fb63 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,4 +2,4 @@ # https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties org.gradle.parallel=true org.gradle.caching=true -connectorPluginVersion=0.1.2 +connectorPluginVersion=0.1.3