mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Gradle: execute the genSources task only when necessary
Rebuilds where only elements in app/ where changed no longer re-generate the entity java files.
This commit is contained in:
committed by
José Rebelo
parent
414d266666
commit
303d01530f
@@ -22,6 +22,9 @@ sourceSets {
|
||||
application.mainClass = "nodomain.freeyourgadget.gadgetbridge.daogen.GBDaoGenerator"
|
||||
|
||||
tasks.register('genSources', JavaExec) {
|
||||
inputs.dir(file("src"))
|
||||
outputs.dir(project.rootProject.file("app/src/main/java"))
|
||||
|
||||
mainClass = application.mainClass
|
||||
classpath = sourceSets.main.runtimeClasspath
|
||||
workingDir = '../'
|
||||
|
||||
Reference in New Issue
Block a user