-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow setting minecraft version with a version constraint
- Loading branch information
1 parent
81473f2
commit 5cb6996
Showing
7 changed files
with
113 additions
and
22 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
6 changes: 6 additions & 0 deletions
6
src/main/kotlin/dev/lukebemish/crochet/kotlin/extension/VersionProperty.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,6 @@ | ||
package dev.lukebemish.crochet.kotlin.extension | ||
|
||
import org.gradle.api.SupportsKotlinAssignmentOverloading | ||
|
||
@SupportsKotlinAssignmentOverloading | ||
interface VersionProperty : KotlinLazyProperty<String>, VersionSetter |
15 changes: 15 additions & 0 deletions
15
src/main/kotlin/dev/lukebemish/crochet/kotlin/extension/VersionSetter.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,15 @@ | ||
package dev.lukebemish.crochet.kotlin.extension | ||
|
||
import org.gradle.api.SupportsKotlinAssignmentOverloading | ||
import org.gradle.api.artifacts.VersionConstraint | ||
import org.gradle.api.provider.Provider | ||
|
||
@Suppress("INAPPLICABLE_JVM_NAME") | ||
@SupportsKotlinAssignmentOverloading | ||
interface VersionSetter: KotlinLazySetter<String> { | ||
@JvmName("assignVersionConstraintProvider") | ||
fun assign(provider: Provider<VersionConstraint>) | ||
|
||
@JvmName("assignVersionConstraintProvider") | ||
fun assign(value: VersionConstraint) | ||
} |