Skip to content

Commit 1cbee27

Browse files
committed
update pom
1 parent 68eb836 commit 1cbee27

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

gbfs-validator-java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
<dependency-check-maven.version>5.3.2</dependency-check-maven.version>
7777
<maven-scm-provider-gitexe.version>1.13.0</maven-scm-provider-gitexe.version>
7878
<maven-scm-api.version>1.13.0</maven-scm-api.version>
79-
79+
<jreleaser-maven-plugin.version>1.18.0</jreleaser-maven-plugin.version>
8080
<!-- empty argLine property, the value is set up by Jacoco during unit tests execution -->
8181
<argLine />
8282

pom.xml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
<properties>
2626
<sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
27+
<jreleaser-maven-plugin.version>1.18.0</jreleaser-maven-plugin.version>
2728
</properties>
2829

2930
<build>
@@ -36,5 +37,46 @@
3637
</plugins>
3738
</build>
3839
</profile>
40+
<profile>
41+
<id>publication</id>
42+
<properties>
43+
<altDeploymentRepository>local::default::file:./target/staging-deploy</altDeploymentRepository>
44+
</properties>
45+
<build>
46+
<defaultGoal>deploy</defaultGoal>
47+
<plugins>
48+
<plugin>
49+
<groupId>org.apache.maven.plugins</groupId>
50+
<artifactId>maven-javadoc-plugin</artifactId>
51+
<executions>
52+
<execution>
53+
<id>attach-javadocs</id>
54+
<goals>
55+
<goal>jar</goal>
56+
</goals>
57+
<configuration>
58+
<attach>true</attach>
59+
</configuration>
60+
</execution>
61+
</executions>
62+
</plugin>
63+
<plugin>
64+
<groupId>org.apache.maven.plugins</groupId>
65+
<artifactId>maven-source-plugin</artifactId>
66+
<executions>
67+
<execution>
68+
<id>attach-sources</id>
69+
<goals>
70+
<goal>jar</goal>
71+
</goals>
72+
<configuration>
73+
<attach>true</attach>
74+
</configuration>
75+
</execution>
76+
</executions>
77+
</plugin>
78+
</plugins>
79+
</build>
80+
</profile>
3981
</profiles>
4082
</project>

0 commit comments

Comments
 (0)