2016-10-22 23:50:38 +02:00
|
|
|
plugins {
|
2016-10-25 22:27:05 +02:00
|
|
|
id "org.sonarqube" version '2.2'
|
2016-10-22 23:50:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ext {
|
2016-11-23 23:51:10 +01:00
|
|
|
user = 'xbib'
|
2016-10-22 23:50:38 +02:00
|
|
|
name = 'jacc'
|
2016-11-23 23:51:10 +01:00
|
|
|
description = 'A Java implementation of yacc (yet another compiler-compiler)'
|
2016-10-22 23:50:38 +02:00
|
|
|
scmUrl = 'https://github.com/' + user + '/' + name
|
|
|
|
scmConnection = 'scm:git:git://github.com/' + user + '/' + name + '.git'
|
|
|
|
scmDeveloperConnection = 'scm:git:git://github.com/' + user + '/' + name + '.git'
|
|
|
|
}
|
|
|
|
|
|
|
|
group = 'org.xbib'
|
|
|
|
version = '2.1.0'
|
|
|
|
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'maven'
|
|
|
|
apply plugin: 'signing'
|
|
|
|
apply plugin: 'findbugs'
|
|
|
|
apply plugin: 'pmd'
|
|
|
|
apply plugin: 'checkstyle'
|
|
|
|
apply plugin: 'jacoco'
|
|
|
|
|
2016-11-23 23:51:10 +01:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
2016-10-22 23:50:38 +02:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
wagon
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testCompile 'junit:junit:4.12'
|
|
|
|
wagon 'org.apache.maven.wagon:wagon-ssh-external:2.10'
|
|
|
|
}
|
|
|
|
|
2016-11-23 23:51:10 +01:00
|
|
|
|
|
|
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.compilerArgs << "-Xlint:all" << "-profile" << "compact1"
|
|
|
|
}
|
|
|
|
|
2016-10-25 22:27:05 +02:00
|
|
|
test {
|
|
|
|
testLogging {
|
|
|
|
showStandardStreams = false
|
|
|
|
exceptionFormat = 'full'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-10-22 23:50:38 +02:00
|
|
|
apply from: 'gradle/publish.gradle'
|
|
|
|
apply from: 'gradle/sonarqube.gradle'
|