Skip to content

Commit

Permalink
Extend section about how to disable the plugin's effect
Browse files Browse the repository at this point in the history
  • Loading branch information
jjohannes committed Dec 4, 2023
1 parent 676a972 commit f545ae7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit f545ae7

Please sign in to comment.