Skip to content

Commit 45e83b0

Browse files
committed
2 parents b4cb015 + 37c0042 commit 45e83b0

File tree

4 files changed

+25
-25
lines changed

4 files changed

+25
-25
lines changed

.github/workflows/maven-package.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,37 +19,36 @@ jobs:
1919
id: get_version
2020
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
2121

22-
- name: Set up JDK 11 for deploy to github packages
22+
- name: Set up JDK 11 for deploy to OSSRH
2323
uses: actions/setup-java@v1
2424
with:
2525
java-version: 11
26-
server-id: github
26+
server-id: ossrh
27+
server-username: MAVEN_USERNAME
28+
server-password: MAVEN_CENTRAL_TOKEN
29+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
30+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
2731

2832
- name: Build with Maven
2933
run: mvn -B package --file pom.xml
3034

3135
- name: Update package version
3236
run: mvn versions:set -DnewVersion=${{ steps.get_version.outputs.VERSION }}
3337

34-
- name: Publish to GitHub Packages Apache Maven
35-
run: mvn deploy -PgithubDeploy
38+
- name: Publish to Apache Maven Central
39+
run: mvn deploy -PossrhDeploy
3640
env:
37-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
42+
MAVEN_CENTRAL_TOKEN: ${{ secrets.NEXUS_PASSWORD }}
43+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
3844

39-
- name: Set up JDK 11 for deploy to OSSRH
45+
- name: Set up JDK 11 for deploy to github packages
4046
uses: actions/setup-java@v1
4147
with:
4248
java-version: 11
43-
server-id: ossrh
44-
server-username: MAVEN_USERNAME
45-
server-password: MAVEN_CENTRAL_TOKEN
46-
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
47-
gpg-passphrase: MAVEN_GPG_PASSPHRASE
49+
server-id: github
4850

49-
- name: Publish to Apache Maven Central
50-
run: mvn deploy -PossrhDeploy
51+
- name: Publish to GitHub Packages Apache Maven
52+
run: mvn deploy -PgithubDeploy
5153
env:
52-
MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
53-
MAVEN_CENTRAL_TOKEN: ${{ secrets.NEXUS_PASSWORD }}
54-
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
55-
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Si vous avez Maven, ajoutez ce qui suit aux dépendances de votre fichier `pom.x
2323
<dependency>
2424
<groupId>com.github.devlab-umontp</groupId>
2525
<artifactId>edt-iut-umontp</artifactId>
26-
<version>1.0.0</version>
26+
<version>1.3.0</version>
2727
</dependency>
2828
```
2929
>*Voir un exemple de fichier [pom.xml](https://github.com/DevLab-umontp/Librarie-Java-EDT/blob/main/ressources/pom.xml#L20L24) avec la librairie EDT IUT Montpellier*
@@ -32,7 +32,7 @@ Si vous avez Maven, ajoutez ce qui suit aux dépendances de votre fichier `pom.x
3232
Si vous utilisez Gradle, ajoutez ce qui suit aux dépendances de votre fichier `build.gradle`:
3333

3434
```
35-
implementation 'com.github.devlab-umontp:edt-iut-umontp:1.0.0'
35+
implementation 'com.github.devlab-umontp:edt-iut-umontp:1.3.0'
3636
```
3737

3838
## Exemple de code d'utilisation de la Librairie Java EDT IUT Montpellier

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
theme: jekyll-theme-cayman

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<name>emploi du temps IUT Montpellier</name>
1212
<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>
13+
<url>https://github.com/DevLab-umontp/Librairie-Java-EDT</url>
1414

1515
<properties>
1616
<!-- base -->
@@ -78,13 +78,13 @@
7878

7979
<issueManagement>
8080
<system>github</system>
81-
<url>https://github.com/DevLab-umontp/Librarie-Java-EDT/issues</url>
81+
<url>https://github.com/DevLab-umontp/Librairie-Java-EDT/issues</url>
8282
</issueManagement>
8383

8484
<scm>
85-
<connection>scm:git:git://github.com/DevLab-umontp/API-JAVA-EDT.git</connection>
86-
<developerConnection>scm:git:ssh://github.com:DevLab-umontp/API-JAVA-EDT.git</developerConnection>
87-
<url>http://github.com/DevLab-umontp/API-JAVA-EDT</url>
85+
<connection>scm:git:git://github.com/DevLab-umontp/Librairie-Java-EDT.git</connection>
86+
<developerConnection>scm:git:ssh://github.com:DevLab-umontp/Librairie-Java-EDT.git</developerConnection>
87+
<url>http://github.com/DevLab-umontp/Librairie-Java-EDT</url>
8888
</scm>
8989

9090

@@ -182,7 +182,7 @@
182182
<repository>
183183
<id>github</id>
184184
<name>GitHub DevLab-umontp Apache Maven Packages</name>
185-
<url>https://maven.pkg.github.com/DevLab-umontp/Librarie-Java-EDT</url>
185+
<url>https://maven.pkg.github.com/DevLab-umontp/Librairie-Java-EDT</url>
186186
</repository>
187187
</distributionManagement>
188188
</profile>

0 commit comments

Comments
 (0)