add allowing of connection and keep-alive headers

This commit is contained in:
2025-05-18 18:35:31 +06:00
parent 2ed8443e28
commit 9bc7cbdb50
2 changed files with 2 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ apply plugin: 'maven-publish'
if ((project.hasProperty('SONATYPE_USER') || System.getenv('SONATYPE_USER') != null) && (project.hasProperty('SONATYPE_PASSWORD') || System.getenv('SONATYPE_PASSWORD') != null)) {
def taskName = "uploadSonatypePublication"
if (rootProject.tasks.names.contains(taskName) == false) {
System.setProperty("jdk.httpclient.allowRestrictedHeaders", "Connection,Keep-Alive")
rootProject.tasks.register(taskName) {
doLast {
def username = project.hasProperty('SONATYPE_USER') ? project.property('SONATYPE_USER') : System.getenv('SONATYPE_USER')

View File

@@ -9,6 +9,7 @@ apply plugin: 'maven-publish'
if ((project.hasProperty('SONATYPE_USER') || System.getenv('SONATYPE_USER') != null) && (project.hasProperty('SONATYPE_PASSWORD') || System.getenv('SONATYPE_PASSWORD') != null)) {
def taskName = "uploadSonatypePublication"
if (rootProject.tasks.names.contains(taskName) == false) {
System.setProperty("jdk.httpclient.allowRestrictedHeaders", "Connection,Keep-Alive")
rootProject.tasks.register(taskName) {
doLast {
def username = project.hasProperty('SONATYPE_USER') ? project.property('SONATYPE_USER') : System.getenv('SONATYPE_USER')