Skip to content

Commit

Permalink
cleanup the code
Browse files Browse the repository at this point in the history
  • Loading branch information
nulls committed Nov 10, 2023
1 parent f1d2aab commit 9fb535e
Showing 1 changed file with 7 additions and 50 deletions.
57 changes: 7 additions & 50 deletions diktat-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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")
Expand All @@ -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 {
Expand Down Expand Up @@ -51,52 +49,17 @@ gradlePlugin {
}
}

publishing {
publications {
named<MavenPublication>("pluginMaven") {
pom {
configurePom(project)
afterEvaluate {
publishing {
publications {
named<MavenPublication>("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<Test>("functionalTest")
Expand Down Expand Up @@ -155,9 +118,3 @@ tasks.jacocoTestReport {
xml.required.set(true)
}
}

//afterEvaluate {
// tasks.named("publishDiktatPluginPluginMarkerMavenPublicationToMavenLocal") {
// dependsOn(javadocJar)
// }
//}

0 comments on commit 9fb535e

Please sign in to comment.