spring_reference/VIII. Build tool plugins/60.4. Example repackage imp...

15 lines
536 B
Markdown
Raw Normal View History

### 60.4. repackage实现示例
这里是一个传统的repackage示例
```java
Repackager repackager = new Repackager(sourceJarFile);
repackager.setBackupSource(false);
repackager.repackage(new Libraries() {
@Override
public void doWithLibraries(LibraryCallback callback) throws IOException {
// Build system specific implementation, callback for each dependency
// callback.library(new Library(nestedFile, LibraryScope.COMPILE));
}
});
```