Skip to content

Commit

Permalink
build: apply CompileAndTestOnlyConfigurationPlugin in the ConfigurePl…
Browse files Browse the repository at this point in the history
…ugin instead of build.gradle.kts file.
  • Loading branch information
testersen committed Apr 10, 2024
1 parent 216b545 commit 20125d9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import io.tnboot.gradle.build.CompileAndTestOnlyConfigurationPlugin
import io.tnboot.gradle.build.ConfigurePlugin
import io.tnboot.gradle.build.PublishPlugin.Companion.configurePublish
import org.springframework.boot.gradle.tasks.bundling.BootJar
Expand Down Expand Up @@ -47,7 +46,6 @@ allprojects {
apply(plugin = "io.spring.dependency-management")
apply(plugin = "jacoco")
apply(plugin = "jacoco-report-aggregation")
pluginManager.apply(CompileAndTestOnlyConfigurationPlugin::class.java)
pluginManager.apply(ConfigurePlugin::class.java)
// endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import org.gradle.api.Project

class ConfigurePlugin : Plugin<Project> {
override fun apply(target: Project) {
target.pluginManager.apply(CompileAndTestOnlyConfigurationPlugin::class.java)
target.pluginManager.apply(PublishPlugin::class.java)
}
}

0 comments on commit 20125d9

Please sign in to comment.