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

[Structure refactor] add gradle properties to included builds #3177

Conversation

aSemy
Copy link
Contributor

@aSemy aSemy commented Sep 5, 2023

add gradle.properties to included builds

This is because the dokka_version value is mandatory, even for projects that aren't published.

This requirement should be removed later, and ideally a better way of sharing the project version should be implemented.

Depends on

 This is because the `dokka_version` value is mandatory, even for projects that aren't published.
 This requirement should be removed later, and ideally a better way of sharing the project version should be implemented.
@aSemy aSemy changed the title Structure refactor/add gradle properties to included builds [Structure refactor] add gradle properties to included builds Sep 5, 2023
Copy link
Member

@IgnatBeresnev IgnatBeresnev left a comment

Choose a reason for hiding this comment

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

Already starting to see benefits from separating the configurations :) Ready to merge it 👍

Left one optional comment, but it can be addressed later

Comment on lines +8 to +11
org.jetbrains.dokka.javaToolchain.mainCompiler=8
org.jetbrains.dokka.javaToolchain.testLauncher=8
org.jetbrains.dokka.kotlinLanguageLevel=1.4
dokka_integration_test_parallelism=2
Copy link
Member

@IgnatBeresnev IgnatBeresnev Sep 6, 2023

Choose a reason for hiding this comment

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

Some notes:

  • I remember we had some problems with running kotlinx.coroutines under Java 8, but because everything is coupled - a workaround was added to override the launcher version to 11. It looks like now we can set it to 11 here and remove the hack?
  • I think kotlinLanguageLevel=1.4 isn't necessary for integration tests, they don't publish any API, so it should be OK remove it? It would somewhat help with writing tests as kotlinx.test has limited API in 1.4
  • dokka_integration_test_parallelism=2 reminded me that I saw this property set in dokka-subprojects as well, and I think it can be removed from there

Already starting to see benefits from separating the configurations :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • I remember we had some problems with running kotlinx.coroutines under Java 8, but because everything is coupled - a workaround was added to override the launcher version to 11. It looks like now we can set it to 11 here and remove the hack?

Unfortunately I think that must remain, because all Gradle integration tests still run together.

There are a few options to make it better, and I think one is to use JVM Test Suites, and make a separate suite for each project.

  • I think kotlinLanguageLevel=1.4 isn't necessary for integration tests, they don't publish any API, so it should be OK remove it? It would somewhat help with writing tests as kotlinx.test has limited API in 1.4

Yes, I agree!

Agreed!

@IgnatBeresnev IgnatBeresnev marked this pull request as ready for review October 18, 2023 19:54
@IgnatBeresnev
Copy link
Member

Finally got back to it. I'll merge the PR into the branch and then address my comment above as a separate commit

Thanks once again!

@IgnatBeresnev IgnatBeresnev merged commit 85d05b2 into Kotlin:project-structure-refactoring Oct 18, 2023
0 of 6 checks passed
@aSemy aSemy deleted the structure-refactor/add-gradle-properties-to-subprojects branch October 19, 2023 00:13
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