I recently splitted our micornaut project in seperate module, but since then the continous build doe s not work anymore for the subprojects. But changes in the root project will still be detected.
The build.grade of the root project looks like this:
plugins {
id 'java'
id "com.github.johnrengelman.shadow" version "7.0.0"
id "io.micronaut.application" version "3.6.5"
}
version = "0.1"
group = "com.example"
repositories {
mavenCentral()
}
configurations {
compile
}
micronaut {
runtime("netty")
testRuntime("junit5")
processing {
incremental(true)
annotations("*")
}
}
dependencies {
implementation project(':child1')
implementation project(':child2')
}
And a child build.gradle like this:
plugins {
id 'java'
id 'io.micronaut.library'
}
group 'com.example'
version '0.1'
repositories {
mavenCentral()
}
dependencies {
implementation project(":child1")
}
The gradle.properties like this:
org.gradle.jvmargs='-Dfile.encoding=UTF-8'
org.gradle.caching=true
org.gradle.vfs.verbose=true
org.gradle.vfs.watch=true
micronautVersion=3.7.4
version=7.4.0
I start the application with *gradle run -t. In settings.gradle are all subprojects included. Any ideas how to fix this?
EDIT: Output of gradle run --dry-run
:
VFS> Statistics since last build:
VFS> > Stat: Executed stat() x 0. getUnixMode() x 0
VFS> > FileHasher: Hashed 0 files (0 bytes)
VFS> > DirectorySnapshotter: Snapshot 0 directory hierarchies (visited 0 directories, 0 files and 0 failed files)
Received 4102 file system events since last build while watching 1 locations
Virtual file system retained information about 545 files, 113 directories and 0 missing files since last build
:child1:compileJava SKIPPED
:child2:compileJava SKIPPED
:child3:compileJava SKIPPED
:compileJava SKIPPED
:processResources SKIPPED
:classes SKIPPED
:child1:processResources SKIPPED
:child1:classes SKIPPED
:child1:jar SKIPPED
:child2:processResources SKIPPED
:child2:classes SKIPPED
:child2:jar SKIPPED
:child3:processResources SKIPPED
:child3:classes SKIPPED
:child3:jar SKIPPED
:run SKIPPED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 2s
Received 16 file system events during the current build while watching 1 locations
Virtual file system retains information about 564 files, 117 directories and 0 missing files until next build
VFS> Statistics during current build:
VFS> > Stat: Executed stat() x 4. getUnixMode() x 0
VFS> > FileHasher: Hashed 15 files (40.351 bytes)
VFS> > DirectorySnapshotter: Snapshot 4 directory hierarchies (visited 4 directories, 19 files and 0 failed files)