Skip to content

Commit

Permalink
Only apply java-base in Java convention
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtlink committed Jul 6, 2024
1 parent 99d0a15 commit 38e3876
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import org.gradle.kotlin.dsl.*
/**
* Configures a Gradle project that builds a Java library or application.
*
* Also apply the `java`, `java-library` or `application` plugin to the project.
* Also applies the `java-base` plugin to the project. Apply the `java` or `java-library` plugin manually.
*/
@Suppress("unused")
class JavaConventionPlugin: Plugin<Project> {
Expand All @@ -22,8 +22,8 @@ class JavaConventionPlugin: Plugin<Project> {
val extension = extensions.create<JavaConventionExtension>("javaConvention")
extension.setConvention()

// Apply the Java plugin
plugins.apply("java")
// Apply the Java base plugin
plugins.apply("java-base")

repositories {
// Maven Artifacts repository
Expand Down

0 comments on commit 38e3876

Please sign in to comment.