Skip to content

Commit cb7e6cc

Browse files
committed
CI
1 parent 02cd0c7 commit cb7e6cc

File tree

9 files changed

+55
-53
lines changed

9 files changed

+55
-53
lines changed

build.gradle

Lines changed: 48 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}
99
group = '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

demo/build.gradle

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11

22

3-
//project.tasks.jreleaser.enabled = false
4-
//tasks.with {it.
5-
//
6-
//}
7-
//tasks.withType(PublishToMavenRepository).configureEach { it.enabled = false }
3+
project.tasks.publishToSonatype.enabled = false
4+
tasks.withType(PublishToMavenRepository).configureEach { it.enabled = false }

demo/demo-in-memory-vanilla/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

33

4-
//tasks.withType(PublishToMavenRepository).configureEach { it.enabled = false }
4+
tasks.withType(PublishToMavenRepository).configureEach { it.enabled = false }
55
/* Parametre de compilation java */
66
compileJava {
77
// To enable argument names in reporting and debugging

demo/demo-in-memory/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

33

4-
//tasks.withType(PublishToMavenRepository).configureEach { it.enabled = false }
4+
tasks.withType(PublishToMavenRepository).configureEach { it.enabled = false }
55
/* Parametre de compilation java */
66
compileJava {
77
// To enable argument names in reporting and debugging

demo/demo-postgres-kafka-reactive/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
//tasks.withType(PublishToMavenRepository).configureEach { it.enabled = false }
3+
tasks.withType(PublishToMavenRepository).configureEach { it.enabled = false }
44
/* Parametre de compilation java */
55
compileJava {
66
// To enable argument names in reporting and debugging

demo/demo-postgres-kafka/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
//tasks.withType(PublishToMavenRepository).configureEach { it.enabled = false }
3+
tasks.withType(PublishToMavenRepository).configureEach { it.enabled = false }
44
/* Parametre de compilation java */
55
compileJava {
66
// To enable argument names in reporting and debugging

sample/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
//tasks.withType(PublishToMavenRepository).configureEach { it.enabled = false }
2+
tasks.withType(PublishToMavenRepository).configureEach { it.enabled = false }
33
//project.tasks.publishToSonatype.enabled = false
44

55
ext {

0 commit comments

Comments
 (0)