Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CQL combo 2.0.0 Upgrade - Full PD$apply implementation #1603

Merged
merged 87 commits into from
Oct 10, 2022
Merged
Show file tree
Hide file tree
Changes from 85 commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
e131ff4
Migrating to CQL Evaluator 2.0
vitorpamplona Sep 6, 2022
d147c35
Migrating HAPI to 6.0
vitorpamplona Sep 12, 2022
3248a8a
Java 11 Migration
vitorpamplona Sep 12, 2022
5569ed1
Moving workflow test files to a new module in order to share them wit…
vitorpamplona Sep 12, 2022
2d5d674
Restructuring dependencies for the new Engine 2.0
vitorpamplona Sep 12, 2022
0337ab7
Changing minSdk to 26
vitorpamplona Sep 12, 2022
aab0d31
Adjusting tests to not run with <26.
vitorpamplona Sep 12, 2022
9907cd4
Ignoring ANCIND-based tests until CQF tooling with Translator 2.0
vitorpamplona Sep 12, 2022
6e9bd62
Running tests on minSDK 26
vitorpamplona Sep 12, 2022
af028af
Removing desugaring
vitorpamplona Sep 13, 2022
a6b719a
Adding an XMLAssertion method
vitorpamplona Sep 13, 2022
0c722ff
Tests must be done in the strict mode.
vitorpamplona Sep 13, 2022
3b8fcda
Removing the translatorVersion from test assertions
vitorpamplona Sep 13, 2022
67fa1a5
removing desugaring from the engine
vitorpamplona Sep 13, 2022
64561a4
Fixing Base64 representations
vitorpamplona Sep 13, 2022
cdd086a
Merge remote-tracking branch 'origin/HEAD' into evaluator-2.0
vitorpamplona Sep 13, 2022
9bf4175
Removing desugaring comments
vitorpamplona Sep 14, 2022
d01ead9
Improve Exception handling when compiling CQL in test cases.
vitorpamplona Sep 15, 2022
88e8de6
Merge remote-tracking branch 'origin/HEAD' into evaluator-2.0
vitorpamplona Sep 15, 2022
a7e4228
Saving the results of the group measure as a json
vitorpamplona Sep 15, 2022
b6eb6ad
Removing the date of evaluation from the test case
vitorpamplona Sep 15, 2022
0d6ad97
spotlessApply
vitorpamplona Sep 15, 2022
f9670ad
Updating ANCIND bundle with Translator 2.0 export (fixes annotation w…
vitorpamplona Sep 15, 2022
9cf7f55
Fixes Group Measure.
vitorpamplona Sep 15, 2022
b2fe2e6
Adding the JSON result for Population Measure report and deleting har…
vitorpamplona Sep 15, 2022
684e324
Updating the subject measure report to match SDE design changes on ht…
vitorpamplona Sep 15, 2022
29445da
spotless apply
vitorpamplona Sep 15, 2022
4745621
Static import of Assert.fail
vitorpamplona Sep 16, 2022
c63b30a
Using Truth in the XMLAssert
vitorpamplona Sep 16, 2022
68a2412
spotlessApply
vitorpamplona Sep 16, 2022
8c82c0b
avoid * imports
vitorpamplona Sep 16, 2022
deab541
Fluent CqlBuilder and Tester
vitorpamplona Sep 16, 2022
1bca144
Turning PlanDefinition test interface into fluent
vitorpamplona Sep 16, 2022
9f22ab6
Reorganizing package names
vitorpamplona Sep 16, 2022
116050a
Merge remote-tracking branch 'origin/HEAD' into evaluator-2.0
vitorpamplona Sep 16, 2022
69e86f1
Fixing FhirDal in Kotlin
vitorpamplona Sep 16, 2022
10dba37
Minor refactoring
vitorpamplona Sep 16, 2022
5e42a28
Removing unused method
vitorpamplona Sep 17, 2022
4c59069
adding memory to the android device tests because of the new large te…
vitorpamplona Sep 17, 2022
743dc98
Moving kokoro to minSDK 26
vitorpamplona Sep 17, 2022
ee4a77b
Fixing timezone to GMT for tests.
vitorpamplona Sep 17, 2022
0340d49
Using static import
vitorpamplona Sep 18, 2022
11fc5e2
testing a large heap for Android connected Tests
vitorpamplona Sep 18, 2022
354358c
There shouldn't be a need for specific memory sizes here.
vitorpamplona Sep 18, 2022
7b5c0cc
Removing desugaring libs import and removing jdk7 stdlib adaptations
vitorpamplona Sep 19, 2022
cde91ab
Adding additional documentation for the choice of minSDK 26
vitorpamplona Sep 20, 2022
6f88e54
Merge remote-tracking branch 'origin/HEAD' into evaluator-2.0
vitorpamplona Sep 20, 2022
158c302
spotless apply
vitorpamplona Sep 20, 2022
30d39c7
Fixing the immunization Check test cases. (Wrong Context was causing …
vitorpamplona Sep 22, 2022
b9ba52a
Removing duplicated test resources
vitorpamplona Sep 22, 2022
0cdae3f
Fixing documentation about Jackson -> Json
vitorpamplona Sep 22, 2022
a365c09
Fixing the null terminology provider inside the retrieve proviver
vitorpamplona Sep 22, 2022
182c54a
Spotless Apply
vitorpamplona Sep 22, 2022
e52202e
Fixing resource files and activating the old GenerateCarePlan test
vitorpamplona Sep 22, 2022
2091a4c
Making sure the terminology provider behaves just like the desktop ve…
vitorpamplona Sep 22, 2022
10b2f3d
Finishing the Retrieve Provider:
vitorpamplona Sep 22, 2022
51b1208
Spotless Apply
vitorpamplona Sep 22, 2022
02c30e1
Merge remote-tracking branch 'origin/HEAD' into evaluator-2.0
vitorpamplona Sep 22, 2022
cd929b6
Forcing new version of JUnit on the datacapture
vitorpamplona Sep 22, 2022
810d57e
Correctly triggering exceptions on unsupported valueSet resolving
vitorpamplona Sep 22, 2022
5ce6f45
Adding a simple FhirPath test case to make sure functions are availab…
vitorpamplona Sep 22, 2022
39323ec
Merge
vitorpamplona Sep 26, 2022
3804ee5
Separating workflow's SDK from engine and SDC SDK
vitorpamplona Sep 26, 2022
cc8a9ef
Reactivating desugaring for the datacapture, catalog and engine modules.
vitorpamplona Sep 26, 2022
c41f5d8
Force compatibility with Java 1.8
vitorpamplona Sep 26, 2022
8b3d8e4
Adding desugaring to the demo module
vitorpamplona Sep 26, 2022
b156364
Running tests on 24 for Engine and SDC and 26+ for the workflow.
vitorpamplona Sep 26, 2022
c6fcb55
Spotless apply
vitorpamplona Sep 26, 2022
6410470
Updating kokoro to test engine+sdc on 24 and workflow on min 26.
vitorpamplona Sep 26, 2022
c98de32
Deleting println
vitorpamplona Sep 30, 2022
542be15
Remove unnecessary import
vitorpamplona Sep 30, 2022
baa2607
Updating CQL Translator to 2.2
vitorpamplona Sep 30, 2022
9841964
Removing the Translator's outdated module fhir-r4
vitorpamplona Sep 30, 2022
4dacafa
Migrating FhirLibrarySourceProvider to the new package
vitorpamplona Sep 30, 2022
0429a8e
Moving CQL Engine to 2.1
vitorpamplona Sep 30, 2022
88b1312
Excluding the Engine 2.1's new XPP3 stack for the UCUM parser
vitorpamplona Sep 30, 2022
e549c40
Migrating Evaluator to 2.1
vitorpamplona Sep 30, 2022
b4a04eb
Removing unused QDM module
vitorpamplona Sep 30, 2022
da8603f
Merge remote-tracking branch 'origin/HEAD' into evaluator-2.0
vitorpamplona Sep 30, 2022
fb7c4b9
Merge branch 'master' into evaluator-2.0
dubdabasoduba Oct 3, 2022
498cb0b
Merge branch 'master' into evaluator-2.0
vitorpamplona Oct 5, 2022
e6960bc
Applying the new version of Spotless
vitorpamplona Oct 6, 2022
171b093
Everything passes locally. Triggering new tests on GitHub
vitorpamplona Oct 6, 2022
948d90b
Merge remote-tracking branch 'origin/HEAD' into evaluator-2.0
vitorpamplona Oct 6, 2022
97b5d9a
Reverting tests to run only against Android 9 Pie (API 28)
vitorpamplona Oct 6, 2022
80e5d6c
Reverting spotless apply changes to copyright year
vitorpamplona Oct 7, 2022
4a97915
Merge remote-tracking branch 'origin/HEAD' into evaluator-2.0
vitorpamplona Oct 10, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ dependencies {

implementation("com.spotify.ruler:ruler-gradle-plugin:1.2.1")

implementation("ca.uhn.hapi.fhir:hapi-fhir-structures-r4:5.4.0")
implementation("ca.uhn.hapi.fhir:hapi-fhir-structures-r4:6.0.1")
implementation("com.squareup:kotlinpoet:1.9.0")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.10")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.21")
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.6.10")
}
70 changes: 43 additions & 27 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,36 @@ object Dependencies {
}

object Cql {
const val evaluator = "org.opencds.cqf.cql:evaluator:${Versions.Cql.evaluator}"
const val evaluatorBuilder = "org.opencds.cqf.cql:evaluator.builder:${Versions.Cql.evaluator}"
const val evaluatorDagger = "org.opencds.cqf.cql:evaluator.dagger:${Versions.Cql.evaluator}"
const val evaluatorPlanDef =
"org.opencds.cqf.cql:evaluator.plandefinition:${Versions.Cql.evaluator}"
const val openCdsGroup = "org.opencds.cqf.cql"
const val translatorGroup = "info.cqframework"

// Remove this after this issue has been fixed:
// https://github.com/cqframework/clinical_quality_language/issues/799
const val antlr4Runtime = "org.antlr:antlr4-runtime:${Versions.Cql.antlr}"

const val engine = "$openCdsGroup:engine:${Versions.Cql.engine}"
const val engineJackson = "$openCdsGroup:engine.jackson:${Versions.Cql.engine}"

const val evaluator = "$openCdsGroup:evaluator:${Versions.Cql.evaluator}"
const val evaluatorBuilder = "$openCdsGroup:evaluator.builder:${Versions.Cql.evaluator}"
const val evaluatorDagger = "$openCdsGroup:evaluator.dagger:${Versions.Cql.evaluator}"
const val evaluatorPlanDef = "$openCdsGroup:evaluator.plandefinition:${Versions.Cql.evaluator}"
const val translatorCqlToElm = "$translatorGroup:cql-to-elm:${Versions.Cql.translator}"
const val translatorElm = "$translatorGroup:elm:${Versions.Cql.translator}"
const val translatorModel = "$translatorGroup:model:${Versions.Cql.translator}"

const val translatorElmJackson = "$translatorGroup:elm-jackson:${Versions.Cql.translator}"
const val translatorModelJackson = "$translatorGroup:model-jackson:${Versions.Cql.translator}"
}

object HapiFhir {
const val structuresR4 = "ca.uhn.hapi.fhir:hapi-fhir-structures-r4:${Versions.hapiFhir}"
const val validation = "ca.uhn.hapi.fhir:hapi-fhir-validation:${Versions.hapiFhir}"

// Runtime dependency that is required to run FhirPath (also requires minSDK of 26).
// Version 3.0 uses java.lang.System.Logger, which is not available on Android
// Replace for Guava when this PR gets merged: https://github.com/hapifhir/hapi-fhir/pull/3977
const val caffeine = "com.github.ben-manes.caffeine:caffeine:${Versions.caffeine}"
}

object Jackson {
Expand All @@ -49,13 +69,6 @@ object Dependencies {
const val databind = "com.fasterxml.jackson.core:jackson-databind:${Versions.jackson}"
}

object JavaJsonTools {
const val jacksonCoreUtils =
"com.github.java-json-tools:jackson-coreutils:${Versions.JavaJsonTools.jacksonCoreUtils}"
const val msgSimple =
"com.github.java-json-tools:msg-simple:${Versions.JavaJsonTools.msgSimple}"
}

object Kotlin {
const val kotlinCoroutinesAndroid =
"org.jetbrains.kotlinx:kotlinx-coroutines-android:${Versions.Kotlin.kotlinCoroutinesCore}"
Expand All @@ -64,7 +77,7 @@ object Dependencies {
const val kotlinTestJunit = "org.jetbrains.kotlin:kotlin-test-junit:${Versions.Kotlin.stdlib}"
const val kotlinCoroutinesTest =
"org.jetbrains.kotlinx:kotlinx-coroutines-test:${Versions.Kotlin.kotlinCoroutinesCore}"
const val stdlib = "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${Versions.Kotlin.stdlib}"
const val stdlib = "org.jetbrains.kotlin:kotlin-stdlib:${Versions.Kotlin.stdlib}"
}

object Lifecycle {
Expand Down Expand Up @@ -109,13 +122,13 @@ object Dependencies {
const val guava = "com.google.guava:guava:${Versions.guava}"
const val httpInterceptor = "com.squareup.okhttp3:logging-interceptor:${Versions.http}"
const val http = "com.squareup.okhttp3:okhttp:${Versions.http}"
const val stax = "javax.xml.stream:stax-api:${Versions.stax}"

const val jsonToolsPatch = "com.github.java-json-tools:json-patch:${Versions.jsonToolsPatch}"
const val kotlinPoet = "com.squareup:kotlinpoet:${Versions.kotlinPoet}"
const val material = "com.google.android.material:material:${Versions.material}"
const val sqlcipher = "net.zetetic:android-database-sqlcipher:${Versions.sqlcipher}"
const val timber = "com.jakewharton.timber:timber:${Versions.timber}"
const val woodstox = "org.codehaus.woodstox:woodstox-core-asl:${Versions.woodstox}"
const val woodstox = "com.fasterxml.woodstox:woodstox-core:${Versions.woodstox}"
const val xerces = "xerces:xercesImpl:${Versions.xerces}"

// Dependencies for testing go here
Expand All @@ -137,11 +150,16 @@ object Dependencies {
}

const val androidJunitRunner = "androidx.test.runner.AndroidJUnitRunner"
// Makes Json assertions where the order of elements, tabs/whitespaces are not important.
const val jsonAssert = "org.skyscreamer:jsonassert:${Versions.jsonAssert}"
const val junit = "junit:junit:${Versions.junit}"
const val mockitoKotlin = "org.mockito.kotlin:mockito-kotlin:${Versions.mockitoKotlin}"
const val mockitoInline = "org.mockito:mockito-inline:${Versions.mockitoInline}"
const val robolectric = "org.robolectric:robolectric:${Versions.robolectric}"
const val slf4j = "org.slf4j:slf4j-android:${Versions.slf4j}"
const val truth = "com.google.truth:truth:${Versions.truth}"
// Makes XML assertions where the order of elements, tabs/whitespaces are not important.
const val xmlUnit = "org.xmlunit:xmlunit-core:${Versions.xmlUnit}"

object Versions {
object Androidx {
Expand All @@ -160,12 +178,10 @@ object Dependencies {
}

object Cql {
const val evaluator = "1.4.2"
}

object JavaJsonTools {
const val jacksonCoreUtils = "2.0"
const val msgSimple = "1.2"
const val antlr = "4.10.1"
const val engine = "2.1.0"
const val evaluator = "2.1.0"
const val translator = "2.2.0"
}

object Kotlin {
Expand All @@ -175,24 +191,24 @@ object Dependencies {

const val androidFhirCommon = "0.1.0-alpha03"
const val desugarJdkLibs = "1.1.5"
const val caffeine = "2.9.1"
const val fhirUcum = "1.0.3"
const val guava = "28.2-android"
const val hapiFhir = "6.0.1"
const val http = "4.9.1"
// TODO: The next release of HAPI FHIR will hopefully have
// https://github.com/hapifhir/hapi-fhir/pull/3043 merged in. If it does, when we update, we
// should remove any excludes directives for "net.sf.saxon" across our build.gradle files.
const val jackson = "2.12.2"
const val jsonToolsPatch = "1.13"
const val jsonAssert = "1.5.1"
const val kotlinPoet = "1.9.0"
const val material = "1.6.0"
const val retrofit = "2.7.2"
const val stax = "1.0-2"
const val slf4j = "1.7.36"
const val sqlcipher = "4.5.0"
const val timber = "5.0.1"
const val truth = "1.0.1"
const val woodstox = "4.4.1"
const val xerces = "2.11.0"
const val woodstox = "6.2.7"
const val xerces = "2.12.2"
const val xmlUnit = "2.9.0"

// Test dependencies

Expand Down
39 changes: 39 additions & 0 deletions buildSrc/src/main/kotlin/Java.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import org.gradle.api.JavaVersion

/*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

object Java {
val sourceCompatibility = JavaVersion.VERSION_1_8
val targetCompatibility = JavaVersion.VERSION_1_8
val kotlinJvmTarget = JavaVersion.VERSION_1_8
}
61 changes: 27 additions & 34 deletions buildSrc/src/main/kotlin/LicenseeConfig.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -41,10 +41,6 @@ fun Project.configureLicensee() {
allowDependency("xpp3", "xpp3_xpath", "1.1.4c") {
because("Custom license, essentially BSD-5. https://fedoraproject.org/wiki/Licensing/xpp")
}
allowDependency("xpp3", "xpp3", "1.1.4c") {
because("Custom license, essentially BSD-5. https://fedoraproject.org/wiki/Licensing/xpp")
}

// json-patch and its transitive deps
allowDependency("com.github.java-json-tools", "btf", "1.3") {
because("Dual-licensed under Apache. https://github.com/java-json-tools/btf")
Expand All @@ -64,11 +60,18 @@ fun Project.configureLicensee() {
because("Custom license, essentially BSD-3. https://www.zetetic.net/sqlcipher/license/")
}

// JAXB https://github.com/eclipse-ee4j/jaxb-ri
// Jakarta XML Binding API
allowDependency("jakarta.xml.bind", "jakarta.xml.bind-api", "2.3.3") {
because("BSD 3-clause.")
}

// Jakarta Activation API 2.1 Specification
allowDependency("jakarta.activation", "jakarta.activation-api", "1.2.2") {
because(
"Licensed under Eclipse Distribution License 1.0. http://www.eclipse.org/org/documents/edl-v10.php"
)
}

// Javax Annotation API
allowDependency("javax.annotation", "javax.annotation-api", "1.3.2") {
because("Dual-licensed under CDDL 1.1 and GPL v2 with classpath exception.")
Expand All @@ -79,16 +82,27 @@ fun Project.configureLicensee() {
because("Dual-licensed under CDDL 1.0 and GPL v3.")
}

// ANTLR 4
allowDependency("org.antlr", "antlr4-runtime", "4.9.1") {
// xml-commons
allowDependency("xml-apis", "xml-apis", "1.4.01") {
because("Licensed under Mozilla Public License Version 2.0. http://www.mozilla.org/MPL/2.0/")
}

// The XSLT and XQuery Processor
allowDependency("net.sf.saxon", "Saxon-HE", "9.8.0-15") {
because("BSD 3-clause. http://www.antlr.org/license.html")
}

// JSON-P https://javaee.github.io/jsonp/
allowDependency("org.glassfish", "javax.json", "1.1.4") {
because(
"Dual-licensed under CDDL 1.1 and GPL v2 with classpath exception. https://oss.oracle.com/licenses/CDDL+GPL-1.1"
)
// ANTLR 4
allowDependency("org.antlr", "antlr-runtime", "3.5.3") {
because("BSD 3-clause. http://www.antlr.org/license.html")
}
// ANTLR 4
allowDependency("org.antlr", "antlr4-runtime", "4.10.1") {
because("BSD 3-clause. http://www.antlr.org/license.html")
}
// ANTLR 4
allowDependency("org.antlr", "antlr4", "4.10.1") {
because("BSD 3-clause. http://www.antlr.org/license.html")
}

// Utilities
Expand Down Expand Up @@ -135,27 +149,6 @@ fun Project.configureLicensee() {
// Vision Common
// https://developers.google.com/android/reference/com/google/mlkit/vision/common/package-summary
allowDependency("com.google.mlkit", "vision-internal-vkp", "18.0.0") { because("") }

// Eclipse persistence
allowDependency("org.eclipse.persistence", "org.eclipse.persistence.asm", "2.7.7") {
because(
"Temporary dependency. Will be removed in https://github.com/cqframework/clinical_quality_language/pull/752"
)
}

// Eclipse persistence
allowDependency("org.eclipse.persistence", "org.eclipse.persistence.core", "2.7.7") {
because(
"Temporary dependency. Will be removed in https://github.com/cqframework/clinical_quality_language/pull/752"
)
}

// Eclipse persistence
allowDependency("org.eclipse.persistence", "org.eclipse.persistence.moxy", "2.7.7") {
because(
"Temporary dependency. Will be removed in https://github.com/cqframework/clinical_quality_language/pull/752"
)
}
}
}

Expand Down
12 changes: 4 additions & 8 deletions catalog/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,11 @@ android {
// Flag to enable support for the new language APIs
// See https://developer.android.com/studio/write/java8-support
isCoreLibraryDesugaringEnabled = true
// Sets Java compatibility to Java 8
// See https://developer.android.com/studio/write/java8-support
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
// See https://developer.android.com/studio/write/java8-support
jvmTarget = "1.8"

sourceCompatibility = Java.sourceCompatibility
targetCompatibility = Java.targetCompatibility
}
kotlinOptions { jvmTarget = Java.kotlinJvmTarget.toString() }
}

dependencies {
Expand Down
6 changes: 3 additions & 3 deletions codelabs/datacapture/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ android {
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = Java.sourceCompatibility
targetCompatibility = Java.targetCompatibility
}
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = Java.kotlinJvmTarget.toString()
}
}

Expand Down
6 changes: 3 additions & 3 deletions common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ android {
targetSdk = Sdk.targetSdk
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = Java.sourceCompatibility
targetCompatibility = Java.targetCompatibility
}
kotlinOptions { jvmTarget = JavaVersion.VERSION_1_8.toString() }
kotlinOptions { jvmTarget = Java.kotlinJvmTarget.toString() }
configureJacocoTestOptions()
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
14 changes: 3 additions & 11 deletions contrib/barcode/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,10 @@ android {
}
}
compileOptions {
// Flag to enable support for the new language APIs
// See https://developer.android.com/studio/write/java8-support
isCoreLibraryDesugaringEnabled = false
// Sets Java compatibility to Java 8
// See https://developer.android.com/studio/write/java8-support
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
// See https://developer.android.com/studio/write/java8-support
jvmTarget = JavaVersion.VERSION_1_8.toString()
sourceCompatibility = Java.sourceCompatibility
targetCompatibility = Java.targetCompatibility
}
kotlinOptions { jvmTarget = Java.kotlinJvmTarget.toString() }
packagingOptions { resources.excludes.addAll(listOf("META-INF/INDEX.LIST")) }
configureJacocoTestOptions()

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 Google LLC
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Loading