Skip to content

Commit

Permalink
WIP jreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
filiphr committed May 9, 2024
1 parent b33942a commit 6999ae1
Show file tree
Hide file tree
Showing 3 changed files with 181 additions and 5 deletions.
29 changes: 29 additions & 0 deletions NEXT_RELEASE_CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
### Features

* Support conditional mapping for source parameters (#2610, #3459, #3270)
* Add `@SourcePropertyName` to handle a property name of the source object (#3323) - Currently only applicable for `@Condition` methods

### Enhancements

* Improve error message for mapping to `target = "."` using expression (#3485)
* Improve error messages for auto generated mappings (#2788)
* Remove unnecessary casts to long (#3400)

### Bugs

* `@Condition` cannot be used only with `@Context` parameters (#3561)
* `@Condition` treated as ambiguous mapping for methods returning Boolean/boolean (#3565)
* Subclass mapping warns about unmapped property that is mapped in referenced mapper (#3360)
* Interface inherited build method is not found (#3463)
* Bean with getter returning Stream is treating the Stream as an alternative setter (#3462)
* Using `Mapping#expression` and `Mapping#conditionalQualifiedBy(Name)` should lead to compile error (#3413)
* Defined mappings for subclass mappings with runtime exception subclass exhaustive strategy not working if result type is abstract class (#3331)

### Documentation

* Clarify that `Mapping#ignoreByDefault` is inherited in nested mappings in documentation (#3577)

### Build

* Improve tests to show that Lombok `@SuperBuilder` is supported (#3524)
* Add Java 21 CI matrix build (#3473)
144 changes: 140 additions & 4 deletions parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<project.repository>mapstruct/mapstruct</project.repository>
<local.repository.path>/tmp/repository</local.repository.path>
<java.version>1.8</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<!-- value comes from property git.commit.author.time -->
<project.build.outputTimestamp>${git.commit.author.time}</project.build.outputTimestamp>

<org.mapstruct.gem.version>1.0.0.Alpha3</org.mapstruct.gem.version>
<org.apache.maven.plugins.enforcer.version>3.4.1</org.apache.maven.plugins.enforcer.version>
<org.apache.maven.plugins.surefire.version>3.2.2</org.apache.maven.plugins.surefire.version>
Expand All @@ -30,6 +39,7 @@
<com.puppycrawl.tools.checkstyle.version>8.36.1</com.puppycrawl.tools.checkstyle.version>
<org.junit.jupiter.version>5.10.1</org.junit.jupiter.version>
<junit-pioneer.version>2.2.0</junit-pioneer.version>
<jreleaser.plugin.version>1.12.0</jreleaser.plugin.version>
<add.release.arguments />
<forkCount>1</forkCount>
<assertj.version>3.24.2</assertj.version>
Expand Down Expand Up @@ -392,10 +402,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -839,5 +845,135 @@
</plugins>
</build>
</profile>
<profile>
<id>publication</id>
<activation>
<property>
<name>release</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<attach>true</attach>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<attach>true</attach>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>stage</id>
<properties>
<altDeploymentRepository>local::file:${maven.multiModuleProjectDirectory}/target/staging-deploy</altDeploymentRepository>
</properties>
<build>
<defaultGoal>deploy</defaultGoal>
</build>
</profile>
<profile>
<id>jreleaser</id>
<build>
<plugins>
<plugin>
<groupId>org.jreleaser</groupId>
<artifactId>jreleaser-maven-plugin</artifactId>
<version>${jreleaser.plugin.version}</version>
<configuration>
<gitRootSearch>true</gitRootSearch>
<jreleaser>
<project>
<name>Mapstruct</name>
<links>
<homepage>https://mapstruct.org/</homepage>
<documentation>https://mapstruct.org/documentation/stable/reference/html/</documentation>
</links>
</project>
<signing>
<active>ALWAYS</active>
<armored>true</armored>
<!-- This is temporarily like this in order to test how it would work -->
<mode>FILE</mode>
</signing>
<checksum>
<files>false</files>
</checksum>
<deploy>
<maven>
<nexus2>
<maven-central>
<active>ALWAYS</active>
<url>https://oss.sonatype.org/service/local</url>
<snapshotUrl>https://oss.sonatype.org/content/repositories/snapshots/</snapshotUrl>
<closeRepository>true</closeRepository>
<releaseRepository>true</releaseRepository>
<stagingRepositories>${maven.multiModuleProjectDirectory}/target/staging-deploy</stagingRepositories>
<artifactOverrides>
<artifactOverride>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-jdk8</artifactId>
<sourceJar>false</sourceJar>
<javadocJar>false</javadocJar>
</artifactOverride>
</artifactOverrides>
</maven-central>
</nexus2>
</maven>
</deploy>
<release>
<github>
<tagName>{{projectVersion}}</tagName>
<releaseName>{{projectVersion}}</releaseName>
<overwrite>false</overwrite>
<update>
<enabled>true</enabled>
</update>
<changelog>
<enabled>true</enabled>
<external>${maven.multiModuleProjectDirectory}/NEXT_RELEASE_CHANGELOG.md</external>
</changelog>
</github>
</release>
<files>
<artifacts>
<artifact>
<path>${maven.multiModuleProjectDirectory}/distribution/target/mapstruct-{{projectVersion}}-dist.tar.gz</path>
</artifact>
<artifact>
<path>${maven.multiModuleProjectDirectory}/distribution/target/mapstruct-{{projectVersion}}-dist.zip</path>
</artifact>
</artifacts>
</files>
</jreleaser>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
13 changes: 12 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
<module>core</module>
<module>core-jdk8</module>
<module>processor</module>
<module>integrationtest</module>
</modules>
<properties>
<maven.deploy.skip>true</maven.deploy.skip>
Expand Down Expand Up @@ -71,5 +70,17 @@
<module>distribution</module>
</modules>
</profile>
<profile>
<id>test</id>
<activation>
<property>
<name>release</name>
<value>!true</value>
</property>
</activation>
<modules>
<module>integrationtest</module>
</modules>
</profile>
</profiles>
</project>

0 comments on commit 6999ae1

Please sign in to comment.