-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix runJosm task, copy the plugin *.jar regardless of name
- Loading branch information
Showing
2 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
apply from: buildscript.sourceFile.parentFile.path + '/run-josm-config.gradle' | ||
apply from: buildscript.sourceFile.parentFile.path + '/run-josm-tasks.gradle' | ||
|
||
task updatePluginDependencies(type: Copy) { | ||
from configurations.requiredPlugin | ||
into "$tmpJosmHome/plugins" | ||
rename('(.*)-\\.jar', '$1.jar') | ||
} | ||
|
||
task updateCurrentPlugin(type: Copy) { | ||
description 'Puts the plugin-JAR generated by the `jar`-task into `build/.josm/`' | ||
dependsOn jar | ||
dependsOn initJosmPrefs | ||
from configurations.requiredPlugin | ||
from "$buildDir/libs/${project.name}.jar" | ||
dependsOn updatePluginDependencies | ||
from jar.outputs | ||
into "$tmpJosmHome/plugins" | ||
rename('(.*)-\\.jar', '$1.jar') | ||
rename(project.name, project.hasProperty('plugin.jar.name') ? project.property('plugin.jar.name') : project.name) | ||
rename('.*', project.hasProperty('plugin.jar.name') ? project.property('plugin.jar.name') : '$1') | ||
} | ||
updateJosmPlugins.dependsOn updateCurrentPlugin |