-
Guoli Ma committed with Copybara-Service 4 years ago1 parent eaa9954b
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
-
skipped 3 lines 4 4 5 5 subprojects { 6 6 apply plugin: 'java' 7 - apply plugin: 'maven' 7 + apply plugin: 'maven-publish' 8 8 apply plugin: 'idea' 9 + apply plugin: "signing" 9 10 10 11 apply plugin: 'net.ltgt.errorprone' 11 12 skipped 91 lines 103 104 sourceCompatibility = 1.8 104 105 targetCompatibility = 1.8 105 106 107 + java.withJavadocJar() 108 + java.withSourcesJar() 109 + 106 110 jar.manifest { 107 111 attributes('Implementation-Title': name, 108 112 'Implementation-Version': version, skipped 19 lines 128 132 showStackTraces true 129 133 } 130 134 maxHeapSize = '1500m' 135 + } 136 + } 137 + 138 + plugins.withId('maven-publish') { 139 + publishing { 140 + publications { 141 + maven(MavenPublication) { 142 + from components.java 143 + 144 + pom { 145 + name = project.group + ':' + project.name 146 + url = 'https://github.com/google/tsunami-security-scanner' 147 + afterEvaluate { 148 + // description is not available until evaluated. 149 + description = project.description 150 + } 151 + 152 + licenses { 153 + license { 154 + name = 'Apache 2.0' 155 + url = 'https://opensource.org/licenses/Apache-2.0' 156 + } 157 + } 158 + 159 + scm { 160 + connection = 'scm:git:https://github.com/google/tsunami-security-scanner.git' 161 + developerConnection = 'scm:git:[email protected]:google/tsunami-security-scanner.git' 162 + url = 'https://github.com/google/tsunami-security-scanner' 163 + } 164 + 165 + developers { 166 + developer { 167 + id = 'com.google.tsunami' 168 + name = 'Tsunami Contributors' 169 + email = '[email protected]' 170 + url = 'https://github.com/google/tsunami-security-scanner' 171 + organization = 'Tsunami Authors' 172 + organizationUrl = 'https://www.google.com' 173 + } 174 + } 175 + } 176 + } 177 + } 178 + repositories { 179 + maven { 180 + def stagingUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/' 181 + def releaseUrl = stagingUrl 182 + def snapshotUrl = 'https://oss.sonatype.org/content/repositories/snapshots/' 183 + url = version.endsWith('SNAPSHOT') ? snapshotUrl : releaseUrl 184 + credentials { 185 + if (rootProject.hasProperty('ossrhUsername') 186 + && rootProject.hasProperty('ossrhPassword')) { 187 + username = rootProject.ossrhUsername 188 + password = rootProject.ossrhPassword 189 + } 190 + } 191 + } 192 + mavenLocal() 193 + } 194 + } 195 + 196 + signing { 197 + required false 198 + sign publishing.publications.maven 199 + } 200 + 201 + plugins.withId('com.github.johnrengelman.shadow') { 202 + publishing { 203 + publications { 204 + maven { 205 + artifact project.tasks.shadowJar 206 + } 207 + } 208 + } 131 209 } 132 210 } 133 211 } skipped 1 lines -