-
Notifications
You must be signed in to change notification settings - Fork 409
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
[Structure refactor] add gradle properties to included builds #3177
Conversation
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.
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.
Already starting to see benefits from separating the configurations :) Ready to merge it 👍
Left one optional comment, but it can be addressed later
org.jetbrains.dokka.javaToolchain.mainCompiler=8 | ||
org.jetbrains.dokka.javaToolchain.testLauncher=8 | ||
org.jetbrains.dokka.kotlinLanguageLevel=1.4 | ||
dokka_integration_test_parallelism=2 |
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.
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 indokka-subprojects
as well, and I think it can be removed from there
Already starting to see benefits from separating the configurations :)
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.
- 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!
dokka_integration_test_parallelism=2
reminded me that I saw this property set indokka-subprojects
as well, and I think it can be removed from there
Agreed!
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! |
85d05b2
into
Kotlin:project-structure-refactoring
add
gradle.properties
to included buildsThis 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