From 333fe9f805d92fc0902ed91fa193e7b3310def50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Sat, 10 Aug 2024 23:28:08 +0100 Subject: [PATCH] GBDaoGenerator: Fix some build warnings --- GBDaoGenerator/build.gradle | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/GBDaoGenerator/build.gradle b/GBDaoGenerator/build.gradle index 4b36de942..51090129f 100644 --- a/GBDaoGenerator/build.gradle +++ b/GBDaoGenerator/build.gradle @@ -3,11 +3,9 @@ apply plugin: 'maven-publish' apply plugin:'application' archivesBaseName = 'gadgetbridge-daogenerator' -//version = '0.9.2-SNAPSHOT' dependencies { -// implementation 'org.greenrobot:greendao-generator:2.2.0' -// implementation project(":DaoGenerator") + // https://github.com/Freeyourgadget/greenDAO/tree/fyg implementation 'com.github.Freeyourgadget:greendao:1998d7cd2d21f662c6044f6ccf3b3a251bbad341' } @@ -21,8 +19,8 @@ sourceSets { mainClassName = "nodomain.freeyourgadget.gadgetbridge.daogen.GBDaoGenerator" -task genSources(type: JavaExec) { - main = mainClassName +tasks.register('genSources', JavaExec) { + mainClass = mainClassName classpath = sourceSets.main.runtimeClasspath workingDir = '../' } @@ -30,8 +28,11 @@ task genSources(type: JavaExec) { artifacts { 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") { duplicatesStrategy = 'include'