Skip to content

Commit 321cf90

Browse files
committed
Change jreleaser to publish to org.lfenergy.powergridmodel
Signed-off-by: Wei-Qiang Zhou <wei-qiang.zhou@alliander.com>
1 parent b58b6ba commit 321cf90

2 files changed

Lines changed: 12 additions & 15 deletions

File tree

‎.github/workflows/java-gradle-ci.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
publish:
5656
name: Publish to maven central
5757
needs: [build-and-test]
58-
# if: always() && github.ref_type == 'tag'
58+
if: always() && github.ref_type == 'tag'
5959
runs-on: ubuntu-latest
6060
permissions:
6161
id-token: write
@@ -99,5 +99,5 @@ jobs:
9999
run: |
100100
echo "Performing release Gradle publish for tag: $SANITIZED_TAG"
101101
102-
./gradlew clean build publish -Pversion=0.1-SNAPSHOT
103-
./gradlew jreleaserDeploy -Pversion=0.1-SNAPSHOT
102+
./gradlew clean build publish -Pversion=$SANITIZED_TAG
103+
./gradlew jreleaserDeploy -Pversion=$SANITIZED_TAG

‎build.gradle‎

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
//
33
// SPDX-License-Identifier: MPL-2.0
44

5-
6-
import org.jreleaser.model.Active
7-
85
import javax.inject.Inject
96

107
plugins {
@@ -303,11 +300,11 @@ publishing {
303300
publications {
304301
mavenJava(MavenPublication) {
305302
from components.java
306-
groupId = 'io.github.wei-qiang'
307-
artifactId = 'lib-power-grid-model'
303+
groupId = 'org.lfenergy.powergridmodel'
304+
artifactId = 'power-grid-model-ffm'
308305

309306
pom {
310-
name = 'lib-power-grid-model'
307+
name = 'power-grid-model-ffm'
311308
description = 'Java package which wraps PGM core shared library'
312309
url = 'https://github.com/PowerGridModel/libpower-grid-model-java'
313310
organization {
@@ -346,12 +343,12 @@ jreleaser {
346343
}
347344
deploy {
348345
maven {
349-
// mavenCentral {
350-
// 'release-deploy' {
351-
// active = 'RELEASE'
352-
// url = 'https://central.sonatype.com/api/v1/publisher'
353-
// }
354-
// }
346+
mavenCentral {
347+
'release-deploy' {
348+
active = 'RELEASE'
349+
url = 'https://central.sonatype.com/api/v1/publisher'
350+
}
351+
}
355352
nexus2 {
356353
'snapshot-deploy' {
357354
active = 'SNAPSHOT'

0 commit comments

Comments
 (0)