diff --git a/get_timestamp_version.sh b/get_timestamp_version.sh index 5b6195cf6..a55574a23 100755 --- a/get_timestamp_version.sh +++ b/get_timestamp_version.sh @@ -3,8 +3,8 @@ # Path to your gradle.properties file GRADLE_PROPERTIES_FILE="gradle.properties" -# Read the current version from gradle.properties -CURRENT_VERSION=$(grep "pluginVersion=" "$GRADLE_PROPERTIES_FILE" | cut -d'=' -f2) +# Read the current version from gradle.properties, ignoring spaces around the equals sign +CURRENT_VERSION=$(grep -E "pluginVersion\s*=\s*" "$GRADLE_PROPERTIES_FILE" | sed -E 's/.*=\s*([^[:space:]]*).*/\1/') # Extract the version part before any hyphen BASE_VERSION=$(echo "$CURRENT_VERSION" | awk -F'-' '{print $1}') @@ -13,7 +13,7 @@ BASE_VERSION=$(echo "$CURRENT_VERSION" | awk -F'-' '{print $1}') TIMESTAMP=$(date +'%Y%m%d-%H%M%S') NEW_VERSION="${BASE_VERSION}-$TIMESTAMP" -# Use awk to update the gradle.properties file -awk -v new_version="$NEW_VERSION" '/pluginVersion=/{sub(/=.*/, "=" new_version)}1' "$GRADLE_PROPERTIES_FILE" > tmpfile && mv tmpfile "$GRADLE_PROPERTIES_FILE" +# Use awk to update the gradle.properties file, allowing spaces around the equals sign +awk -v new_version="$NEW_VERSION" '/pluginVersion\s*=\s*/{sub(/=.*/, "=" new_version)}1' "$GRADLE_PROPERTIES_FILE" > tmpfile && mv tmpfile "$GRADLE_PROPERTIES_FILE" echo $NEW_VERSION diff --git a/gradle.properties b/gradle.properties index a95980648..a30496ff2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,40 +1,31 @@ # IntelliJ Platform Artifacts Repositories -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html - -pluginGroup = com.redhat.devtools.intellij -pluginName = Quarkus Tools -pluginRepositoryUrl = https://github.com/redhat-developer/intellij-quarkus +pluginGroup=com.redhat.devtools.intellij +pluginName=Quarkus Tools +pluginRepositoryUrl=https://github.com/redhat-developer/intellij-quarkus # SemVer format -> https://semver.org -pluginVersion = 1.29.1-SNAPSHOT - +# NO SPACES AROUND THE EQUALS SIGN!! +pluginVersion=1.29.1-SNAPSHOT # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html -pluginSinceBuild = 222 -#pluginUntilBuild = 233.* - +pluginSinceBuild=222 +#pluginUntilBuild=233.* # IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension -platformType = IC -platformVersion = 2022.2.3 - +platformType=IC +platformVersion=2022.2.3 # Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html # Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22 -platformPlugins = com.intellij.java, maven, gradle-java, properties, yaml, com.redhat.devtools.intellij.telemetry:1.0.0.44 - +platformPlugins=com.intellij.java, maven, gradle-java, properties, yaml, com.redhat.devtools.intellij.telemetry:1.0.0.44 # Gradle Releases -> https://github.com/gradle/gradle/releases -gradleVersion = 8.4 - +gradleVersion=8.4 channel=nightly quarkusVersion=3.1.2.Final lsp4mpVersion=0.10.0 quarkusLsVersion=0.17.0 quteLsVersion=0.17.0 - # Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib -kotlin.stdlib.default.dependency = false - +kotlin.stdlib.default.dependency=false # Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html -org.gradle.configuration-cache = true - +org.gradle.configuration-cache=true # Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html -org.gradle.caching = true - +org.gradle.caching=true # Enable Gradle Kotlin DSL Lazy Property Assignment -> https://docs.gradle.org/current/userguide/kotlin_dsl.html#kotdsl:assignment -systemProp.org.gradle.unsafe.kotlin.assignment = true +systemProp.org.gradle.unsafe.kotlin.assignment=true