Skip to content

Commit

Permalink
major: apply the JavaPlugin instead of the JavaLibraryPlugin (#127)
Browse files Browse the repository at this point in the history
Signed-off-by: Klaus Lehner <[email protected]>
  • Loading branch information
klu2 committed Jan 13, 2023
1 parent 9378040 commit c471667
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import io.cloudflight.gradle.autoconfigure.git.GitExtension
import io.cloudflight.gradle.autoconfigure.util.BuildUtils
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.plugins.JavaLibraryPlugin
import org.gradle.api.plugins.JavaPlugin
import org.gradle.api.plugins.JavaPluginExtension
import org.gradle.api.plugins.JavaTestFixturesPlugin
Expand All @@ -28,7 +27,7 @@ import org.springframework.boot.gradle.plugin.SpringBootPlugin

class JavaConfigurePlugin : Plugin<Project> {
override fun apply(project: Project) {
project.plugins.apply(JavaLibraryPlugin::class)
project.plugins.apply(JavaPlugin::class)
project.plugins.apply(JacocoPlugin::class)

if (project.layout.projectDirectory.dir("src/testFixtures").asFile.exists()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies {
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")

constraints {
api("commons-io:commons-io:2.8.0")
implementation("commons-io:commons-io:2.8.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.1")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies {
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")

constraints {
api("commons-io:commons-io:2.8.0")
implementation("commons-io:commons-io:2.8.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.1")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies {
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")

constraints {
api("commons-io:commons-io:2.8.0")
implementation("commons-io:commons-io:2.8.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.1")
}
Expand Down

0 comments on commit c471667

Please sign in to comment.