1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- sonarqube {
- properties {
- property 'sonar.projectName', "${projectTitle} :: Database Core"
- }
- }
-
- dependencies {
- // please keep the list grouped by configuration and ordered by name
-
- compile 'ch.qos.logback:logback-classic'
- compile 'ch.qos.logback:logback-core'
- compile 'com.google.guava:guava'
- compile 'commons-dbutils:commons-dbutils'
- compile 'commons-io:commons-io'
- compile 'commons-lang:commons-lang'
- compile 'org.apache.commons:commons-dbcp2'
- compile 'org.mybatis:mybatis'
- compile 'org.picocontainer:picocontainer'
- compile 'org.slf4j:slf4j-api'
- compile project(':server:sonar-process')
- compile project(path: ':sonar-plugin-api', configuration: 'shadow')
- compile project(':sonar-plugin-api-impl')
-
- compileOnly 'com.google.code.findbugs:jsr305'
-
- testCompile 'com.google.code.findbugs:jsr305'
- testCompile 'com.microsoft.sqlserver:mssql-jdbc'
- testCompile 'com.oracle.jdbc:ojdbc8'
- testCompile 'com.tngtech.java:junit-dataprovider'
- testCompile 'junit:junit'
- testCompile 'org.assertj:assertj-core'
- testCompile 'org.dbunit:dbunit'
- testCompile 'org.mockito:mockito-core'
- testCompile 'org.postgresql:postgresql'
- testCompile 'org.sonarsource.orchestrator:sonar-orchestrator'
- testCompile project(':sonar-testing-harness')
-
- testRuntime 'com.h2database:h2'
- testRuntime 'com.microsoft.sqlserver:mssql-jdbc'
- testRuntime 'com.oracle.jdbc:ojdbc8'
- testRuntime 'org.postgresql:postgresql'
- }
-
- task createDB(type:JavaExec) {
- main = 'org.sonar.db.CreateDb'
- classpath = sourceSets.test.runtimeClasspath
- systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
- if (!project.version.endsWith("-SNAPSHOT")) {
- systemProperty 'sonar.runtimeVersion', project.version
- }
- }
-
- test {
- if (System.hasProperty('orchestrator.configUrl'))
- systemProperty 'orchestrator.configUrl', System.getProperty('orchestrator.configUrl')
- }
-
- task testJar(type: Jar) {
- classifier = 'tests'
- from sourceSets.test.output
- }
-
- configurations { tests { extendsFrom testRuntime } }
-
- artifacts {
- tests testJar
- }
-
- artifactoryPublish.skip = false
-
- // Used by core plugins
- publishing {
- publications {
- mavenJava(MavenPublication) {
- from components.java
- if (release) {
- artifact sourcesJar
- artifact javadocJar
- artifact testJar
- }
- }
- }
- }
|