mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
Remove unnecessary jar destinationDir from Gradle build script
- 1. not needed as in dev environment IDE's and from commandline gradlew run should/is be used to run YaCy (instead of startYACY) and Gradle makes sure yacycore.jar is on classpath - 2. creates problem on compile if in source AND htroot some code has changed as old yacycore.jar remains in lib (not removed by clean)
This commit is contained in:
parent
5a65133da4
commit
3208b2a54c
|
@ -139,7 +139,6 @@ configurations.implementation {
|
|||
// output to lib/yacycore.jar (like with ant with downside by determine class-path)
|
||||
jar {
|
||||
archiveFileName = 'yacycore.jar'
|
||||
destinationDirectory = new File('lib')
|
||||
manifest {
|
||||
attributes(
|
||||
"Main-Class": mainClassName ,
|
||||
|
@ -187,7 +186,7 @@ compileJava.dependsOn(prepYaCyProperties) // must be executed before compile (du
|
|||
// implement ant task to simulate old Ant build for htroot,
|
||||
// to avoid import of complete build.xml (as currently used)
|
||||
task compileHtrootServlets (dependsOn: ['jar']) {
|
||||
if (file('lib/yacycore.jar').exists()) { // prevent buildscript failing on prime build with fresh git clone due to javac error during gradle init
|
||||
if (file(jar.archiveFile).exists()) { // prevent buildscript failing on prime build with fresh git clone due to javac error during gradle init
|
||||
ant {
|
||||
path(id:'project.class.path') {
|
||||
// place yacycore.jar on classpath (not automatically done)
|
||||
|
|
Loading…
Reference in New Issue
Block a user