diff options
Diffstat (limited to 'sharedVariables/src/Util.kt')
-rw-r--r-- | sharedVariables/src/Util.kt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sharedVariables/src/Util.kt b/sharedVariables/src/Util.kt new file mode 100644 index 000000000..750a73cbe --- /dev/null +++ b/sharedVariables/src/Util.kt @@ -0,0 +1,7 @@ +package at.skyhanni.sharedvariables + +import org.gradle.jvm.toolchain.JavaLanguageVersion + +fun JavaLanguageVersion.versionString() = + if (asInt() < 9) "1." + asInt() + else asInt().toString() |