Compare commits

..

28 Commits

Author SHA1 Message Date
Roberto Cirillo 1ba2854b80 Merge pull request 'fix conflict with master' (!28) from conflict into master
Reviewed-on: #28
2024-04-05 15:36:30 +02:00
Roberto Cirillo 0b40060d28 fix conflict with master 2024-04-05 15:35:28 +02:00
Roberto Cirillo 2542cc2eca Merge pull request 'bug/25872' (!26) from bug/25872 into master
Reviewed-on: #26
2024-04-03 11:18:14 +02:00
Roberto Cirillo cc285dad97 move to 1.2.0 version 2024-04-03 11:16:12 +02:00
Roberto Cirillo b857fce1bc Merge pull request 'bug/26841' (!25) from bug/26841 into master
Reviewed-on: #25
2024-02-22 10:02:29 +01:00
Roberto Cirillo 29b9eab140 set 1.2.0 version 2024-02-22 09:59:23 +01:00
Roberto Cirillo e8fde085c0 fix changelog version 2024-02-22 09:54:52 +01:00
Roberto Cirillo 06024a761c removed set-local-classpath profile. see #26841 2024-02-22 09:54:04 +01:00
Roberto Cirillo fb4823b683 removed set-local-classpath profile. see #26841 2024-02-22 09:50:30 +01:00
Roberto Cirillo af347b82f7 update CHANGELOG.md 2023-10-16 09:49:11 +02:00
Roberto Cirillo eb6f533790 removed commented plugin declarations 2023-10-16 09:47:45 +02:00
Roberto Cirillo 6f66a8c87c fix syntax 2023-10-16 09:36:02 +02:00
Roberto Cirillo f4225749b0 try to update common plugins to groovy-all 3.0.13 2023-10-16 09:32:47 +02:00
Roberto Cirillo 7db55f6d04 enable disable-java8-doclint profile also for jdk17 2023-10-13 16:59:52 +02:00
Roberto Cirillo 60e3ab5e5f restrict the disable-java8-doclint profile 2023-10-13 14:57:46 +02:00
Roberto Cirillo 067dcfa23b move common plugin declaration inside gcube-official profile, just for testing 2023-10-13 12:25:25 +02:00
Roberto Cirillo 0315b09ce7 update groovy-all plugin to 3.0.13 in gcube-experimental profile 2023-10-13 12:05:58 +02:00
Roberto Cirillo 4d24257b08 migrate plugin dependency from groovy-all to groovy in gcube-experimental profile 2023-10-13 11:26:48 +02:00
Roberto Cirillo 99cde69cfe update CHANGELOG 2023-10-13 10:50:28 +02:00
Roberto Cirillo 62686e818e moved to 1.2.1-SNAPSHOT. see #25872
update groovy-all plugin related to jdk17 profile
2023-10-13 10:42:51 +02:00
Roberto Cirillo fe94a49225 Merge pull request 'feature/25414' (!24) from feature/25414 into master
Reviewed-on: #24
2023-07-26 16:26:40 +02:00
Roberto Cirillo 2df3a89dfc update README 2023-07-26 16:25:54 +02:00
Roberto Cirillo e26f69443c improve README 2023-07-21 12:58:38 +02:00
Roberto Cirillo 836a4f69ee Merge pull request 'update to 1.2.0 version' (!23) from feature/25106 into master
Reviewed-on: #23
2023-05-12 15:11:07 +02:00
Roberto Cirillo 8c19d4b7d4 update to 1.2.0 version 2023-05-12 15:10:27 +02:00
Roberto Cirillo 113972a821 Merge pull request 'add classpath resource #25106, change groovy-mavn and javadoc plugin configurations #25108' (!22) from feature/25106 into master
Reviewed-on: #22
2023-05-12 14:32:01 +02:00
Roberto Cirillo 241cd80f38 add classpath resource #25106, change groovy-mavn and javadoc plugin configurations #25108 2023-05-12 14:30:19 +02:00
Roberto Cirillo 98e0ad5cfe Merge pull request 'moved to 1.2.0-SNAPSHOT. see #24259' (!21) from feature/24259 into master
Reviewed-on: #21
2023-05-12 09:55:52 +02:00
3 changed files with 72 additions and 17 deletions

View File

@ -1,10 +1,19 @@
# Changelog for Maven-Parent
## [v1.2.0-SNAPSHOT] - 2023-05-02
## [v1.2.0] - 2024-04-03
### Bug
* update maven-javadoc-plugin to from 2.6.8 to 3.6.3. #25877
* update groovy-all plugin dependency from 3.0.0-beta to 3.0.13 #25872
### Features
* new maven profiles for managing jdk7 (gcore-legacy) and jdk17 build (see #24259)
* add new group repositories for managing jdk17 dependencies resolution
* update groovy-maven and javadoc plugin configuration #25108
* add classpath external folder. see #25106
### Bug
* removed set-local-classpath profile. see #26841
## [v1.1.0] - 2022-10-27

View File

@ -3,7 +3,7 @@
A parent pom for all the gCube artifacts.
# Enforcements
* Java 8 (target and source)
* Java 8 (target and source) unless otherwise specified inside the pom
* OpenJDK as target Java VM.
* Maven 3.3.9+
* README.md, CHANGELOG.md and LICENSE.md are present in the baseDir of each Maven module
@ -11,19 +11,41 @@ A parent pom for all the gCube artifacts.
# Build Profiles
## gcube-developer
The build profiles are separated in three main branches: developer, staging, releases.
Each branch has a set of profile based on the idk.
The developer branch contains the profiles related to the snapshot build:
* gcore-legacy jdk7
* gcube-legacy - jdk8
* gcube-official -jdk11
* gcube-experimental - jdk17
In the same way are organised the other branch profiles related to the staging (integration) phase and to the release phase.
In addition there are a set of common profiles useful in order to avoid replication of plugins and rules definitions:
* common-snapshot
* common-release
* dry-run
* disable-java8-doclint
* set-local-classpath
* generate-distribution-packages
Below the descriptions of the most used profiles by gCube components:
## common-snapshot
This profile defines the common plugin used by all the snapshot profiles
## common-releases
This profile defines the common plugin used by all the staging and release profiles
## gcube-official
* Dependencies resolved against local, gcube-snapshots and gcube-releases
* Snapshot artifacts installed to local
* Snapshot artifacts deployed to gcube-snapshots
* Deployments of releases artifacts are not permitted
## jenkins-snapshots
* Dependencies resolved against local-snapshots, gcube-snapshots and gcube-releases
* Snapshot artifacts installed to local-snapshots
* Snapshot artifacts deployed to gcube-snapshots
* Deployments of release artifacts are not permitted
## jenkins-staging
## jenkins-staging-official
* Dependencies resolved against local-staging, gcube-jenkins-staging, gcube-staging and gcube-releases
* Release/snapshot artifacts installed to local-staging
* Release/snapshot artifacts deployed to gcube-jenkins-staging
@ -41,3 +63,6 @@ This profile disables the deployment of the artifacts.
This profile sets an additional parameter for javadoc generation to disables the doclint.
It avoids the build fails if formal/syntax errors are found in javadoc comments.
## set-local-classpath
This profile set a generic folder that will be added to the classpath

35
pom.xml
View File

@ -5,7 +5,7 @@
<groupId>org.gcube.tools</groupId>
<artifactId>maven-parent</artifactId>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
<packaging>pom</packaging>
<scm>
@ -78,6 +78,20 @@
<javadoc.opts>-Xdoclint:none</javadoc.opts>
</properties>
</profile>
<!--profile set-local-classpath commented see #26841-->
<!--profile>
<id>set-local-classpath</id>
<activation>
<jdk>[1.8,)</jdk>
</activation>
<build>
<resources>
<resource>
<directory>${maven.local.classpath}</directory>
</resource>
</resources>
</build>
</profile-->
<profile>
<id>generate-distribution-packages</id>
<activation>
@ -350,7 +364,6 @@
<name>!Release</name>
</property>
</activation>
<!-- Repositories for dependency resolution -->
<repositories>
<repository>
@ -399,7 +412,7 @@
<profile>
<id>gcube-legacy</id>
<activation>
<jdk>[1.8, 9)</jdk>
<jdk>[1.8,9)</jdk>
<property>
<name>!Release</name>
</property>
@ -1476,13 +1489,12 @@
<goal>jar</goal>
</goals>
<configuration>
<source>${java_version}</source>
<additionalparam>${javadoc.opts}</additionalparam>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>groovy-maven-plugin</artifactId>
@ -1508,8 +1520,16 @@
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>3.0.13</version>
<!--version>3.0.0-beta-3</version-->
<type>pom</type>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
@ -1525,7 +1545,7 @@
<plugin.assembly.version>2.6</plugin.assembly.version>
<plugin.compiler.version>3.10.1</plugin.compiler.version>
<plugin.source.version>2.1.2</plugin.source.version>
<plugin.javadoc.version>2.8</plugin.javadoc.version>
<plugin.javadoc.version>3.6.3</plugin.javadoc.version>
<plugin.resources.version>3.1.0</plugin.resources.version>
<!-- default value for the distro directory -->
@ -1537,6 +1557,7 @@
<java.expected.vm>.*OpenJDK.*</java.expected.vm>
<maven.compiler.source>${java_version}</maven.compiler.source>
<maven.compiler.target>${java_version}</maven.compiler.target>
<!--maven.local.classpath>/opt/gcube/local-classpath</maven.local.classpath-->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.version>3.3.9</maven.version>