github.com/jfrog/frogbot@v1.1.1-0.20231221090046-821a26f50338/testdata/projects/gradle/fixedBuildGradleForCompare.txt (about)

     1  plugins {
     2      id 'java'
     3      id 'application'
     4  }
     5  
     6  mainClassName = 'com.example.Main'
     7  
     8  group 'com.example'
     9  version '1.0-SNAPSHOT'
    10  
    11  sourceCompatibility = 1.8
    12  
    13  repositories {
    14      mavenCentral()
    15  }
    16  
    17  dependencies {
    18      implementation 'com.fasterxml.jackson.core:jackson-databind:2.10.1'
    19      implementation group: 'commons-collections', name: 'commons-collections', version: '3.2.1'
    20  
    21      // This repeated dependency is required in order to check 'create-fix' captures all formats of direct dependencies
    22      implementation 'junit:junit:4.13.1'
    23      implementation "junit:junit:4.13.1"
    24      implementation 'junit:junit:4.13.1:javadoc'
    25      implementation('junit:junit:4.13.1')
    26  
    27      implementation group: 'junit', name: 'junit', version: '4.13.1'
    28      implementation group: "junit", name: "junit", version: "4.13.1"
    29      implementation group: 'junit', name: 'junit', version: '4.13.1', classifier: 'javadoc'
    30      implementation(group: 'junit', name: 'junit', version: '4.13.1', classifier: 'javadoc')
    31  
    32      implementation 'junit:junit:4.13.1',
    33              'commons-io:commons-io:2.7'
    34  
    35      implementation(
    36              group: 'junit', name: 'junit', version: '4.13.1'
    37      )
    38  
    39      implementation("junit:junit:4.13.1") {
    40          exclude module: "SomeModule"
    41      }
    42  
    43      implementation(
    44              [group: 'junit', name: 'junit', version: '4.13.1'],
    45              ['junit:junit:4.13.1']
    46      )
    47  
    48      implementation "my.group:my.dot.name:1.9.9"
    49      implementation group: 'my.group', name: 'my.dot.name', version: '1.9.9'
    50  
    51      // This dependency is required in order to check we fix only vulnerable rows
    52      implementation "junit:junit:5.7"
    53      implementation "junit2:junit2:4.7"
    54  
    55      // This repeated dependency is required to check that 'create-fix' doesn't fix lines with unsupported-version fix
    56      // When the package was found as vulnerable by xRay and fix is applicable somewhere else in the build file
    57      implementation(group: 'commons-io', name: 'commons-io', version: '1.+')
    58      implementation(group: 'commons-io', name: 'commons-io', version: '[1.1, 3.5)')
    59      implementation('commons-io:commons-io:latest.release')
    60  }
    61  
    62  sourceSets {
    63      main {
    64          java {
    65              srcDirs = ['src']
    66          }
    67      }
    68  }