Skip to content

Commit 07408b7

Browse files
committed
build: remove duplicate magic plugins and configurations
1 parent f8f3163 commit 07408b7

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

build.gradle.kts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ plugins {
3333
id("com.vanniktech.maven.publish") version "0.34.0"
3434
id("org.jetbrains.dokka") version "2.0.0"
3535
`java-library`
36-
`maven-publish`
3736
}
3837

3938
application {
@@ -43,8 +42,6 @@ application {
4342
java {
4443
sourceCompatibility = JavaVersion.VERSION_17
4544
targetCompatibility = JavaVersion.VERSION_17
46-
withJavadocJar()
47-
withSourcesJar()
4845
}
4946

5047
kotlin {
@@ -154,7 +151,6 @@ mavenPublishing {
154151
signAllPublications()
155152
coordinates(group.toString(), rootProject.name, version.toString())
156153

157-
158154
pom {
159155
name.set(rootProject.name)
160156
description.set("A simple mock oauth2 server based on OkHttp MockWebServer")
@@ -242,11 +238,6 @@ tasks.named("dependencyUpdates", DependencyUpdatesTask::class.java).configure {
242238
}
243239
}
244240

245-
// This task is added by Gradle when we use java.withJavadocJar()
246-
tasks.named<Jar>("javadocJar") {
247-
from(tasks.named("dokkaJavadoc"))
248-
}
249-
250241
buildscript {
251242
dependencies {
252243
configurations.classpath.get().exclude("xerces", "xercesImpl")
@@ -289,9 +280,3 @@ tasks {
289280
gradleVersion = "8.14.1"
290281
}
291282
}
292-
293-
afterEvaluate {
294-
tasks.named("generateMetadataFileForMavenPublication") {
295-
dependsOn("dokkaJavadocJar")
296-
}
297-
}

0 commit comments

Comments
 (0)