Skip to content

Commit ff3bd69

Browse files
🔀 Merge pull request #23 from DevLab-umontp/public-packages
🚀 Publication du package
2 parents be3b7b1 + d526177 commit ff3bd69

File tree

13 files changed

+116
-28
lines changed

13 files changed

+116
-28
lines changed

pom.xml

Lines changed: 104 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55

6-
<groupId>edt.umontp.fr</groupId>
7-
<artifactId>api-java-edt</artifactId>
8-
<version>1.0-SNAPSHOT</version>
6+
<groupId>com.github.devlab-umontp</groupId>
7+
<artifactId>edt-iut-umontp</artifactId>
8+
<version>1.0.0</version>
9+
<packaging>jar</packaging>
910

10-
<name>api-java-edt</name>
11-
<!-- FIXME change it to the project's website -->
12-
<url>http://www.example.com</url>
11+
<name>emploi du temps IUT Montpellier</name>
12+
<description>Package Java permettant de récupérer l'emploi du temps des cours de l'IUT de Montpellier.</description>
13+
<url>https://github.com/DevLab-umontp/API-JAVA-EDT</url>
1314

1415
<properties>
1516
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -20,6 +21,18 @@
2021
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
2122
</properties>
2223

24+
<profiles>
25+
<profile>
26+
<id>github-deploy</id>
27+
<repositories>
28+
<repository>
29+
<id>github</id>
30+
<url>http://jarsm2.dyndns.dk</url>
31+
</repository>
32+
</repositories>
33+
</profile>
34+
</profiles>
35+
2336
<dependencyManagement>
2437
<dependencies>
2538
<dependency>
@@ -46,6 +59,39 @@
4659
</dependency>
4760
</dependencies>
4861

62+
<developers>
63+
<developer>
64+
<name>Emerick BIRON</name>
65+
<email>emerick.biron@gmail.com</email>
66+
<organization>com.github.devlab-umontp</organization>
67+
<organizationUrl>https://github.com/DevLab-umontp</organizationUrl>
68+
</developer>
69+
<developer>
70+
<name>Mathieu SOYSAL</name>
71+
<email>Mathieu.Soysal@outlook.fr</email>
72+
<organization>com.github.devlab-umontp</organization>
73+
<organizationUrl>https://github.com/DevLab-umontp</organizationUrl>
74+
</developer>
75+
</developers>
76+
77+
<scm>
78+
<connection>scm:git:git://github.com/DevLab-umontp/API-JAVA-EDT.git</connection>
79+
<developerConnection>scm:git:ssh://github.com:DevLab-umontp/API-JAVA-EDT.git</developerConnection>
80+
<url>http://github.com/DevLab-umontp/API-JAVA-EDT</url>
81+
</scm>
82+
83+
<distributionManagement>
84+
<snapshotRepository>
85+
<id>ossrh</id>
86+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
87+
</snapshotRepository>
88+
<repository>
89+
<id>ossrh</id>
90+
<name>Sonatype</name>
91+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
92+
</repository>
93+
</distributionManagement>
94+
4995
<build>
5096
<pluginManagement>
5197
<!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
@@ -57,19 +103,10 @@
57103
<configuration>
58104
<includes>
59105
<source>.</source>
60-
<include>src/test/java/**</include>
106+
<include>src/main/java/**</include>
61107
</includes>
62108
</configuration>
63109
</plugin>
64-
<plugin>
65-
<groupId>org.apache.maven.plugins</groupId>
66-
<artifactId>maven-javadoc-plugin</artifactId>
67-
<version>3.0.0</version>
68-
<configuration>
69-
<source>11</source>
70-
<target>11</target>
71-
</configuration>
72-
</plugin>
73110
<plugin>
74111
<groupId>org.apache.maven.plugins</groupId>
75112
<artifactId>maven-failsafe-plugin</artifactId>
@@ -84,6 +121,57 @@
84121
<target>11</target>
85122
</configuration>
86123
</plugin>
124+
<plugin>
125+
<groupId>org.sonatype.plugins</groupId>
126+
<artifactId>nexus-staging-maven-plugin</artifactId>
127+
<version>1.6.7</version>
128+
<extensions>true</extensions>
129+
<configuration>
130+
<serverId>ossrh</serverId>
131+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
132+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
133+
</configuration>
134+
</plugin>
135+
<plugin>
136+
<groupId>org.apache.maven.plugins</groupId>
137+
<artifactId>maven-source-plugin</artifactId>
138+
<version>2.2.1</version>
139+
<executions>
140+
<execution>
141+
<id>attach-sources</id>
142+
<goals>
143+
<goal>jar-no-fork</goal>
144+
</goals>
145+
</execution>
146+
</executions>
147+
</plugin>
148+
<plugin>
149+
<groupId>org.apache.maven.plugins</groupId>
150+
<artifactId>maven-javadoc-plugin</artifactId>
151+
<version>2.9.1</version>
152+
<executions>
153+
<execution>
154+
<id>attach-javadocs</id>
155+
<goals>
156+
<goal>jar</goal>
157+
</goals>
158+
</execution>
159+
</executions>
160+
</plugin>
161+
<plugin>
162+
<groupId>org.apache.maven.plugins</groupId>
163+
<artifactId>maven-gpg-plugin</artifactId>
164+
<version>1.5</version>
165+
<executions>
166+
<execution>
167+
<id>sign-artifacts</id>
168+
<phase>verify</phase>
169+
<goals>
170+
<goal>sign</goal>
171+
</goals>
172+
</execution>
173+
</executions>
174+
</plugin>
87175
</plugins>
88176
</pluginManagement>
89177
</build>

src/main/java/edt/umontp/fr/Cours.java renamed to src/main/java/fr/umontp/edt/Cours.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package edt.umontp.fr;
1+
package fr.umontp.edt;
22

33
import java.text.ParseException;
44
import java.time.Duration;

src/main/java/edt/umontp/fr/EmploiDuTemps.java renamed to src/main/java/fr/umontp/edt/EmploiDuTemps.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package edt.umontp.fr;
1+
package fr.umontp.edt;
22

33
import java.io.File;
44
import java.io.FileInputStream;

src/main/java/edt/umontp/fr/EmploiDuTempsProxy.java renamed to src/main/java/fr/umontp/edt/EmploiDuTempsProxy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package edt.umontp.fr;
1+
package fr.umontp.edt;
22

33
import java.time.LocalDate;
44
import java.util.EnumMap;

src/main/java/edt/umontp/fr/Groupe.java renamed to src/main/java/fr/umontp/edt/Groupe.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package edt.umontp.fr;
1+
package fr.umontp.edt;
22

33
import java.util.ArrayList;
44
import java.util.Collection;

src/main/java/edt/umontp/fr/InterfaceEmploiDuTemps.java renamed to src/main/java/fr/umontp/edt/InterfaceEmploiDuTemps.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package edt.umontp.fr;
1+
package fr.umontp.edt;
22

33
/**
44
* InterfaceEmploisDuTemps est un interface proposant des méthodes pour un emploi du temps

src/main/java/edt/umontp/fr/Planifiable.java renamed to src/main/java/fr/umontp/edt/Planifiable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package edt.umontp.fr;
1+
package fr.umontp.edt;
22

33
import java.time.LocalDate;
44

src/main/java/edt/umontp/fr/Planning.java renamed to src/main/java/fr/umontp/edt/Planning.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package edt.umontp.fr;
1+
package fr.umontp.edt;
22

33
import java.time.LocalDate;
44
import java.util.ArrayList;

src/test/java/edt/umontp/fr/CoursTest.java renamed to src/test/java/fr/umontp/edt/CoursTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package edt.umontp.fr;
1+
package fr.umontp.edt;
22

33
import static org.junit.jupiter.api.Assertions.assertAll;
44
import static org.junit.jupiter.api.Assertions.assertEquals;

src/test/java/edt/umontp/fr/EmploiDuTempsProxyTest.java renamed to src/test/java/fr/umontp/edt/EmploiDuTempsProxyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package edt.umontp.fr;
1+
package fr.umontp.edt;
22

33
import static org.junit.jupiter.api.Assertions.assertAll;
44
import static org.junit.jupiter.api.Assertions.assertTrue;

0 commit comments

Comments
 (0)