-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Removing toolchain #1526
base: main
Are you sure you want to change the base?
Removing toolchain #1526
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few general notes:
-
jvmToolchain
acts as a default forsourceCompatibility
,targetCompatibility
, andjvmTarget
. If we usedjvmToolchain
, the others aren't needed. (Which is one reason I likedjvmToolchain
- one place to specify) -
If we don't have
jvmToolchain
orjvmTarget
, Kotlin defaults to target 1.8. So whenjvmToolchain
is removed,jvmTarget
must be added if not there. (Some scripts had already it) -
Some files didn't have
jvmToolchain
and it looks like you accidentally removedjvmTarget
-
A nit - one script uses
jvmTarget = JavaVersion.VERSION_17.majorVersion
I'd just change that to "17"
@@ -74,9 +74,6 @@ android { | |||
sourceCompatibility = JavaVersion.VERSION_17 | |||
targetCompatibility = JavaVersion.VERSION_17 | |||
} | |||
kotlinOptions { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep this or kotlin will default to 1.8
@@ -77,10 +77,6 @@ android { | |||
} | |||
} | |||
|
|||
kotlin { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add
kotlinOptions {
jvmTarget = "17"
}
or it will default to 1.8
@@ -29,9 +29,7 @@ android { | |||
targetCompatibility = JavaVersion.VERSION_17 | |||
} | |||
} | |||
kotlin { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing jvmTarget (see other comments)
@@ -31,9 +31,7 @@ android { | |||
targetCompatibility = JavaVersion.VERSION_17 | |||
} | |||
} | |||
kotlin { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing jvmTarget (see other comments)
@@ -36,9 +36,6 @@ android { | |||
} | |||
} | |||
} | |||
kotlin { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing jvmTarget (see other comments)
@@ -81,9 +81,7 @@ android { | |||
} | |||
} | |||
} | |||
kotlin { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing jvmTarget (see other comments)
@@ -69,9 +69,7 @@ android { | |||
} | |||
} | |||
} | |||
kotlin { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(ok - jvmTarget is specified above)
@@ -79,9 +79,6 @@ android { | |||
} | |||
} | |||
|
|||
kotlin { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing jvmTarget (see other comments)
@@ -78,8 +78,6 @@ android { | |||
targetCompatibility = JavaVersion.VERSION_17 | |||
} | |||
|
|||
kotlinOptions { jvmTarget = "17" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep this
@@ -93,9 +93,6 @@ android { | |||
compose = true | |||
} | |||
} | |||
kotlin { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(ok - jvmTarget specified above)
No description provided.