@@ -28,6 +28,7 @@ plugins {
28
28
id ' net.ltgt.errorprone' version ' 4.1.0' apply false
29
29
id ' de.undercouch.download' version ' 5.6.0'
30
30
id ' org.ajoberstar.grgit' version ' 5.3.0'
31
+ id ' org.jreleaser' version ' 1.16.0'
31
32
}
32
33
33
34
rootProject. version = calculatePublishVersion()
@@ -66,7 +67,7 @@ gradle.startParameter.taskNames.each {
66
67
gradle. startParameter. taskNames = expandedTaskList. flatten() as Iterable<String >
67
68
68
69
def userHome = System . getProperty(" user.home" )
69
-
70
+ def group = " tech.pegasys.teku "
70
71
def cloudsmithUser = project. hasProperty(' cloudsmithUser' ) ? project. property(' cloudsmithUser' ) : System . getenv(' CLOUDSMITH_USER' )
71
72
def cloudsmithKey = project. hasProperty(' cloudsmithApiKey' ) ? project. property(' cloudsmithApiKey' ) : System . getenv(' CLOUDSMITH_API_KEY' )
72
73
@@ -843,12 +844,8 @@ subprojects {
843
844
publishing {
844
845
repositories {
845
846
maven {
846
- name = " cloudsmith"
847
- url = " https://api-g.cloudsmith.io/maven/consensys/teku/"
848
- credentials {
849
- username = cloudsmithUser
850
- password = cloudsmithKey
851
- }
847
+ name = " local"
848
+ url = rootProject. layout. buildDirectory. dir(" jreleaser" )
852
849
}
853
850
}
854
851
publications {
@@ -1106,6 +1103,7 @@ def calculatePublishVersion() {
1106
1103
return isReleaseBranch ? " ${ specificVersion.substring(0, specificVersion.indexOf('+'))} +develop" : " develop"
1107
1104
}
1108
1105
return specificVersion
1106
+ // return "25.3.0-SNAPSHOT"
1109
1107
}
1110
1108
1111
1109
// Calculate the version that teku --version will report (among other places)
@@ -1126,6 +1124,7 @@ def calculateVersion() {
1126
1124
return " ${ matcher.group("lastVersion")} +${ matcher.group("devVersion")} "
1127
1125
}
1128
1126
return version
1127
+ // return "25.3.0-SNAPSHOT"
1129
1128
}
1130
1129
1131
1130
task printVersion () {
@@ -1150,3 +1149,41 @@ task cloudsmithUpload {
1150
1149
}
1151
1150
}
1152
1151
1152
+ // see line 844
1153
+ jreleaser {
1154
+ project {
1155
+ description. set(" Teku is a full Ethereum 2.0 client built to meet institutional needs and security requirements." )
1156
+ license. set(" (Apache-2.0)" )
1157
+ inceptionYear. set(" 2024" )
1158
+ copyright. set(" Consensys Software Inc., 2022" )
1159
+ links {
1160
+ homepage. set(" https://github.com/usmansaleem/besu-pkcs11-plugin" )
1161
+ documentation. set(" https://github.com/usmansaleem/besu-pkcs11-plugin" )
1162
+ }
1163
+ }
1164
+ dependsOnAssemble. set(true )
1165
+ gitRootSearch = true
1166
+ release {
1167
+ github {
1168
+ commitAuthor {
1169
+ name = ' Protocols Team'
1170
+
1171
+ }
1172
+ }
1173
+ }
1174
+ signing {
1175
+ active = ' ALWAYS'
1176
+ armored = true
1177
+ }
1178
+ deploy {
1179
+ maven {
1180
+ mavenCentral {
1181
+ sonatype {
1182
+ active = ' ALWAYS'
1183
+ url = ' https://central.sonatype.com/api/v1/publisher'
1184
+ stagingRepository(' build/jreleaser' )
1185
+ }
1186
+ }
1187
+ }
1188
+ }
1189
+ }
0 commit comments