2016-03-27 22:13:06 +02:00
|
|
|
apply plugin: 'java'
|
2021-07-29 18:09:15 +02:00
|
|
|
apply plugin: 'maven-publish'
|
2016-03-27 22:13:06 +02:00
|
|
|
apply plugin:'application'
|
|
|
|
|
|
|
|
archivesBaseName = 'gadgetbridge-daogenerator'
|
|
|
|
|
|
|
|
dependencies {
|
2024-08-11 00:28:08 +02:00
|
|
|
// https://github.com/Freeyourgadget/greenDAO/tree/fyg
|
2020-08-02 03:56:40 +02:00
|
|
|
implementation 'com.github.Freeyourgadget:greendao:1998d7cd2d21f662c6044f6ccf3b3a251bbad341'
|
2016-03-27 22:13:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
java {
|
|
|
|
srcDir 'src'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-09 18:18:16 +02:00
|
|
|
mainClassName = "nodomain.freeyourgadget.gadgetbridge.daogen.GBDaoGenerator"
|
|
|
|
|
2024-08-11 00:28:08 +02:00
|
|
|
tasks.register('genSources', JavaExec) {
|
|
|
|
mainClass = mainClassName
|
2016-03-27 22:13:06 +02:00
|
|
|
classpath = sourceSets.main.runtimeClasspath
|
2016-04-09 18:18:16 +02:00
|
|
|
workingDir = '../'
|
2016-03-27 22:13:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives jar
|
|
|
|
}
|
2024-08-11 00:28:08 +02:00
|
|
|
|
|
|
|
java {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
}
|
2021-07-30 16:17:42 +02:00
|
|
|
|
|
|
|
tasks.named("distTar") {
|
|
|
|
duplicatesStrategy = 'include'
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named("distZip") {
|
|
|
|
duplicatesStrategy = 'include'
|
|
|
|
}
|