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

revert jdk target to 1.8 #1133

Merged
merged 1 commit into from
Oct 25, 2023
Merged

revert jdk target to 1.8 #1133

merged 1 commit into from
Oct 25, 2023

Conversation

RBusarow
Copy link
Collaborator

No description provided.

@RBusarow RBusarow force-pushed the rick/better-java-version-handling branch from 5154adf to b3979e9 Compare October 25, 2023 21:21
@@ -13,12 +15,12 @@ android {
compileSdk = libsCatalog.version("compileSdk").toInt()

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = javaTargetVersion
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need to change sourceCompatilibity too? Will that, say, prevent us using language features that aren't actually supported?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's correct keeping them in sync will prevent us from inadvertently using Java language features that don't exist in the target environment.

@@ -44,3 +27,48 @@ fun DependencyHandler.kotlin(
module: String,
version: String? = null
): Any = "org.jetbrains.kotlin:kotlin-$module${version?.let { ":$version" } ?: ""}"

/**
* the jdk used in packaging
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this redundant w/kgx?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'd thought it was, but sadly no. The catalog entry/property names are unique to individual projects.

@RBusarow RBusarow marked this pull request as ready for review October 25, 2023 22:37
@RBusarow RBusarow requested review from zach-klippenstein and a team as code owners October 25, 2023 22:37
@RBusarow RBusarow merged commit f5892fa into main Oct 25, 2023
31 checks passed
@RBusarow RBusarow deleted the rick/better-java-version-handling branch October 25, 2023 22:37
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.

3 participants