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

Removing toolchain #1526

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Removing toolchain #1526

wants to merge 1 commit into from

Conversation

riggaroo
Copy link
Collaborator

@riggaroo riggaroo commented Jan 8, 2025

No description provided.

@riggaroo riggaroo requested a review from a team as a code owner January 8, 2025 17:08
@riggaroo riggaroo requested review from dturner and javadude and removed request for dturner January 8, 2025 17:08
Copy link
Contributor

@javadude javadude left a 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 for sourceCompatibility, targetCompatibility, and jvmTarget. If we used jvmToolchain, the others aren't needed. (Which is one reason I liked jvmToolchain - one place to specify)

  • If we don't have jvmToolchain or jvmTarget, Kotlin defaults to target 1.8. So when jvmToolchain 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 removed jvmTarget

  • 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 {
Copy link
Contributor

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 {
Copy link
Contributor

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 {
Copy link
Contributor

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 {
Copy link
Contributor

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 {
Copy link
Contributor

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 {
Copy link
Contributor

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 {
Copy link
Contributor

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 {
Copy link
Contributor

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" }
Copy link
Contributor

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 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(ok - jvmTarget specified above)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants