diff --git a/README.md b/README.md index 9f9f480..87e428c 100644 --- a/README.md +++ b/README.md @@ -114,20 +114,36 @@ you can deactivate it for the runtime classpath as the module information is irr **Kotlin DSL** ``` +// Disable for a single Classpath (Configuration) configurations { runtimeClasspath { // testRuntimeClasspath, testCompileClasspath, ... attributes { attribute(Attribute.of("javaModule", Boolean::class.javaObjectType), false) } } } + +// Disable for all 'annotationProcessor' paths +sourceSets.all { + configurations.getByName(annotationProcessorConfigurationName) { + attributes { attribute(Attribute.of("javaModule", Boolean::class.javaObjectType), false) } + } +} ``` **Groovy DSL** ``` +// Disable for a single Classpath (Configuration) configurations { runtimeClasspath { // testRuntimeClasspath, testCompileClasspath, ... attributes { attribute(Attribute.of("javaModule", Boolean), false) } } } + +// Disable for all 'annotationProcessor' paths +sourceSets.all { + configurations.getByName(annotationProcessorConfigurationName) { + attributes { attribute(Attribute.of("javaModule", Boolean), false) } + } +} ``` ## How do I add `provides ... with ...` declarations to the `module-info.class` descriptor?