Skip to content

Commit d5f1e50

Browse files
publish to mavencentral rather than cloudsmith for libs/jars
1 parent 9fd147b commit d5f1e50

File tree

1 file changed

+44
-7
lines changed

1 file changed

+44
-7
lines changed

build.gradle

+44-7
Original file line numberDiff line numberDiff line change
@@ -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

3334
rootProject.version = calculatePublishVersion()
@@ -66,7 +67,7 @@ gradle.startParameter.taskNames.each {
6667
gradle.startParameter.taskNames = expandedTaskList.flatten() as Iterable<String>
6768

6869
def userHome = System.getProperty("user.home")
69-
70+
def group = "tech.pegasys.teku"
7071
def cloudsmithUser = project.hasProperty('cloudsmithUser') ? project.property('cloudsmithUser') : System.getenv('CLOUDSMITH_USER')
7172
def cloudsmithKey = project.hasProperty('cloudsmithApiKey') ? project.property('cloudsmithApiKey') : System.getenv('CLOUDSMITH_API_KEY')
7273

@@ -843,12 +844,8 @@ subprojects {
843844
publishing {
844845
repositories {
845846
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")
852849
}
853850
}
854851
publications {
@@ -1106,6 +1103,7 @@ def calculatePublishVersion() {
11061103
return isReleaseBranch ? "${specificVersion.substring(0, specificVersion.indexOf('+'))}+develop" : "develop"
11071104
}
11081105
return specificVersion
1106+
// return "25.3.0-SNAPSHOT"
11091107
}
11101108

11111109
// Calculate the version that teku --version will report (among other places)
@@ -1126,6 +1124,7 @@ def calculateVersion() {
11261124
return "${matcher.group("lastVersion")}+${matcher.group("devVersion")}"
11271125
}
11281126
return version
1127+
// return "25.3.0-SNAPSHOT"
11291128
}
11301129

11311130
task printVersion() {
@@ -1150,3 +1149,41 @@ task cloudsmithUpload {
11501149
}
11511150
}
11521151

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

Comments
 (0)