-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.8.2 The long-term plan for v1.0 is to focus on :refreshVersions instead of :buildSrcVersions See #104
- Loading branch information
Jean-Michel Fayard
authored
Nov 7, 2019
1 parent
d02577f
commit d6193d1
Showing
31 changed files
with
765 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
plugin/src/main/kotlin/de/fayard/versions/ArtifactGrouping.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package de.fayard.versions | ||
|
||
import org.gradle.api.Incubating | ||
|
||
/** | ||
* We assume each part of the "group" is dot separated (`.`), and each part of the name is dash separated (`-`). | ||
*/ | ||
internal enum class ArtifactGroupNaming { | ||
GroupOnly, | ||
GroupLastPart, | ||
GroupFirstTwoParts, | ||
GroupFirstThreeParts, | ||
GroupAndNameFirstPart, | ||
GroupLastPartAndNameSecondPart, | ||
GroupFirstPartAndNameTwoFirstParts | ||
} | ||
|
||
internal class ArtifactGroupingRule( | ||
val artifactNamesStartingWith: String, | ||
val groupNaming: ArtifactGroupNaming | ||
) { | ||
init { | ||
require(artifactNamesStartingWith.count { it == ':' } <= 1) | ||
} | ||
} |
Oops, something went wrong.