File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,10 +5,11 @@ before_install:
55 - echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust
66
77install :
8- mvn --settings .maven.xml install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V
8+ - mvn -f mdnsjava install -B -V
9+ - mvn --settings .maven.xml install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V
910
1011script :
11- mvn clean deploy --settings .maven.xml -DskipTests=true - B -U -Prelease
12+ mvn clean deploy --settings .maven.xml -B -U -Prelease
1213
1314before_deploy :
1415 - mvn help:evaluate -N -Dexpression=project.version|grep -v '\['
Original file line number Diff line number Diff line change 8080 <url >https://oss.sonatype.org/service/local/staging/deploy/maven2</url >
8181 </repository >
8282 </distributionManagement >
83+
84+ <profiles >
85+ <profile >
86+ <id >release</id >
87+ <activation >
88+ <property >
89+ <name >release</name >
90+ </property >
91+ </activation >
92+
93+ <build >
94+ <plugins >
95+ <plugin >
96+ <groupId >org.apache.maven.plugins</groupId >
97+ <artifactId >maven-source-plugin</artifactId >
98+ <version >3.0.1</version >
99+ <executions >
100+ <execution >
101+ <id >attach-sources</id >
102+ <goals >
103+ <goal >jar-no-fork</goal >
104+ </goals >
105+ </execution >
106+ </executions >
107+ </plugin >
108+ <plugin >
109+ <groupId >org.apache.maven.plugins</groupId >
110+ <artifactId >maven-javadoc-plugin</artifactId >
111+ <version >3.0.1</version >
112+ <executions >
113+ <execution >
114+ <id >attach-javadocs</id >
115+ <goals >
116+ <goal >jar</goal >
117+ </goals >
118+ </execution >
119+ </executions >
120+ <configuration >
121+ <failOnError >false</failOnError >
122+ </configuration >
123+ </plugin >
124+
125+ <!-- To release to Maven central -->
126+ <plugin >
127+ <groupId >org.sonatype.plugins</groupId >
128+ <artifactId >nexus-staging-maven-plugin</artifactId >
129+ <version >1.6.8</version >
130+ <extensions >true</extensions >
131+ <configuration >
132+ <serverid >ossrh</serverid >
133+ <nexusurl >https://oss.sonatype.org/</nexusurl >
134+ <autoreleaseafterclose >true</autoreleaseafterclose >
135+ </configuration >
136+ </plugin >
137+
138+ <!-- To sign the artifacts -->
139+ <plugin >
140+ <groupId >org.apache.maven.plugins</groupId >
141+ <artifactId >maven-gpg-plugin</artifactId >
142+ <version >1.6</version >
143+ <executions >
144+ <execution >
145+ <id >sign-artifacts</id >
146+ <phase >verify</phase >
147+ <goals >
148+ <goal >sign</goal >
149+ </goals >
150+ </execution >
151+ </executions >
152+ </plugin >
153+ </plugins >
154+ </build >
155+ </profile >
156+ </profiles >
83157</project >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments