https://github.com/groovymc/rootpackagetransformer
Tool for transforming artifacts to move marked classes to the root package
https://github.com/groovymc/rootpackagetransformer
Last synced: about 1 month ago
JSON representation
Tool for transforming artifacts to move marked classes to the root package
- Host: GitHub
- URL: https://github.com/groovymc/rootpackagetransformer
- Owner: GroovyMC
- License: mit
- Created: 2024-05-24T01:53:18.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-30T18:12:33.000Z (about 2 years ago)
- Last Synced: 2025-01-14T09:15:45.991Z (over 1 year ago)
- Language: Java
- Size: 85.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RootPackageTransformer
This tool provides the `@RootPackage` annotation, as well as a transformer that when applied moves any class marked with that annotation to the root package.
## Use
To use, depend on the annotation:
```gradle
dependencies {
compileOnly 'org.groovymc:rootpackagetransformer:'
}
```
The gradle plugin provides a method to create an alternative published outgoing variant for a given source set feature. The transformed
artifacts will be published at the normal location, and the original artifacts will be published with the provided capability.
```gradle
plugins {
id 'java'
id 'org.groovymc.rootpackagetransformer' version ''
}
rootPackageTransformer.forSourceSet(sourceSets.main, 'org.example:example-jpms:1.0.0')
```