https://github.com/braun-steven/weka-package-template
Template for Custom Weka Packages
https://github.com/braun-steven/weka-package-template
weka weka-library weka-package
Last synced: 29 days ago
JSON representation
Template for Custom Weka Packages
- Host: GitHub
- URL: https://github.com/braun-steven/weka-package-template
- Owner: braun-steven
- License: gpl-3.0
- Created: 2018-07-09T17:23:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-10T10:05:04.000Z (almost 7 years ago)
- Last Synced: 2025-02-10T00:39:44.116Z (3 months ago)
- Topics: weka, weka-library, weka-package
- Language: Java
- Size: 71.3 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Weka Package Template
This repository serves as template for custom Weka packages.## Template Structure
### Dependencies
If the package depends on a third party library which is available via maven,
it can be added in the `build.gradle` dependency section:
```groovy
dependencies {
implementation group:"group-id", name:"artifact-id", version:"version"
}
```
### Tests
JUnit test cases that reside in `src/test/java` can be started by running:
```bash
$ ./gradlew test
```### Generating an Installable Zip File
The Gradle build script provides the task `makeZip` to generate a zip file in
`./dist/` via:```bash
$ ./gradlew makeZip
```#### ZIP content
The zip content is as follows:
```
.
├── Description.props
├── GenericPropertiesCreator.props
├── GUIEditors.props
├── lib
│ ├── ...
│ └── ...
├── src
│ └── main
│ └── java
│ └── weka
│ └── ...
└── weka-package-name-0.1.0.jar
```If further files need to be included/excluded, the `copyMisc` task has to be
extended with additional `include` and `exclude` statements.#### Excluding Unnecessary Transitive Dependencies
The `lib` directory contains all dependencies specified in the `gradle.build` file. If, for some reason, a certain jar file is included in the `lib` directory that
is not needed during runtime, it is possible to simply add an `exclude` statement
in the `copyLibs` gradle task.