File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 22//
33// SPDX-License-Identifier: MPL-2.0
44
5-
6- import org.jreleaser.model.Active
7-
85import javax.inject.Inject
96
107plugins {
@@ -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'
You can’t perform that action at this time.
0 commit comments