Skip to content

Commit

Permalink
Update to Java 17, sync Android signature settings with FHIR SDK (#1442)
Browse files Browse the repository at this point in the history
* Update to Java 17, sync Android signature settings with FHIR SDK

* Switch to advanced CodeQL

* Tweaking source location

* Try autobuilding

* More tweaking the build
  • Loading branch information
JPercival authored Nov 15, 2024
1 parent 6af4b68 commit 935ef51
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 10 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "CodeQL Advanced"

on:
push:
branches: [ "master" ]
paths:
- "Src/java/**"
pull_request:
branches: [ "master" ]
paths:
- "Src/java/**"
schedule:
- cron: '36 15 * * 1'

jobs:
CodeQLBuild:
runs-on: 'ubuntu-latest'
permissions:
security-events: write
packages: read
actions: read
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'gradle'

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: java-kotlin
source-root: Src/java
- name: Autobuild CodeQL
uses: github/codeql-action/autobuild@v3
with:
working-directory: Src/java

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:java-kotlin"
6 changes: 1 addition & 5 deletions Src/java/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ repositories {
mavenCentral()
}

dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
}

kotlin {
jvmToolchain(11)
jvmToolchain(17)
}
4 changes: 2 additions & 2 deletions Src/java/buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ repositories {

dependencies {
implementation("net.ltgt.gradle:gradle-errorprone-plugin:3.1.0")
implementation("ru.vyarus:gradle-animalsniffer-plugin:1.7.0")
implementation("ru.vyarus:gradle-animalsniffer-plugin:1.7.1")
implementation("com.github.spotbugs.snom:spotbugs-gradle-plugin:5.0.14")
implementation("com.diffplug.spotless:spotless-plugin-gradle:6.23.3")
}

kotlin {
jvmToolchain(11)
jvmToolchain(17)
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ java {
withJavadocJar()
withSourcesJar()
toolchain {
languageVersion = JavaLanguageVersion.of(11)
languageVersion = JavaLanguageVersion.of(17)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {

dependencies {
// Various libraries for Android signatures are available, Jackson uses this one
signature("com.toasttab.android:gummy-bears-api-${project.findProperty("android.api.level")}:0.5.0@signature")
signature("com.toasttab.android:gummy-bears-api-${project.findProperty("android.api.level")}:0.10.0:coreLib2@signature")
}

tasks.animalsnifferTest {
Expand Down
2 changes: 1 addition & 1 deletion Src/java/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ specification.version=1.5.2
hapi.version=7.4.5
jackson.version=2.17.1
antlr.version=4.13.1
android.api.level=28
android.api.level=26

0 comments on commit 935ef51

Please sign in to comment.