🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    build.gradle
    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
  • ■ ■ ■ ■ ■ ■
    docs/howto.md
    skipped 23 lines
    24 24  ```
    25 25   
    26 26  When the command finishes, the generated scanner `jar` file is located in the
    27  -`main/build/libs` folder with the name of `tsunami-cli-[version]-all.jar`. This
     27 +`main/build/libs` folder with the name of `tsunami-main-[version]-cli.jar`. This
    28 28  is a fat jar file so can be treated as a standalone binary.
    29 29   
    30 30  To execute the scanner, first you need to install plugins into a chosen folder.
    skipped 5 lines
    36 36  ```shell
    37 37  java \
    38 38   # Tsunami classpath, as of now plugins must be installed into classpath.
    39  - -cp "tsunami-cli.jar:~/tsunami-plugins/*" \
     39 + -cp "tsunami-main-[version]-cli.jar:~/tsunami-plugins/*" \
    40 40   # Specify the config file of Tsunami, by default Tsunami loads a tsunami.yaml
    41 41   # file from there the command is executed.
    42 42   -Dtsunami.config.location=/path/to/config/tsunami.yaml \
    skipped 164 lines
  • ■ ■ ■ ■
    main/build.gradle
    skipped 23 lines
    24 24  }
    25 25   
    26 26  shadowJar {
    27  - baseName = 'tsunami-cli'
     27 + classifier = 'cli'
    28 28   exclude '*.proto'
    29 29  }
    30 30   
Please wait...
Page is in error, reload to recover