2020-08-14 17:46:36 -07:00
|
|
|
plugins {
|
2022-03-15 11:24:54 -07:00
|
|
|
id 'java-library'
|
2020-08-14 17:46:36 -07:00
|
|
|
}
|
|
|
|
|
2022-10-15 16:45:34 -07:00
|
|
|
apply from: '../../java_tools/dependencies.gradle'
|
|
|
|
|
2020-08-14 17:46:36 -07:00
|
|
|
configurations {
|
|
|
|
all*.exclude group: 'org.hamcrest', module: 'hamcrest-core'
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-10-15 16:45:34 -07:00
|
|
|
api global_libs.javaxJson
|
2022-10-15 11:48:42 -07:00
|
|
|
api project(':core_ui')
|
2020-08-14 17:46:36 -07:00
|
|
|
|
2022-10-15 20:45:58 -07:00
|
|
|
api global_libs.jcip
|
2022-10-15 15:13:04 -07:00
|
|
|
api global_libs.json
|
2022-07-13 23:32:21 -07:00
|
|
|
// not 'api' since Android would use own implementation
|
2022-07-28 12:41:49 -07:00
|
|
|
implementation ts_plugin_libs.httpclient
|
2020-08-14 17:46:36 -07:00
|
|
|
|
|
|
|
// junit 4.13 does not mix well with httpclient :(
|
|
|
|
testImplementation group: 'junit', name: 'junit', version: '4.8.2'
|
2022-10-15 15:56:28 -07:00
|
|
|
testImplementation global_libs.mockito
|
2022-10-15 16:55:07 -07:00
|
|
|
}
|
|
|
|
|
2022-11-01 07:45:07 -07:00
|
|
|
// yes nasty sorry
|
|
|
|
evaluationDependsOn(':core_ui')
|
|
|
|
evaluationDependsOn(':core_io')
|
|
|
|
|
|
|
|
jar {
|
2023-07-23 20:32:13 -07:00
|
|
|
base {
|
2023-12-15 09:59:05 -08:00
|
|
|
archivesName = 'rusefi_autoupdate'
|
2023-07-23 20:32:13 -07:00
|
|
|
}
|
2023-05-30 18:59:39 -07:00
|
|
|
destinationDirectory = file("$rootDir/../java_console_binary")
|
2022-11-01 07:45:07 -07:00
|
|
|
|
2022-11-26 06:29:16 -08:00
|
|
|
// lame 'shadowJar' manual implementation causes logo.png to be include both as source ans outputs? weird
|
2024-08-07 07:36:32 -07:00
|
|
|
// todo: why do we not use proper shadowJar here?
|
2022-11-26 06:29:16 -08:00
|
|
|
duplicatesStrategy = DuplicatesStrategy.WARN
|
2022-11-01 07:45:07 -07:00
|
|
|
from project.sourceSets.main.allSource
|
|
|
|
from project(':core_ui').sourceSets.main.output
|
|
|
|
from project(":core_io").sourceSets.main.output
|
2024-08-07 07:36:32 -07:00
|
|
|
from project(':logging-api').sourceSets.main.output
|
2022-11-01 07:45:07 -07:00
|
|
|
|
2022-10-15 16:55:07 -07:00
|
|
|
manifest {
|
|
|
|
attributes(
|
2023-07-03 21:16:08 -07:00
|
|
|
'Main-Class': 'com.rusefi.autoupdate.Autoupdate',
|
2024-11-01 09:18:30 -07:00
|
|
|
'Build-Jdk' : "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
|
2023-07-03 21:16:08 -07:00
|
|
|
'Built-Date': new Date().toString()
|
2022-10-15 16:55:07 -07:00
|
|
|
)
|
|
|
|
}
|
2023-12-15 09:59:05 -08:00
|
|
|
}
|