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 (#4299)

Co-authored-by: Manolo Carrasco <[email protected]>
  • Loading branch information
ZheSun88 and manolo authored Jun 29, 2023
1 parent 642d9de commit 39b5c3f
Show file tree
Hide file tree
Showing 10 changed files with 55 additions and 26 deletions.
3 changes: 3 additions & 0 deletions hilla-dev/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
<description>Hilla Platform Development Dependencies</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: 3 additions & 1 deletion hilla-react-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
<name>Hilla-React Spring Boot Starter</name>
<description>Spring Boot Starter for Hilla applications using React.</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
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: 3 additions & 1 deletion hilla-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
<name>Hilla Spring Boot Starter</name>
<description>Spring Boot Starter for Hilla applications using Lit.</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
3 changes: 3 additions & 0 deletions hilla/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
<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
57 changes: 36 additions & 21 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,7 @@
</repository>
</distributionManagement>

<modules>
<module>vaadin-internal</module>
<module>vaadin</module>
<module>vaadin-spring-bom</module>
<module>vaadin-bom</module>
<module>vaadin-core-internal</module>
<module>vaadin-core</module>
<module>vaadin-dev</module>
<module>vaadin-maven-plugin</module>
<module>vaadin-testbench</module>
<module>vaadin-testbench-junit5</module>
<module>vaadin-spring-boot-starter</module>
<module>vaadin-platform-javadoc</module>
<module>vaadin-dev-bundle</module>
<module>vaadin-prod-bundle/pom-unoptimized.xml</module>
<module>vaadin-prod-bundle</module>
</modules>


<profiles>
<profile>
Expand All @@ -58,9 +42,6 @@
</profile>
<profile>
<id>gradle</id>
<activation>
<jdk>(,18)</jdk>
</activation>
<modules>
<module>vaadin-gradle-plugin</module>
<module>vaadin-gradle-plugin/pom-portal.xml</module>
Expand All @@ -74,7 +55,7 @@
<module>vaadin-quarkus-extension</module>
</modules>
</profile>
<!-- separate hilla related moduels for releases -->
<!-- separate hilla related modules for releases -->
<profile>
<id>hilla</id>
<modules>
Expand All @@ -85,6 +66,40 @@
<module>hilla-spring-boot-starter</module>
<module>hilla-react-spring-boot-starter</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-internal</module>
<module>vaadin</module>
<module>vaadin-spring-bom</module>
<module>vaadin-bom</module>
<module>vaadin-core-internal</module>
<module>vaadin-core</module>
<module>vaadin-dev</module>
<module>vaadin-maven-plugin</module>
<module>vaadin-testbench</module>
<module>vaadin-testbench-junit5</module>
<module>vaadin-spring-boot-starter</module>
<module>vaadin-platform-javadoc</module>
<module>vaadin-dev-bundle</module>
<module>vaadin-prod-bundle/pom-unoptimized.xml</module>
<module>vaadin-prod-bundle</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
1 change: 1 addition & 0 deletions scripts/generator/templates/template-hilla-bom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

<properties>
{{javadeps}}
<skipNexusStagingDeployMojo>false</skipNexusStagingDeployMojo>
</properties>

<distributionManagement>
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>true</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>true</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 @@ -15,7 +15,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>true</skipNexusStagingDeployMojo>
<osgi.bundle.version>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</osgi.bundle.version>
</properties>
<dependencyManagement>
Expand Down

0 comments on commit 39b5c3f

Please sign in to comment.