1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-09 03:37:03 +01:00

GBDaoGenerator: Fix some build warnings

This commit is contained in:
José Rebelo 2024-08-10 23:28:08 +01:00
parent 9ca561a30a
commit 333fe9f805

View File

@ -3,11 +3,9 @@ apply plugin: 'maven-publish'
apply plugin:'application' apply plugin:'application'
archivesBaseName = 'gadgetbridge-daogenerator' archivesBaseName = 'gadgetbridge-daogenerator'
//version = '0.9.2-SNAPSHOT'
dependencies { dependencies {
// implementation 'org.greenrobot:greendao-generator:2.2.0' // https://github.com/Freeyourgadget/greenDAO/tree/fyg
// implementation project(":DaoGenerator")
implementation 'com.github.Freeyourgadget:greendao:1998d7cd2d21f662c6044f6ccf3b3a251bbad341' implementation 'com.github.Freeyourgadget:greendao:1998d7cd2d21f662c6044f6ccf3b3a251bbad341'
} }
@ -21,8 +19,8 @@ sourceSets {
mainClassName = "nodomain.freeyourgadget.gadgetbridge.daogen.GBDaoGenerator" mainClassName = "nodomain.freeyourgadget.gadgetbridge.daogen.GBDaoGenerator"
task genSources(type: JavaExec) { tasks.register('genSources', JavaExec) {
main = mainClassName mainClass = mainClassName
classpath = sourceSets.main.runtimeClasspath classpath = sourceSets.main.runtimeClasspath
workingDir = '../' workingDir = '../'
} }
@ -30,8 +28,11 @@ task genSources(type: JavaExec) {
artifacts { artifacts {
archives jar archives jar
} }
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7 java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.named("distTar") { tasks.named("distTar") {
duplicatesStrategy = 'include' duplicatesStrategy = 'include'