Repository navigation
feat: migrate supporting features - #31
Conversation
|
@shossain786 i have updated and resolved the merge conflict and the failing test issues please review and suggest changes if any. |
|
Thanks @PUSHPAK-JAISWAL — #32 (migration report) just merged and now conflicts with this branch in |
|
@shossain786 i think the conflicts are automatically resolved but i will work on the changes asked right now |
|
@shossain786 updated includeSourceManualFindings to use the original analysis for detected technologies, recognized technologies, and locator counts. Updated the Gradle migration tests to confirm the report keeps the original Selenium dependency rather than the migrated one. |
What & why
Detection for Gradle projects (Groovy and Kotlin DSL) was previously added in #12. This PR implements the remaining piece of #8: swapping the
org.seleniumhq.selenium:selenium-javadependency block inbuild.gradleandbuild.gradle.ktsfiles toio.github.seleniumboot:selenium-boot:3.5.0duringmigrate.Key changes:
Migrator.java, useBuildFileAnalyzer.findBuildFilesto discover all build descriptors (pom.xml,build.gradle,build.gradle.kts) in the destination directory.migrateGradleusing text-level regex transformations (no Gradle runtime required), supporting:group: ..., name: ...) and multi-arg notation.gradleandbuilddirectories during project copying so Gradle cache and build outputs are not duplicated in the migrated project.Result.remaining()report.README.mdto note thatmigraterewrites both Maven and Gradle build descriptors.Closes #8
Type of change
MIG-xxx)Checklist
mvn testpassesNotes for reviewers
migrateGradle(Path buildFile)operates purely on text via regex replacement, matching the approach specified in Gradle project support #8.MigratorTestcovering Groovy DSL, Kotlin DSL, syntax variations, comments preservation, directory exclusion, and the existing fixtures insrc/test/resources/gradle-groovyandsrc/test/resources/gradle-kotlin.CliTestto verify end-to-endmigrateoutput on Gradle projects.