Remove gradle directives used to distribute maven releases. We are not releasing through Maven anymore.
PiperOrigin-RevId: 796302543 Change-Id: Ia02403f6adecb01d41d8291287814a43901c2901
This commit is contained in:
parent
360b6a8679
commit
f4f51eb385
78
build.gradle
78
build.gradle
|
|
@ -7,9 +7,7 @@ plugins {
|
|||
|
||||
subprojects {
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'maven-publish'
|
||||
apply plugin: 'idea'
|
||||
apply plugin: "signing"
|
||||
|
||||
apply plugin: 'net.ltgt.errorprone'
|
||||
apply plugin: 'com.gradleup.shadow'
|
||||
|
|
@ -26,13 +24,6 @@ subprojects {
|
|||
mavenLocal()
|
||||
}
|
||||
|
||||
// Resolving conflicting NameResolverProvider from grpc-core.jar and
|
||||
// grpc-netty-shaded.jar, https://github.com/grpc/grpc-java/issues/10853
|
||||
shadowJar {
|
||||
zip64 true
|
||||
mergeServiceFiles()
|
||||
}
|
||||
|
||||
if (rootProject.properties.get('errorProne', true)) {
|
||||
dependencies {
|
||||
errorprone "com.google.errorprone:error_prone_core:2.38.0"
|
||||
|
|
@ -82,73 +73,4 @@ subprojects {
|
|||
maxHeapSize = '1500m'
|
||||
}
|
||||
}
|
||||
|
||||
plugins.withId('maven-publish') {
|
||||
publishing {
|
||||
publications {
|
||||
maven(MavenPublication) {
|
||||
from components.java
|
||||
|
||||
pom {
|
||||
name = project.group + ':' + project.name
|
||||
url = 'https://github.com/google/tsunami-security-scanner'
|
||||
afterEvaluate {
|
||||
// description is not available until evaluated.
|
||||
description = project.description
|
||||
}
|
||||
|
||||
licenses {
|
||||
license {
|
||||
name = 'Apache 2.0'
|
||||
url = 'https://opensource.org/licenses/Apache-2.0'
|
||||
}
|
||||
}
|
||||
|
||||
scm {
|
||||
connection = 'scm:git:https://github.com/google/tsunami-security-scanner.git'
|
||||
developerConnection = 'scm:git:git@github.com:google/tsunami-security-scanner.git'
|
||||
url = 'https://github.com/google/tsunami-security-scanner'
|
||||
}
|
||||
|
||||
developers {
|
||||
developer {
|
||||
id = 'com.google.tsunami'
|
||||
name = 'Tsunami Contributors'
|
||||
email = 'tsunami-security-scanner@googlegroups.com'
|
||||
url = 'https://github.com/google/tsunami-security-scanner'
|
||||
organization = 'Tsunami Authors'
|
||||
organizationUrl = 'https://www.google.com'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
def stagingUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
|
||||
def releaseUrl = stagingUrl
|
||||
def snapshotUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
|
||||
url = version.endsWith('SNAPSHOT') ? snapshotUrl : releaseUrl
|
||||
credentials {
|
||||
if (rootProject.hasProperty('ossrhUsername')
|
||||
&& rootProject.hasProperty('ossrhPassword')) {
|
||||
username = rootProject.ossrhUsername
|
||||
password = rootProject.ossrhPassword
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mavenLocal()
|
||||
}
|
||||
}
|
||||
|
||||
signing {
|
||||
sign publishing.publications.maven
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
archiveClassifier = null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ protobuf {
|
|||
dependsOn("processResources")
|
||||
dependsOn("extractTestProto")
|
||||
dependsOn("sourcesJar")
|
||||
dependsOn("generatePomFileForMavenPublication")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue