Commit 7a3ebe64e426818ae617ace4040a0985ac827957
1 parent
8ef93735
fix: installToDev copies only current JAR, not accumulated old versions
Showing
1 changed file
with
1 additions
and
2 deletions
reference-customer/plugin-printing-shop/build.gradle.kts
| @@ -62,9 +62,8 @@ tasks.jar { | @@ -62,9 +62,8 @@ tasks.jar { | ||
| 62 | // PF4J trying to load two copies of the same plug-in. | 62 | // PF4J trying to load two copies of the same plug-in. |
| 63 | val installToDev by tasks.registering(Copy::class) { | 63 | val installToDev by tasks.registering(Copy::class) { |
| 64 | dependsOn(tasks.jar) | 64 | dependsOn(tasks.jar) |
| 65 | - from(layout.buildDirectory.dir("libs")) | 65 | + from(tasks.jar) |
| 66 | into(rootProject.layout.projectDirectory.dir("plugins-dev")) | 66 | into(rootProject.layout.projectDirectory.dir("plugins-dev")) |
| 67 | - include("plugin-printing-shop-*.jar") | ||
| 68 | doFirst { | 67 | doFirst { |
| 69 | // Wipe any previous copies to avoid stale-version collisions. | 68 | // Wipe any previous copies to avoid stale-version collisions. |
| 70 | val target = rootProject.layout.projectDirectory.dir("plugins-dev").asFile | 69 | val target = rootProject.layout.projectDirectory.dir("plugins-dev").asFile |