Skip to content

Commit e51143c

Browse files
committed
Separate release profile
1 parent fe0eec0 commit e51143c

File tree

2 files changed

+55
-34
lines changed

2 files changed

+55
-34
lines changed

atomicfu/pom.xml

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,31 @@
2727
<artifactId>atomicfu</artifactId>
2828
<packaging>jar</packaging>
2929

30-
<!-- documentation -->
31-
<build>
32-
<plugins>
33-
<plugin>
34-
<groupId>org.jetbrains.dokka</groupId>
35-
<artifactId>dokka-maven-plugin</artifactId>
36-
<executions>
37-
<!-- attach javadoc with dokka -->
38-
<execution>
39-
<id>attach-javadocs</id>
40-
<phase>package</phase>
41-
<goals>
42-
<goal>javadocJar</goal>
43-
</goals>
44-
</execution>
45-
</executions>
46-
</plugin>
47-
</plugins>
48-
</build>
30+
<!-- documentation for release -->
31+
<profiles>
32+
<profile>
33+
<id>release</id>
34+
<activation>
35+
<activeByDefault>false</activeByDefault>
36+
</activation>
37+
<build>
38+
<plugins>
39+
<plugin>
40+
<groupId>org.jetbrains.dokka</groupId>
41+
<artifactId>dokka-maven-plugin</artifactId>
42+
<executions>
43+
<!-- attach javadoc with dokka -->
44+
<execution>
45+
<id>attach-javadocs</id>
46+
<phase>package</phase>
47+
<goals>
48+
<goal>javadocJar</goal>
49+
</goals>
50+
</execution>
51+
</executions>
52+
</plugin>
53+
</plugins>
54+
</build>
55+
</profile>
56+
</profiles>
4957
</project>

pom.xml

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -71,21 +71,6 @@
7171
<testSourceDirectory>src/test/kotlin</testSourceDirectory>
7272

7373
<plugins>
74-
<!-- publish sources -->
75-
<plugin>
76-
<artifactId>maven-source-plugin</artifactId>
77-
<configuration>
78-
</configuration>
79-
<executions>
80-
<execution>
81-
<phase>package</phase>
82-
<id>attach-sources</id>
83-
<goals>
84-
<goal>jar-no-fork</goal>
85-
</goals>
86-
</execution>
87-
</executions>
88-
</plugin>
8974
<!-- compile kotlin -->
9075
<plugin>
9176
<groupId>org.jetbrains.kotlin</groupId>
@@ -138,6 +123,34 @@
138123
</pluginManagement>
139124
</build>
140125

126+
<profiles>
127+
<profile>
128+
<id>release</id>
129+
<activation>
130+
<activeByDefault>false</activeByDefault>
131+
</activation>
132+
<build>
133+
<plugins>
134+
<!-- publish sources -->
135+
<plugin>
136+
<artifactId>maven-source-plugin</artifactId>
137+
<configuration>
138+
</configuration>
139+
<executions>
140+
<execution>
141+
<phase>package</phase>
142+
<id>attach-sources</id>
143+
<goals>
144+
<goal>jar-no-fork</goal>
145+
</goals>
146+
</execution>
147+
</executions>
148+
</plugin>
149+
</plugins>
150+
</build>
151+
</profile>
152+
</profiles>
153+
141154
<pluginRepositories>
142155
<pluginRepository>
143156
<id>bintray-kotlin-dokka</id>

0 commit comments

Comments
 (0)