Skip to content

Commit

Permalink
Fix Java version to run on
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusAmshove committed Oct 16, 2022
1 parent 385570a commit 7dddc98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.gradle
Expand Up @@ -68,6 +68,10 @@ subprojects {
withSourcesJar()
}

def isAndroid = project.rootProject.hasProperty("ANDROID")
sourceCompatibility = isAndroid ? 1.6 : 1.8
targetCompatibility = isAndroid ? 1.6 : 1.8

publishing {
repositories {
maven {
Expand Down
3 changes: 3 additions & 0 deletions common/build.gradle
Expand Up @@ -10,6 +10,9 @@ dependencies {

configurePublishing()

sourceCompatibility = 1.6
targetCompatibility = 1.6

compileKotlinCommon {
kotlinOptions {
freeCompilerArgs += [
Expand Down

0 comments on commit 7dddc98

Please sign in to comment.