-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract
VersionNumber
to standalone artifact (#1039)
<!-- ⬆ Put your description above this! ⬆ Please be descriptive and detailed. Please read our [Contributing Guidelines](https://github.com/tinyspeck/foundry/blob/main/.github/CONTRIBUTING.md) and [Code of Conduct](https://slackhq.github.io/code-of-conduct). Don't worry about deleting this, it's not visible in the PR! -->
- Loading branch information
Showing
11 changed files
with
68 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
public final class foundry/common/versioning/VersionNumber : java/lang/Comparable { | ||
public static final field Companion Lfoundry/common/versioning/VersionNumber$Companion; | ||
public fun <init> (IIIILjava/lang/String;)V | ||
public synthetic fun <init> (IIIILjava/lang/String;Lfoundry/common/versioning/VersionNumber$AbstractScheme;Lkotlin/jvm/internal/DefaultConstructorMarker;)V | ||
public fun <init> (IIILjava/lang/String;)V | ||
public fun compareTo (Lfoundry/common/versioning/VersionNumber;)I | ||
public synthetic fun compareTo (Ljava/lang/Object;)I | ||
public fun equals (Ljava/lang/Object;)Z | ||
public final fun getBaseVersion ()Lfoundry/common/versioning/VersionNumber; | ||
public final fun getMajor ()I | ||
public final fun getMicro ()I | ||
public final fun getMinor ()I | ||
public final fun getPatch ()I | ||
public final fun getQualifier ()Ljava/lang/String; | ||
public fun hashCode ()I | ||
public fun toString ()Ljava/lang/String; | ||
} | ||
|
||
public final class foundry/common/versioning/VersionNumber$Companion { | ||
public final fun getUNKNOWN ()Lfoundry/common/versioning/VersionNumber; | ||
public final fun parse (Ljava/lang/String;)Lfoundry/common/versioning/VersionNumber; | ||
public final fun scheme ()Lfoundry/common/versioning/VersionNumber$Scheme; | ||
public final fun version (I)Lfoundry/common/versioning/VersionNumber; | ||
public final fun version (II)Lfoundry/common/versioning/VersionNumber; | ||
public static synthetic fun version$default (Lfoundry/common/versioning/VersionNumber$Companion;IIILjava/lang/Object;)Lfoundry/common/versioning/VersionNumber; | ||
public final fun withPatchNumber ()Lfoundry/common/versioning/VersionNumber$Scheme; | ||
} | ||
|
||
public abstract interface class foundry/common/versioning/VersionNumber$Scheme { | ||
public abstract fun format (Lfoundry/common/versioning/VersionNumber;)Ljava/lang/String; | ||
public abstract fun parse (Ljava/lang/String;)Lfoundry/common/versioning/VersionNumber; | ||
} | ||
|
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,22 @@ | ||
/* | ||
* Copyright (C) 2024 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. | ||
*/ | ||
plugins { | ||
alias(libs.plugins.kotlin.jvm) | ||
alias(libs.plugins.mavenPublish) | ||
alias(libs.plugins.lint) | ||
} | ||
|
||
dependencies { implementation(libs.guava) } |
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,3 @@ | ||
POM_ARTIFACT_ID=version-number | ||
POM_NAME=VersionNumber | ||
POM_DESCRIPTION=VersionNumber |
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