1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- sonar {
- properties {
- property 'sonar.projectName', "${projectTitle} :: DAO"
- }
- }
-
- dependencies {
- // please keep the list grouped by configuration and ordered by name
-
- api 'com.google.guava:guava'
- api 'com.google.protobuf:protobuf-java'
- api 'commons-io:commons-io'
- api 'org.apache.commons:commons-lang3'
- api 'org.lz4:lz4-java'
- api 'org.mybatis:mybatis'
- api 'org.sonarsource.api.plugin:sonar-plugin-api'
-
- api project(':server:sonar-db-core')
- api project(':server:sonar-db-migration')
- api project(':sonar-core')
-
- compileOnlyApi 'com.google.code.findbugs:jsr305'
-
- testImplementation 'commons-dbutils:commons-dbutils'
- testImplementation 'org.assertj:assertj-core'
- testImplementation 'org.assertj:assertj-guava'
- testImplementation 'org.junit.jupiter:junit-jupiter-api'
- testImplementation 'org.junit.jupiter:junit-jupiter-params'
- testImplementation 'org.mockito:mockito-core'
- testImplementation 'org.sonarsource.orchestrator:sonar-orchestrator-junit4'
- testImplementation 'org.sonarsource.api.plugin:sonar-plugin-api-test-fixtures'
- testImplementation project(':sonar-testing-harness')
- testImplementation project(':sonar-plugin-api-impl')
-
- testCompileOnly 'com.google.code.findbugs:jsr305'
-
- testRuntimeOnly 'com.h2database:h2'
- testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
- testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'
- testRuntimeOnly 'com.microsoft.sqlserver:mssql-jdbc'
- testRuntimeOnly 'com.oracle.database.jdbc:ojdbc11'
- testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
- testRuntimeOnly 'org.postgresql:postgresql'
-
- testFixturesApi 'org.junit.jupiter:junit-jupiter-api'
- testFixturesApi testFixtures(project(':server:sonar-db-core'))
- testFixturesApi testFixtures(project(':server:sonar-db-migration'))
-
- testFixturesImplementation 'com.h2database:h2'
-
- testFixturesCompileOnly 'com.google.code.findbugs:jsr305'
- }
-
- test {
- systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
- // Enabling the JUnit Platform (see https://github.com/junit-team/junit5-samples/tree/master/junit5-migration-gradle)
- useJUnitPlatform()
- }
-
- task dumpSchema(type:JavaExec) {
- mainClass = 'org.sonar.db.dump.DumpSQSchema'
- classpath = sourceSets.test.runtimeClasspath
- }
-
- tasks.check.dependsOn dumpSchema
-
- task createDB(type:JavaExec) {
- mainClass = 'org.sonar.db.createdb.CreateDb'
- classpath = sourceSets.test.runtimeClasspath
- systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
- if (!project.version.endsWith("-SNAPSHOT")) {
- systemProperty 'sonar.runtimeVersion', project.version
- }
- }
-
- task testJar(type: Jar) {
- archiveClassifier = 'tests'
- from sourceSets.test.output
- }
-
- configurations {
- tests
- }
-
- artifacts {
- tests testJar
- }
-
- jar {
- // remove exclusion on proto files so that they can be included by other modules
- setExcludes([])
- }
|