Skip to content

Commit

Permalink
Maven repository deployment fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosame committed Nov 12, 2023
1 parent 787cc4b commit dcc6c7a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
10 changes: 6 additions & 4 deletions buildSrc/src/main/groovy/echosvg.java-conventions.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
plugins {
id 'java-library'
/*
* Use 'gradle publishToMavenLocal' to install in local Maven repo
*/
id 'maven-publish'
id 'org.owasp.dependencycheck'
}
Expand Down Expand Up @@ -142,13 +139,18 @@ publishing {
maven(MavenPublication) {
from(components.java)
pom {
url = "https://github.com/css4j/echosvg/"
url = "https://github.com/css4j/echosvg/wiki"
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
scm {
connection = "scm:git:https://github.com/css4j/echosvg.git"
developerConnection = "scm:git:git://[email protected]:css4j/echosvg.git"
url = "https://github.com/css4j/echosvg"
}
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion echosvg-test-scripts/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ build.dependsOn jarCheckPermissionsDeniedJar
build.dependsOn jarCheckPermissionsGrantedJar
build.dependsOn copyScriptJars, copyPolicyJar

tasks.withType(PublishToMavenRepository).configureEach {
/*
* Maven repository deployments (disabled)
*/
tasks.withType(AbstractPublishToMaven).configureEach {
it.enabled = false
}
5 changes: 4 additions & 1 deletion echosvg-test-swing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ publishing.publications.maven(MavenPublication).pom {
description = "EchoSVG Swing Tests"
}

tasks.withType(PublishToMavenRepository).configureEach {
/*
* Maven repository deployments (disabled)
*/
tasks.withType(AbstractPublishToMaven).configureEach {
it.enabled = false
}
2 changes: 1 addition & 1 deletion echosvg-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,6 @@ task runJmh(type: JavaExec) {
*/
// Disable Maven publication (shipped security policies are not
// adequate for running tests from a jar)
tasks.withType(PublishToMavenRepository).configureEach {
tasks.withType(AbstractPublishToMaven).configureEach {
it.enabled = false
}

0 comments on commit dcc6c7a

Please sign in to comment.