Skip to content

Commit

Permalink
chore: group platform modules in a profile, remove gradle module acti…
Browse files Browse the repository at this point in the history
…vation rule (CP: 23.3) (#4305)
  • Loading branch information
ZheSun88 authored Jun 29, 2023
1 parent 3ec73f8 commit 361bc73
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 17 deletions.
3 changes: 3 additions & 0 deletions hilla-react/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
<description>Hilla Platform for React-based Applications</description>
<version>${hilla.version}</version>
<url>https://hilla.dev</url>
<properties>
<skipNexusStagingDeployMojo>false</skipNexusStagingDeployMojo>
</properties>
<distributionManagement>
<repository>
<id>vaadin-prereleases</id>
Expand Down
4 changes: 4 additions & 0 deletions hilla-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
<description>Spring Boot Starter for Hilla applications.</description>
<version>${hilla.version}</version>

<properties>
<skipNexusStagingDeployMojo>false</skipNexusStagingDeployMojo>
</properties>

<repositories>
<!-- The order of definitions matters. Explicitly defining central here to make sure it has the highest priority. -->

Expand Down
4 changes: 4 additions & 0 deletions hilla/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
<description>Hilla Platform</description>
<version>${hilla.version}</version>
<url>https://hilla.dev</url>

<properties>
<skipNexusStagingDeployMojo>false</skipNexusStagingDeployMojo>
</properties>
<distributionManagement>
<repository>
<id>vaadin-prereleases</id>
Expand Down
41 changes: 27 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,6 @@
</repository>
</distributionManagement>

<modules>
<module>vaadin</module>
<module>vaadin-spring-bom</module>
<module>vaadin-bom</module>
<module>vaadin-core</module>
<module>vaadin-maven-plugin</module>
<module>vaadin-testbench</module>
<module>vaadin-spring-boot-starter</module>
<module>vaadin-platform-javadoc</module>
</modules>

<profiles>
<profile>
<id>sbom</id>
Expand All @@ -49,9 +38,6 @@
</profile>
<profile>
<id>gradle</id>
<activation>
<jdk>(,17]</jdk>
</activation>
<modules>
<module>vaadin-gradle-plugin</module>
<module>vaadin-gradle-plugin/pom-portal.xml</module>
Expand All @@ -75,6 +61,33 @@
<module>hilla-spring-boot-starter</module>
<module>hilla-maven-plugin</module>
</modules>
<!-- This prevents deploying all com.vaadin modules, but we need to set it to true in
all hilla modules -->
<properties>
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
</properties>
</profile>
<!-- separate platform modules for active by default it must be after hilla modules -->
<profile>
<id>platform</id>
<activation>
<property>
<name>!skipPlatform</name>
</property>
</activation>
<modules>
<module>vaadin</module>
<module>vaadin-spring-bom</module>
<module>vaadin-bom</module>
<module>vaadin-core</module>
<module>vaadin-maven-plugin</module>
<module>vaadin-testbench</module>
<module>vaadin-spring-boot-starter</module>
<module>vaadin-platform-javadoc</module>
</modules>
<properties>
<skipNexusStagingDeployMojo>false</skipNexusStagingDeployMojo>
</properties>
</profile>
<!-- Needed so as we can skip this module on releasing and still nexus stating works -->
<profile>
Expand Down
4 changes: 4 additions & 0 deletions scripts/generator/templates/template-hilla-bom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
<version>${hilla.version}</version>
<url>https://hilla.dev</url>

<properties>
<skipNexusStagingDeployMojo>false</skipNexusStagingDeployMojo>
</properties>

<distributionManagement>
<repository>
<id>vaadin-prereleases</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.version>3.8.4</maven.version>
<skipNexusStagingDeployMojo>false</skipNexusStagingDeployMojo>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<failOnMissingWebXml>false</failOnMissingWebXml>
<maven.deploy.skip>true</maven.deploy.skip>
<skipNexusStagingDeployMojo>false</skipNexusStagingDeployMojo>
<!-- this version is needed for app.bndrun file -->
{{javadeps}}
</properties>
Expand Down
2 changes: 1 addition & 1 deletion vaadin-platform-hybrid-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<failOnMissingWebXml>false</failOnMissingWebXml>
<maven.deploy.skip>true</maven.deploy.skip>
<skipNexusStagingDeployMojo>false</skipNexusStagingDeployMojo>
</properties>
<dependencyManagement>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion vaadin-platform-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<failOnMissingWebXml>false</failOnMissingWebXml>
<maven.deploy.skip>true</maven.deploy.skip>
<skipNexusStagingDeployMojo>false</skipNexusStagingDeployMojo>
<osgi.bundle.version>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</osgi.bundle.version>
</properties>
<dependencyManagement>
Expand Down

0 comments on commit 361bc73

Please sign in to comment.