Skip to content

Conversation

@lauzadis
Copy link
Member

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Comment on lines -41 to +45
private fun Project.subprojectArtifactSizeMetricsTask(): TaskProvider<CollectArtifactSizeMetrics> =
tasks.register<CollectArtifactSizeMetrics>("artifactSizeMetrics") {
group = TASK_GROUP
onlyIf { tasks.findByName("jvmJar") != null }
dependsOn(tasks.withType<Jar>())
}
private fun Project.subprojectArtifactSizeMetricsTask(): TaskProvider<CollectArtifactSizeMetrics> = tasks.register<CollectArtifactSizeMetrics>("artifactSizeMetrics") {
group = TASK_GROUP
onlyIf { tasks.findByName("jvmJar") != null }
dependsOn(tasks.withType<Jar>())
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: I'm noticing a lot of reformatting which lengthens lines past 120 chars. Was this an automated reformat or did you manually make these changes for some reason?

Copy link
Member Author

Choose a reason for hiding this comment

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

This was an automated format from ktlint

Comment on lines 101 to 106
tasks.register<SmithyBuildTask>(TASK_GENERATE_SMITHY_PROJECTIONS) {
group = "codegen"
dependsOn(generateSmithyBuild)
resolvedCliClasspath.set(codegenConfig)
runtimeClasspath.set(codegenConfig)
buildClasspath.set(codegenConfig)
smithyBuildConfigs.set(project.files(generateSmithyBuild))
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Question: Why were these removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

smithy-gradle-plugin was updated in 1.1.0 to make AbstractSmithyCliTask extend Gradle's DefaultTask rather than BaseSmithyTask which previously exposed these fields.

But I now see they have a cliClassPath property to replace resolvedCliClasspath, so I've re-enabled that config. For runtimeClasspath there is a new cliExecutionClasspath, but it defaults to cliClassPath + buildClasspath so I won't re-enable that config.

@lauzadis lauzadis merged commit 4b9d7d6 into main Dec 16, 2024
5 checks passed
@lauzadis lauzadis deleted the misc-kotlin-2.1.0 branch December 16, 2024 17:17
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