Files
sailing-analytics/build.gradle
T
Axel Uhl 024d1d65be hyperspace: raise Gradle Java source/target from 8 to 17
JDK 21 flagged source/target 8 as obsolete. The Gradle app build already
runs under JDK 17 (buildAndUpdateProduct.sh / release.yml), and AGP 8.7
permits Java 17, so bump sourceCompatibility/targetCompatibility and the
ext compat vars to 17. This covers the 4 mobile modules and the 8 java/
library subprojects compiled by Gradle; the separate Tycho/Maven OSGi
build is unaffected (its BREE pins it to Java 8 independently).

Assisted-By: Claude (claude-opus-5-5)
2026-10-06 11:34:23 +02:00

85 lines
1.9 KiB
Groovy
Executable File

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
if (project.hasProperty("xmake")) {
repositories {
maven {
url commonRepoURL
}
}
} else {
repositories {
mavenCentral()
google()
}
}
dependencies {
classpath 'com.android.tools.build:gradle:8.13.2'
classpath "org.ajoberstar.grgit:grgit-core:5.3.0"
}
}
plugins {
id 'org.ajoberstar.grgit' version '5.3.0'
}
allprojects {
if (project.hasProperty("xmake")) {
repositories {
maven {
url commonRepoURL
}
}
} else {
repositories {
mavenCentral()
google()
}
}
version = "1.0.0-SNAPSHOT"
tasks.withType(JavaCompile) {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
options.encoding = "UTF-8"
}
defaultTasks "clean", "assemble"
}
// dependency versions for all sub modules
ext {
// regular
buildTools = "36.0.0"
compileSdk = 36
minSdk = 16
targetSdk = 36
sourceCompatibilityVersion = JavaVersion.VERSION_17
targetCompatibilityVersion = JavaVersion.VERSION_17
support = "27.1.1"
play_services_maps = "17.0.1"
play_services_location = "21.0.1"
play_services_vision = "19.0.0"
license_dialog = "1.8.0"
// testing - jvm
junit = "4.12"
mockito = "5.8.0"
// testing - ui
test = "0.2"
espresso = "2.1"
isXmakeBuild = project.hasProperty("xmake")
isReleaseBuild = Boolean.parseBoolean(System.env.XMAKE_RELEASE_BUILD)
destinationFolder = project.rootDir.absolutePath + "/java/com.sap.sailing.www/apps/"
}
if (project.hasProperty("xmake")) {
wrapper {
distributionUrl "${sapGradleDistBaseUrl}/${sapGradleVersion}/gradle-${sapGradleVersion}-all.zip"
}
}