Skip to content

Commit 89a5e71

Browse files
committed
Merge branch 'main' of https://github.com/DevLab-umontp/API-JAVA-EDT into CI-SonarCloud
2 parents 7e12a6c + ff3bd69 commit 89a5e71

File tree

14 files changed

+118
-31
lines changed

14 files changed

+118
-31
lines changed

.github/workflows/sonarclourd.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: Build
22
on:
33
push:
4-
branches:
5-
- master
4+
branches: [ main ]
65
pull_request:
76
types: [opened, synchronize, reopened]
87
jobs:
@@ -33,4 +32,4 @@ jobs:
3332
env:
3433
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
3534
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
36-
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
35+
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar

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>
@@ -22,6 +23,18 @@
2223
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
2324
</properties>
2425

26+
<profiles>
27+
<profile>
28+
<id>github-deploy</id>
29+
<repositories>
30+
<repository>
31+
<id>github</id>
32+
<url>http://jarsm2.dyndns.dk</url>
33+
</repository>
34+
</repositories>
35+
</profile>
36+
</profiles>
37+
2538
<dependencyManagement>
2639
<dependencies>
2740
<dependency>
@@ -48,6 +61,39 @@
4861
</dependency>
4962
</dependencies>
5063

64+
<developers>
65+
<developer>
66+
<name>Emerick BIRON</name>
67+
<email>emerick.biron@gmail.com</email>
68+
<organization>com.github.devlab-umontp</organization>
69+
<organizationUrl>https://github.com/DevLab-umontp</organizationUrl>
70+
</developer>
71+
<developer>
72+
<name>Mathieu SOYSAL</name>
73+
<email>Mathieu.Soysal@outlook.fr</email>
74+
<organization>com.github.devlab-umontp</organization>
75+
<organizationUrl>https://github.com/DevLab-umontp</organizationUrl>
76+
</developer>
77+
</developers>
78+
79+
<scm>
80+
<connection>scm:git:git://github.com/DevLab-umontp/API-JAVA-EDT.git</connection>
81+
<developerConnection>scm:git:ssh://github.com:DevLab-umontp/API-JAVA-EDT.git</developerConnection>
82+
<url>http://github.com/DevLab-umontp/API-JAVA-EDT</url>
83+
</scm>
84+
85+
<distributionManagement>
86+
<snapshotRepository>
87+
<id>ossrh</id>
88+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
89+
</snapshotRepository>
90+
<repository>
91+
<id>ossrh</id>
92+
<name>Sonatype</name>
93+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
94+
</repository>
95+
</distributionManagement>
96+
5197
<build>
5298
<pluginManagement>
5399
<!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
@@ -59,19 +105,10 @@
59105
<configuration>
60106
<includes>
61107
<source>.</source>
62-
<include>src/test/java/**</include>
108+
<include>src/main/java/**</include>
63109
</includes>
64110
</configuration>
65111
</plugin>
66-
<plugin>
67-
<groupId>org.apache.maven.plugins</groupId>
68-
<artifactId>maven-javadoc-plugin</artifactId>
69-
<version>3.0.0</version>
70-
<configuration>
71-
<source>11</source>
72-
<target>11</target>
73-
</configuration>
74-
</plugin>
75112
<plugin>
76113
<groupId>org.apache.maven.plugins</groupId>
77114
<artifactId>maven-failsafe-plugin</artifactId>
@@ -86,6 +123,57 @@
86123
<target>11</target>
87124
</configuration>
88125
</plugin>
126+
<plugin>
127+
<groupId>org.sonatype.plugins</groupId>
128+
<artifactId>nexus-staging-maven-plugin</artifactId>
129+
<version>1.6.7</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+
<plugin>
138+
<groupId>org.apache.maven.plugins</groupId>
139+
<artifactId>maven-source-plugin</artifactId>
140+
<version>2.2.1</version>
141+
<executions>
142+
<execution>
143+
<id>attach-sources</id>
144+
<goals>
145+
<goal>jar-no-fork</goal>
146+
</goals>
147+
</execution>
148+
</executions>
149+
</plugin>
150+
<plugin>
151+
<groupId>org.apache.maven.plugins</groupId>
152+
<artifactId>maven-javadoc-plugin</artifactId>
153+
<version>2.9.1</version>
154+
<executions>
155+
<execution>
156+
<id>attach-javadocs</id>
157+
<goals>
158+
<goal>jar</goal>
159+
</goals>
160+
</execution>
161+
</executions>
162+
</plugin>
163+
<plugin>
164+
<groupId>org.apache.maven.plugins</groupId>
165+
<artifactId>maven-gpg-plugin</artifactId>
166+
<version>1.5</version>
167+
<executions>
168+
<execution>
169+
<id>sign-artifacts</id>
170+
<phase>verify</phase>
171+
<goals>
172+
<goal>sign</goal>
173+
</goals>
174+
</execution>
175+
</executions>
176+
</plugin>
89177
</plugins>
90178
</pluginManagement>
91179
</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;

0 commit comments

Comments
 (0)