Skip to content

Commit be524b8

Browse files
committed
Support PCT for multi-module Maven projects
1 parent 8d0cf39 commit be524b8

File tree

3 files changed

+16
-22
lines changed

3 files changed

+16
-22
lines changed

dgm-builder/pom.xml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
</license>
2222
</licenses>
2323

24-
<properties>
25-
<maven.deploy.skip>true</maven.deploy.skip>
26-
</properties>
27-
2824
<build>
2925
<plugins>
3026
<plugin>
@@ -74,19 +70,4 @@
7470
<version>${groovy.version}</version>
7571
</dependency>
7672
</dependencies>
77-
78-
<profiles>
79-
<profile>
80-
<id>skip-installation</id>
81-
<activation>
82-
<property>
83-
<name>set.changelist</name>
84-
<value>true</value>
85-
</property>
86-
</activation>
87-
<properties>
88-
<maven.install.skip>true</maven.install.skip>
89-
</properties>
90-
</profile>
91-
</profiles>
9273
</project>

lib/pom.xml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,21 @@
2929
<executions>
3030
<execution>
3131
<goals>
32-
<goal>properties</goal>
32+
<goal>copy</goal>
3333
</goals>
34+
<phase>generate-sources</phase>
35+
<configuration>
36+
<artifactItems>
37+
<artifactItem>
38+
<groupId>com.cloudbees</groupId>
39+
<artifactId>groovy-cps-dgm-builder</artifactId>
40+
<version>${project.version}</version>
41+
<classifier>jar-with-dependencies</classifier>
42+
</artifactItem>
43+
</artifactItems>
44+
<outputDirectory>${project.build.directory}</outputDirectory>
45+
<overWriteIfNewer>true</overWriteIfNewer>
46+
</configuration>
3447
</execution>
3548
</executions>
3649
</plugin>
@@ -49,7 +62,7 @@
4962
<executable>java</executable>
5063
<arguments>
5164
<argument>-jar</argument>
52-
<argument>${com.cloudbees:groovy-cps-dgm-builder:jar:jar-with-dependencies}</argument>
65+
<argument>${project.build.directory}/groovy-cps-dgm-builder-${project.version}-jar-with-dependencies.jar</argument>
5366
<argument>${project.build.directory}/generated-sources/dgm</argument>
5467
</arguments>
5568
</configuration>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.jenkins-ci.plugins</groupId>
66
<artifactId>plugin</artifactId>
7-
<version>4.56</version>
7+
<version>4.57</version>
88
<relativePath/>
99
</parent>
1010
<groupId>org.jenkins-ci.plugins.workflow</groupId>

0 commit comments

Comments
 (0)