Let's admit it it's time to move to gradle #3014

autoupdate fix
This commit is contained in:
rusefillc 2022-11-01 10:45:07 -04:00
parent 6dcb666e8d
commit ce3dc70c89
3 changed files with 13 additions and 8 deletions

View File

@ -1,6 +1,4 @@
build_hw
autoupdate_build
rusefi_autoupdate.jar
logs/
rusefi_console_properties.xml
generated*.cpp
@ -8,7 +6,6 @@ currenttune.msq
output.msq
rusefi.ini
openocd
DfuSe
rusefi_*.*
triggers
unit_test*.xml

View File

@ -1,12 +1,9 @@
plugins {
id 'java-library'
id 'com.github.johnrengelman.shadow' version '6.1.0'
}
apply from: '../../java_tools/dependencies.gradle'
defaultTasks 'shadowJar'
configurations {
all*.exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
@ -27,7 +24,18 @@ dependencies {
testImplementation global_libs.mockito
}
shadowJar {
// yes nasty sorry
evaluationDependsOn(':core_ui')
evaluationDependsOn(':core_io')
jar {
archivesBaseName = 'rusefi_autoupdate'
destinationDir = file("$rootDir/../java_console_binary")
from project.sourceSets.main.allSource
from project(':core_ui').sourceSets.main.output
from project(":core_io").sourceSets.main.output
manifest {
attributes(
'Main-Class': 'com.rusefi.autoupdate.Autoupdate'

View File

@ -52,7 +52,7 @@ else
cp $RUSEFI_CONSOLE_SETTINGS $CONSOLE_FOLDER
fi
cp java_console/rusefi_autoupdate.jar $CONSOLE_FOLDER
cp java_console_binary/rusefi_autoupdate.jar $CONSOLE_FOLDER
cp java_console_binary/rusefi_console.jar $CONSOLE_FOLDER
cp java_tools/ts_plugin_launcher/build/jar/rusefi_ts_plugin_launcher.jar $FOLDER
cp simulator/build/rusefi_simulator.exe $CONSOLE_FOLDER