Skip to content

Commit

Permalink
Subproject do not need 'java-library' plugin, e.g. for Spring
Browse files Browse the repository at this point in the history
  • Loading branch information
ak-git committed Oct 30, 2024
1 parent 09afa0b commit f1cb9ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ allprojects {
}

subprojects {
apply plugin: 'java-library'

java {
toolchain {
languageVersion = JavaLanguageVersion.of(22)
Expand Down
4 changes: 4 additions & 0 deletions hello/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
plugins {
id 'java-library'
id 'application'
alias(libs.plugins.javamodularity.moduleplugin)
}
Expand All @@ -11,6 +12,9 @@ dependencies {
testRuntimeOnly libs.bundles.test.runtime
}

apply plugin: 'java-library'
apply plugin: 'application'

application {
mainModule = 'com.ak.app'
mainClass = 'com.ak.app.MainApp'
Expand Down

0 comments on commit f1cb9ea

Please sign in to comment.