You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by th...@apache.org on 2024/08/18 00:03:33 UTC
(tapestry-5) 01/04: First pass at creating suffixed artifacts for javax branch
This is an automated email from the ASF dual-hosted git repository.
thiagohp pushed a commit to branch tapestry-core-jakarta
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git
commit 6bb4642eddf87cbd4db6b2d33fc731fe025ff13b
Author: Thiago H. de Paula Figueiredo <th...@arsmachina.com.br>
AuthorDate: Tue Aug 6 00:10:46 2024 -0300
First pass at creating suffixed artifacts for javax branch
Notice that, for now, it just skips creating the
non-jakarta.servlet-affected subprojects. The actual
suffixing of artifact ids still needs to be done,
but it's stubbed out at line 316
---
build.gradle | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/build.gradle b/build.gradle
index cd51c5987..11f89651a 100755
--- a/build.gradle
+++ b/build.gradle
@@ -28,6 +28,9 @@ project.ext.versions = [
webdriverManager: "5.3.1"
]
+def artifactsToBePublished = ["tapestry-core", "tapestry-http", "tapestry-test",
+ "tapestry-beanvalidator", "tapestry-runner", "tapestry-spring"]
+
ext.continuousIntegrationBuild = Boolean.getBoolean("ci")
// Provided so that the CI server can override the normal version number for nightly builds.
@@ -40,7 +43,7 @@ project.version = tapestryVersion()
def tapestryVersion() {
- def major = "5.50.0"
+ def major = "5.8.8"
def minor = ""
// When building on the CI server, make sure -SNAPSHOT is appended, as it is a nightly build.
@@ -293,7 +296,7 @@ subprojects {
artifact sourcesJar
pom {
- name = project.name
+ name = project.name + "-javax"
// TODO: find some way to get the subproject description here.
// description =
url = "https://tapestry.apache.org/"
@@ -308,6 +311,10 @@ subprojects {
developerConnection = 'scm:git://gitbox.apache.org/repos/asf/tapestry-5.git'
url = 'https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=summary'
}
+ withXml {
+ def node = asNode();
+ println " NNNNNNNode: " + node.get("dependencies")
+ }
}
matching {
it.name.endsWith(".jar") || it.name.endsWith(".pom")
@@ -348,6 +355,12 @@ subprojects {
sign publishing.publications.mavenJava
}
}
+
+ def actuallyPublish = artifactsToBePublished.contains(project.name)
+ if (!actuallyPublish) {
+ tasks.withType(PublishToMavenRepository).configureEach { it.enabled = false }
+ tasks.withType(PublishToMavenLocal).configureEach { it.enabled = false }
+ }
task uploadPublished {