1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
description = 'Free Java library for displaying plots'
allprojects {
group = 'de.erichseifert.gral'
version = 'debian'
ext.inceptionYear = 2009
}
subprojects {
apply plugin: 'java'
sourceCompatibility = 1.6
targetCompatibility = 1.6
ext {
owner1_id = 'eseifert'
owner1_name = 'Erich Seifert'
owner1_email = 'dev[at]erichseifert.de'
owner2_id = 'mseifert'
owner2_name = 'Michael Seifert'
owner2_email = 'mseifert[at]error-reports.org'
website = 'https://github.com/eseifert/gral/'
// Determine the location of rt.jar (required for ProGuard)
if (System.getProperty('os.name').startsWith('Mac')) {
runtimeJar = "${System.getProperty('java.home')}/bundle/Classes/classes.jar"
} else {
runtimeJar = "${System.getProperty('java.home')}/lib/rt.jar"
}
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile(group: 'de.erichseifert.vectorgraphics2d', name: 'VectorGraphics2D', version: '0.10')
}
apply plugin: 'checkstyle'
checkstyle.configFile = new File("${rootDir}/config/checkstyle.xml")
apply plugin: 'pmd'
pmd {
// TODO: Dynamic dependency resolution possible?
toolVersion = '5.0.5'
ruleSets = ['java-basic']
ignoreFailures = true
}
task sourceJar(type: Jar) {
description = 'Assembles a jar archive containing the source code of the main classes.'
group = 'Build'
from sourceSets.main.allJava
classifier 'sources'
}
}
// Include the License Gradle plugin
buildscript {
repositories {
mavenLocal()
jcenter()
}
dependencies {
}
}
/*
* This method must not be named getVersion, because it would
* overwrite the implicit getter of the version property in the
* current Project object.
*/
def getVersionString() {
def out = new ByteArrayOutputStream()
exec {
commandLine('git', 'describe', '--tags')
standardOutput = out
}
return out.toString().trim()
}
|