Skip to content

Commit 3583c04

Browse files
added source and javadoc jars
added <distributionManagement> element
1 parent 6164239 commit 3583c04

File tree

2 files changed

+77
-1
lines changed

2 files changed

+77
-1
lines changed

pom.xml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,17 @@
3535
<url>[email protected]:vojtechhabarta/typescript-generator.git</url>
3636
</scm>
3737

38+
<distributionManagement>
39+
<snapshotRepository>
40+
41+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
42+
</snapshotRepository>
43+
<repository>
44+
45+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
46+
</repository>
47+
</distributionManagement>
48+
3849
<properties>
3950
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4051
</properties>
@@ -64,8 +75,73 @@
6475
<artifactId>maven-jar-plugin</artifactId>
6576
<version>2.5</version>
6677
</plugin>
78+
<plugin>
79+
<groupId>org.apache.maven.plugins</groupId>
80+
<artifactId>maven-source-plugin</artifactId>
81+
<version>2.4</version>
82+
</plugin>
83+
<plugin>
84+
<groupId>org.apache.maven.plugins</groupId>
85+
<artifactId>maven-javadoc-plugin</artifactId>
86+
<version>2.10.1</version>
87+
</plugin>
6788
</plugins>
6889

6990
</build>
7091

92+
<profiles>
93+
<profile>
94+
<id>attach-artifacts</id>
95+
<build>
96+
<plugins>
97+
<plugin>
98+
<groupId>org.apache.maven.plugins</groupId>
99+
<artifactId>maven-source-plugin</artifactId>
100+
<executions>
101+
<execution>
102+
<id>attach-sources</id>
103+
<goals>
104+
<goal>jar</goal>
105+
</goals>
106+
</execution>
107+
</executions>
108+
</plugin>
109+
<plugin>
110+
<groupId>org.apache.maven.plugins</groupId>
111+
<artifactId>maven-javadoc-plugin</artifactId>
112+
<executions>
113+
<execution>
114+
<id>attach-javadocs</id>
115+
<goals>
116+
<goal>jar</goal>
117+
</goals>
118+
</execution>
119+
</executions>
120+
</plugin>
121+
</plugins>
122+
</build>
123+
</profile>
124+
<profile>
125+
<id>sign-artifacts</id>
126+
<build>
127+
<plugins>
128+
<plugin>
129+
<groupId>org.apache.maven.plugins</groupId>
130+
<artifactId>maven-gpg-plugin</artifactId>
131+
<version>1.5</version>
132+
<executions>
133+
<execution>
134+
<id>sign-artifacts</id>
135+
<phase>verify</phase>
136+
<goals>
137+
<goal>sign</goal>
138+
</goals>
139+
</execution>
140+
</executions>
141+
</plugin>
142+
</plugins>
143+
</build>
144+
</profile>
145+
</profiles>
146+
71147
</project>

typescript-generator-maven-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<plugin>
3737
<groupId>org.apache.maven.plugins</groupId>
3838
<artifactId>maven-plugin-plugin</artifactId>
39-
<version>3.2</version>
39+
<version>3.3</version>
4040
<configuration>
4141
<goalPrefix>typescript-generator-maven-plugin</goalPrefix>
4242
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>

0 commit comments

Comments
 (0)