Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. **Imports Updated:** - Replaced `BiConsumer` with `Consumer`. 2. **ThisProject Class:** - Moved the `forceImplementation` comment. - Added comments for adding additional plugins. - Rearranged and clarified dependency addition comments. 3. **Class Removed:** - Removed `Plugins` class definition. 4. **ThirdPartyPlugins Class:** - Added instantiation in static block of `JPM` class to ensure plugins are added. 5. **Dependency Class:** - Added `fromGradleString` static method. - Added `excludedDependencies` and `type` attributes. - Added `exclude` methods. - Updated `toString` and `toXML` methods to handle new attributes. 6. **Repository Class:** - Added `isSnapshotsAllowed` attribute. - Updated `toXML` method to handle `isSnapshotsAllowed`. 7. **XML Class:** - Renamed `getOrCreateElement` to `getElementOrCreate`. - Added `remove` and `rename` methods. - Added `getElementOrNull` helper method. 8. **Plugin Class:** - Updated `beforeToXMLListeners` to use `Consumer<Details>`. - Removed configuration, executions, and dependencies fields. - Added `Details` inner class to encapsulate plugin details and manage configuration, executions, and dependencies. - Updated `toXML` method to use `Details`. 9. **Execution Class:** - Updated `toXML` method to handle optional `id`. 10. **Project Class:** - Defaulted `plugins` to `JPM.plugins`. - Added `profiles` attribute and related methods. - Updated `testImplementation`, `implementation`, `addDependency`, and `forceImplementation` methods to return `Dependency`. - Added `putPlugin` method for plugin management. - Added `addProfile` and `toXML` methods. - Updated `generatePom` to use `toXML`. 11. **Profile Class:** - Added `Profile` class extending `Project`. - Overridden `toXML` method for profiles.
- Loading branch information