Skip to content

Commit

Permalink
Avoid storing timestamp in Gradle.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Jul 8, 2024
1 parent 7e98e77 commit 3ae02fb
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Gradle properties
#Tue Mar 17 10:20:48 UTC 2020
# Gradle properties

quarkusPluginVersion=${project.version}
quarkusPlatformArtifactId=quarkus-bom
quarkusPlatformVersion=${project.version}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Gradle properties
# Gradle properties

quarkusPluginId={quarkus.gradle-plugin.id}
quarkusPluginVersion={quarkus.gradle-plugin.version}
quarkusPlatformGroupId={quarkus.platform.group-id}
quarkusPlatformArtifactId={quarkus.platform.artifact-id}
quarkusPlatformVersion={quarkus.platform.version}
quarkusPlatformVersion={quarkus.platform.version}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Gradle properties
# Gradle properties

quarkusPluginId={quarkus.gradle-plugin.id}
quarkusPluginVersion={quarkus.gradle-plugin.version}
quarkusPlatformGroupId={quarkus.platform.group-id}
quarkusPlatformArtifactId={quarkus.platform.artifact-id}
quarkusPlatformVersion={quarkus.platform.version}
quarkusPlatformVersion={quarkus.platform.version}
4 changes: 4 additions & 0 deletions independent-projects/tools/devtools-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@
<groupId>jakarta.enterprise</groupId>
<artifactId>jakarta.enterprise.cdi-api</artifactId>
</dependency>
<dependency>
<groupId>org.codejive</groupId>
<artifactId>java-properties</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Properties;
import java.util.Scanner;
import java.util.concurrent.atomic.AtomicReference;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.codejive.properties.Properties;

import io.quarkus.maven.dependency.ArtifactCoords;
import io.quarkus.maven.dependency.ArtifactKey;
import io.quarkus.registry.catalog.ExtensionCatalog;
Expand Down Expand Up @@ -47,11 +48,8 @@ public void writeToDisk() throws IOException {
if (rootProjectPath != null) {
Files.write(rootProjectPath.resolve(getSettingsGradlePath()), getModel().getRootSettingsContent().getBytes());
if (hasRootProjectFile(GRADLE_PROPERTIES_PATH)) {
try (ByteArrayOutputStream out = new ByteArrayOutputStream()) {
getModel().getRootPropertiesContent().store(out, "Gradle properties");
Files.write(rootProjectPath.resolve(GRADLE_PROPERTIES_PATH),
out.toByteArray());
}
getModel().getRootPropertiesContent().store(rootProjectPath.resolve(GRADLE_PROPERTIES_PATH),
"Gradle properties");
}
} else {
writeToProjectFile(getSettingsGradlePath(), getModel().getSettingsContent().getBytes());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
import java.util.Properties;
import java.util.concurrent.atomic.AtomicReference;

import org.codejive.properties.Properties;

import io.quarkus.devtools.project.QuarkusProject;
import io.quarkus.devtools.project.buildfile.AbstractGradleBuildFile.Model;
import io.quarkus.maven.dependency.ArtifactCoords;
Expand Down
6 changes: 6 additions & 0 deletions independent-projects/tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
<jandex.version>3.2.0</jandex.version>
<system-stubs-jupiter.version>2.0.2</system-stubs-jupiter.version>
<awaitility.version>4.2.1</awaitility.version>
<java-properties.version>0.0.7</java-properties.version>
</properties>
<modules>
<module>registry-client</module>
Expand Down Expand Up @@ -175,6 +176,11 @@
<artifactId>jboss-logging</artifactId>
<version>${jboss-logging.version}</version>
</dependency>
<dependency>
<groupId>org.codejive</groupId>
<artifactId>java-properties</artifactId>
<version>${java-properties.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Gradle properties
#Tue Aug 04 17:04:55 CEST 2020
# Gradle properties

quarkusPlatformArtifactId=quarkus-bom
quarkusPlatformGroupId=io.quarkus
org.gradle.logging.level=INFO
lombokVersion=1.18.12
lombokVersion=1.18.12
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Gradle properties
#Tue Aug 25 06:41:36 GMT 2020
# Gradle properties

quarkusPlatformArtifactId=quarkus-bom
quarkusPlatformGroupId=io.quarkus
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Gradle properties
#Wed May 06 08:31:08 UTC 2020
# Gradle properties

quarkusPlatformArtifactId=quarkus-bom
quarkusPlatformGroupId=io.quarkus

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#Gradle properties
# Gradle properties

quarkusPlatformArtifactId=quarkus-bom
quarkusPlatformGroupId=io.quarkus
quarkusPlatformGroupId=io.quarkus

0 comments on commit 3ae02fb

Please sign in to comment.