@@ -28,6 +28,7 @@ plugins {
2828 id ' net.ltgt.errorprone' version ' 4.1.0' apply false
2929 id ' de.undercouch.download' version ' 5.6.0'
3030 id ' org.ajoberstar.grgit' version ' 5.3.0'
31+ id ' org.jreleaser' version ' 1.16.0'
3132}
3233
3334rootProject. version = calculatePublishVersion()
@@ -66,10 +67,7 @@ gradle.startParameter.taskNames.each {
6667gradle. startParameter. taskNames = expandedTaskList. flatten() as Iterable<String >
6768
6869def userHome = System . getProperty(" user.home" )
69-
70- def cloudsmithUser = project. hasProperty(' cloudsmithUser' ) ? project. property(' cloudsmithUser' ) : System . getenv(' CLOUDSMITH_USER' )
71- def cloudsmithKey = project. hasProperty(' cloudsmithApiKey' ) ? project. property(' cloudsmithApiKey' ) : System . getenv(' CLOUDSMITH_API_KEY' )
72-
70+ def group = " tech.pegasys.teku"
7371
7472var baseInfrastructureProjects = [
7573 ' :infrastructure:bytes' ,
@@ -843,12 +841,8 @@ subprojects {
843841 publishing {
844842 repositories {
845843 maven {
846- name = " cloudsmith"
847- url = " https://api-g.cloudsmith.io/maven/consensys/teku/"
848- credentials {
849- username = cloudsmithUser
850- password = cloudsmithKey
851- }
844+ name = " local"
845+ url = rootProject. layout. buildDirectory. dir(" jreleaser" )
852846 }
853847 }
854848 publications {
@@ -1106,6 +1100,7 @@ def calculatePublishVersion() {
11061100 return isReleaseBranch ? " ${ specificVersion.substring(0, specificVersion.indexOf('+'))} +develop" : " develop"
11071101 }
11081102 return specificVersion
1103+ // return "25.3.0-SNAPSHOT"
11091104}
11101105
11111106// Calculate the version that teku --version will report (among other places)
@@ -1126,6 +1121,7 @@ def calculateVersion() {
11261121 return " ${ matcher.group("lastVersion")} +${ matcher.group("devVersion")} "
11271122 }
11281123 return version
1124+ // return "25.3.0-SNAPSHOT"
11291125}
11301126
11311127task printVersion () {
@@ -1150,3 +1146,41 @@ task cloudsmithUpload {
11501146 }
11511147}
11521148
1149+ // see line 844
1150+ jreleaser {
1151+ project {
1152+ description. set(" Teku is a full Ethereum 2.0 client built to meet institutional needs and security requirements." )
1153+ license. set(" (Apache-2.0)" )
1154+ inceptionYear. set(" 2024" )
1155+ copyright. set(" Consensys Software Inc., 2022" )
1156+ links {
1157+ homepage. set(" https://github.com/usmansaleem/besu-pkcs11-plugin" )
1158+ documentation. set(" https://github.com/usmansaleem/besu-pkcs11-plugin" )
1159+ }
1160+ }
1161+ dependsOnAssemble. set(true )
1162+ gitRootSearch = true
1163+ release {
1164+ github {
1165+ commitAuthor {
1166+ name = ' Protocols Team'
1167+ email = ' devops@consensys.net'
1168+ }
1169+ }
1170+ }
1171+ signing {
1172+ active = ' ALWAYS'
1173+ armored = true
1174+ }
1175+ deploy {
1176+ maven {
1177+ mavenCentral {
1178+ sonatype {
1179+ active = ' ALWAYS'
1180+ url = ' https://central.sonatype.com/api/v1/publisher'
1181+ stagingRepository(' build/jreleaser' )
1182+ }
1183+ }
1184+ }
1185+ }
1186+ }
0 commit comments