Skip to content

Commit a4a72d1

Browse files
committed
Generate sources and documentation in deployable modules
1 parent 1fcdbe5 commit a4a72d1

File tree

5 files changed

+81
-11
lines changed

5 files changed

+81
-11
lines changed

pom.xml

Lines changed: 51 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,19 +116,47 @@
116116
<groupId>net.alchim31.maven</groupId>
117117
<artifactId>scala-maven-plugin</artifactId>
118118
<version>4.9.2</version>
119-
<configuration>
120-
<args>
121-
<arg>java-output-version 11</arg>
122-
<arg>-feature</arg>
123-
<arg>-deprecation</arg>
124-
</args>
125-
</configuration>
126119
<executions>
127120
<execution>
121+
<id>add-sources</id>
122+
<phase>process-sources</phase>
123+
<goals>
124+
<goal>add-source</goal>
125+
</goals>
126+
</execution>
127+
<execution>
128+
<id>compile</id>
129+
<phase>compile</phase>
128130
<goals>
129131
<goal>compile</goal>
130-
<goal>testCompile</goal>
131132
</goals>
133+
<configuration>
134+
<arg>-java-output-version 11</arg>
135+
<arg>-feature</arg>
136+
<arg>-deprecation</arg>
137+
</configuration>
138+
</execution>
139+
<execution>
140+
<id>package-doc-jar</id>
141+
<phase>package</phase>
142+
<goals>
143+
<goal>doc-jar</goal>
144+
</goals>
145+
<configuration>
146+
<scaladocClassName>dotty.tools.scaladoc.Main</scaladocClassName>
147+
<sourceDir>${project.build.outputDirectory}</sourceDir>
148+
<args>-nobootcp</args>
149+
<includes>
150+
<include>**/*.tasty</include>
151+
</includes>
152+
<dependencies>
153+
<dependency>
154+
<groupId>org.scala-lang</groupId>
155+
<artifactId>scaladoc_3</artifactId>
156+
<version>${scala.version}</version>
157+
</dependency>
158+
</dependencies>
159+
</configuration>
132160
</execution>
133161
</executions>
134162
</plugin>
@@ -152,6 +180,21 @@
152180
<artifactId>maven-surefire-plugin</artifactId>
153181
<version>3.5.2</version>
154182
</plugin>
183+
<plugin>
184+
<groupId>org.apache.maven.plugins</groupId>
185+
<artifactId>maven-source-plugin</artifactId>
186+
<version>3.3.1</version>
187+
</plugin>
188+
<plugin>
189+
<groupId>org.apache.maven.plugins</groupId>
190+
<artifactId>maven-javadoc-plugin</artifactId>
191+
<version>3.11.1</version>
192+
</plugin>
193+
<plugin>
194+
<groupId>org.apache.maven.plugins</groupId>
195+
<artifactId>maven-deploy-plugin</artifactId>
196+
<version>3.1.3</version>
197+
</plugin>
155198
<plugin>
156199
<groupId>org.scalatest</groupId>
157200
<artifactId>scalatest-maven-plugin</artifactId>

vertx-lang-scala-codegen/pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,16 @@
2929
<version>4.0.3</version>
3030
</dependency>
3131
</dependencies>
32+
33+
<build>
34+
<plugins>
35+
<plugin>
36+
<groupId>org.apache.maven.plugins</groupId>
37+
<artifactId>maven-deploy-plugin</artifactId>
38+
<configuration>
39+
<skip>true</skip>
40+
</configuration>
41+
</plugin>
42+
</plugins>
43+
</build>
3244
</project>

vertx-lang-scala-itests/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@
5858
<groupId>org.scalatest</groupId>
5959
<artifactId>scalatest-maven-plugin</artifactId>
6060
</plugin>
61+
<plugin>
62+
<groupId>org.apache.maven.plugins</groupId>
63+
<artifactId>maven-deploy-plugin</artifactId>
64+
<configuration>
65+
<skip>true</skip>
66+
</configuration>
67+
</plugin>
6168
</plugins>
6269
</build>
6370

vertx-lang-scala-test/pom.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

77
<parent>
@@ -52,6 +52,10 @@
5252

5353
<build>
5454
<plugins>
55+
<plugin>
56+
<groupId>org.apache.maven.plugins</groupId>
57+
<artifactId>maven-source-plugin</artifactId>
58+
</plugin>
5559
<plugin>
5660
<groupId>org.scalatest</groupId>
5761
<artifactId>scalatest-maven-plugin</artifactId>
@@ -62,4 +66,4 @@
6266
</plugin>
6367
</plugins>
6468
</build>
65-
</project>
69+
</project>

vertx-lang-scala/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,10 @@
592592
</execution>
593593
</executions>
594594
</plugin>
595+
<plugin>
596+
<groupId>org.apache.maven.plugins</groupId>
597+
<artifactId>maven-source-plugin</artifactId>
598+
</plugin>
595599
<plugin>
596600
<groupId>net.alchim31.maven</groupId>
597601
<artifactId>scala-maven-plugin</artifactId>

0 commit comments

Comments
 (0)