Skip to content

Commit

Permalink
fix: make theme plugin as fatJar
Browse files Browse the repository at this point in the history
omegat-org#513 topic branch is merged, but it was proposed long before the module mechanism improvement omegat-org#742.
The change tweaks the theme module is built as fatJar.

Signed-off-by: Hiroshi Miura <[email protected]>
  • Loading branch information
miurahr committed Oct 7, 2023
1 parent 44b8e47 commit ac1b0d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ dependencies {
}

// Platform integration with Windows and macOS
implementation "net.java.dev.jna:jna-platform:5.13.0"
implementation('de.jangassen:jfa:1.2.0') {
implementation(libs.jna)
implementation(libs.jfa) {
exclude module: 'jna'
}
}
Expand Down
4 changes: 4 additions & 0 deletions theme/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ dependencies {
jar {
archiveAppendix.set("omegat")
destinationDirectory.set(new File(rootProject.buildDir, "modules"))
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from configurations.runtimeClasspath.collect {
it.isDirectory() ? it : zipTree(it)
}
def pluginProp = loadProperties(file('plugin.properties'))
manifest {
attributes('License': 'GNU Public License version 3 or later',
Expand Down

0 comments on commit ac1b0d2

Please sign in to comment.