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

Make Klib-related Gradle tasks public #204

Merged
merged 26 commits into from
Jun 24, 2024
Merged

Make Klib-related Gradle tasks public #204

merged 26 commits into from
Jun 24, 2024

Conversation

fzhinkin
Copy link
Collaborator

@fzhinkin fzhinkin commented Mar 26, 2024

What was done:

  • cleaned up klib-related tasks API
  • rewrote code gluing up tasks together to utilize Gradle properties for proper dependency tracking
  • made tasks public
  • made some programmatic API classes used as tasks inputs serializable

Fixed #203

@fzhinkin fzhinkin added enhancement New feature or request klib labels Mar 27, 2024
@fzhinkin fzhinkin linked an issue Mar 27, 2024 that may be closed by this pull request
@fzhinkin fzhinkin marked this pull request as ready for review March 27, 2024 09:20
@fzhinkin fzhinkin requested a review from shanshin March 27, 2024 09:20
Base automatically changed from 199-disable-tasks-for-empty-projects to develop March 27, 2024 14:36
src/main/kotlin/-Utils.kt Show resolved Hide resolved
src/main/kotlin/-Utils.kt Show resolved Hide resolved
src/main/kotlin/-Utils.kt Show resolved Hide resolved
src/main/kotlin/KotlinApiBuildTask.kt Outdated Show resolved Hide resolved
src/main/kotlin/KotlinApiCompareTask.kt Outdated Show resolved Hide resolved
src/main/kotlin/BinaryCompatibilityValidatorPlugin.kt Outdated Show resolved Hide resolved
src/main/kotlin/-Utils.kt Show resolved Hide resolved
src/main/kotlin/BinaryCompatibilityValidatorPlugin.kt Outdated Show resolved Hide resolved
src/main/kotlin/BinaryCompatibilityValidatorPlugin.kt Outdated Show resolved Hide resolved
src/main/kotlin/BinaryCompatibilityValidatorPlugin.kt Outdated Show resolved Hide resolved
@fzhinkin fzhinkin requested a review from shanshin June 21, 2024 13:56
src/main/kotlin/BuildTaskBase.kt Outdated Show resolved Hide resolved
src/main/kotlin/BuildTaskBase.kt Outdated Show resolved Hide resolved
src/main/kotlin/BuildTaskBase.kt Outdated Show resolved Hide resolved
src/main/kotlin/BuildTaskBase.kt Outdated Show resolved Hide resolved
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.OutputFile
import java.io.File


public abstract class BuildTaskBase : DefaultTask() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we link a public task so tightly to a specific extension?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These tasks are tightly bound to BCV anyway. The thing that worries me more is implicit initialization of properties, but I'm not sure that making initialization explicit and moving it to BinaryCompatibilityValidatorPlugin will make a big difference for now

@fzhinkin fzhinkin merged commit ee129a1 into develop Jun 24, 2024
3 checks passed
@fzhinkin fzhinkin deleted the make-tasks-public branch June 24, 2024 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request klib
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make KLib validation related tasks public
2 participants