Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Nov 22, 2023
1 parent ae8afac commit eb49850
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions src/main/kotlin/slack/cli/gradle/GradleProjectFlattener.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright (C) 2023 Slack Technologies, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package slack.cli.gradle

import com.github.ajalt.clikt.core.CliktCommand
Expand All @@ -8,19 +23,21 @@ import com.github.ajalt.clikt.parameters.types.path
import java.io.File
import kotlin.io.path.ExperimentalPathApi
import kotlin.io.path.appendLines
import kotlin.io.path.appendText
import kotlin.io.path.copyToRecursively
import kotlin.io.path.exists
import kotlin.io.path.isDirectory
import kotlin.io.path.readText
import kotlin.io.path.relativeTo
import slack.cli.dryRunOption
import slack.cli.projectDirOption
import kotlin.io.path.appendText

/**
* A CLI that flattens all gradle projects in a given directory to be top level while preserving their original project paths.
* A CLI that flattens all gradle projects in a given directory to be top level while preserving
* their original project paths.
*
* This is useful for flattening nested projects that use Dokka, which does not currently support easy doc gen for nested projects and end up with colliding names.
* This is useful for flattening nested projects that use Dokka, which does not currently support
* easy doc gen for nested projects and end up with colliding names.
*
* It's recommended to run `./gradlew clean` first before running this script to minimize work.
*/
Expand Down

0 comments on commit eb49850

Please sign in to comment.