diff --git a/diktat-gradle-plugin/build.gradle.kts b/diktat-gradle-plugin/build.gradle.kts index 5d209470eb..334e7b24b9 100644 --- a/diktat-gradle-plugin/build.gradle.kts +++ b/diktat-gradle-plugin/build.gradle.kts @@ -1,7 +1,6 @@ import com.saveourtool.diktat.buildutils.configurePom import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform.getCurrentOperatingSystem import org.jetbrains.kotlin.gradle.tasks.KotlinCompile -//import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar plugins { id("com.saveourtool.diktat.buildutils.kotlin-jvm-configuration") @@ -10,7 +9,6 @@ plugins { id("pl.droidsonroids.jacoco.testkit") version "1.0.12" id("org.gradle.test-retry") version "1.5.6" id("com.gradle.plugin-publish") version "1.2.1" -// alias(libs.plugins.shadow) } dependencies { @@ -51,52 +49,17 @@ gradlePlugin { } } -publishing { - publications { - named("pluginMaven") { - pom { - configurePom(project) +afterEvaluate { + publishing { + publications { + named("pluginMaven") { + pom { + configurePom(project) + } } } -// @Suppress("UNUSED_VARIABLE") -// val pluginMaven = existing(MavenPublication::class) { -// pom { -// configurePom(project) -// } -// } } } -//tasks.named("jar") { -// enabled = false -//} -//val shadowJar by tasks.existing(ShadowJar::class) { -// archiveClassifier.set("") -// duplicatesStrategy = DuplicatesStrategy.FAIL -//} -// -//val javadocJar by tasks.registering(Jar::class) { -// group = "documentation" -// archiveClassifier.set("javadoc") -// from(tasks.named("dokkaHtml")) -//} -// -//publishing { -// repositories { -// mavenLocal() -// } -// publications { -// val pluginMaven by creating(MavenPublication::class) { -// artifact(shadowJar) -// artifact(javadocJar) -// pom { -// configurePom(project) -// } -// } -// } -//} - - - // === testing & code coverage, jacoco is run independent from maven val functionalTestTask by tasks.register("functionalTest") @@ -155,9 +118,3 @@ tasks.jacocoTestReport { xml.required.set(true) } } - -//afterEvaluate { -// tasks.named("publishDiktatPluginPluginMarkerMavenPublicationToMavenLocal") { -// dependsOn(javadocJar) -// } -//}