@@ -2,9 +2,9 @@ plugins {
22 id ' net.researchgate.release' version ' 3.0.0'
33 id ' java'
44 id ' maven-publish'
5- // id 'signing'
6- // id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
7- id ' org.jreleaser' version ' 1.19.0'
5+ id ' signing'
6+ id(" io.github.gradle-nexus.publish-plugin" ) version " 1.3.0"
7+ // id 'org.jreleaser' version '1.19.0'
88}
99group = ' fr.maif'
1010
@@ -86,55 +86,60 @@ subprojects {
8686 }
8787 }
8888 }
89- repositories {
90- maven {
91- url = layout. buildDirectory. dir(' staging-deploy' )
92- }
89+ signing {
90+ sign publishing. publications. mavenJava
9391 }
92+ // repositories {
93+ // maven {
94+ // url = layout.buildDirectory.dir('staging-deploy')
95+ // }
96+ // }
9497
9598
96- jreleaser {
97- signing {
98- active = ' ALWAYS'
99- armored = true
100- }
101- deploy {
102- maven {
103- mavenCentral {
104- sonatype {
105- active = ' ALWAYS'
106- url = ' https://central.sonatype.com/api/v1/publisher'
107- stagingRepository(' build/staging-deploy' )
108- }
109- }
110- nexus2 {
111- ' snapshot-deploy' {
112- active = ' SNAPSHOT'
113- snapshotUrl = ' https://central.sonatype.com/repository/maven-snapshots/'
114- applyMavenCentralRules = true
115- snapshotSupported = true
116- closeRepository = true
117- releaseRepository = true
118- stagingRepository(layout. buildDirectory. dir(' staging-deploy' ). get(). asFile. getAbsolutePath())
119- }
120- }
121- }
122- }
123- }
99+ // jreleaser {
100+ // signing {
101+ // active = 'ALWAYS'
102+ // armored = true
103+ // }
104+ // deploy {
105+ // maven {
106+ // mavenCentral {
107+ // sonatype {
108+ // active = 'ALWAYS'
109+ // url = 'https://central.sonatype.com/api/v1/publisher'
110+ // stagingRepository('build/staging-deploy')
111+ // }
112+ // }
113+ // nexus2 {
114+ // 'snapshot-deploy' {
115+ // active = 'SNAPSHOT'
116+ // snapshotUrl = 'https://central.sonatype.com/repository/maven-snapshots/'
117+ // applyMavenCentralRules = true
118+ // snapshotSupported = true
119+ // closeRepository = true
120+ // releaseRepository = true
121+ // stagingRepository(layout.buildDirectory.dir('staging-deploy').get().asFile.getAbsolutePath())
122+ // }
123+ // }
124+ // }
125+ // }
126+ // }
124127 }
125128
126129}
127130
128- // nexusPublishing {
129- // repositories {
130- // sonatype {
131+ nexusPublishing {
132+ repositories {
133+ sonatype {
134+ nexusUrl. set(uri(" https://ossrh-staging-api.central.sonatype.com/service/local/" ))
135+ snapshotRepositoryUrl. set(uri(" https://central.sonatype.com/repository/maven-snapshots/" ))
131136// nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
132137// snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
133- // username = System.env.SONATYPE_USERNAME
134- // password = System.env.SONATYPE_PASSWORD
135- // }
136- // }
137- // }
138+ username = System . env. SONATYPE_USERNAME
139+ password = System . env. SONATYPE_PASSWORD
140+ }
141+ }
142+ }
138143
139144
140145
0 commit comments