mirror of https://github.com/jruby-gradle/jem
83 lines
2.1 KiB
Groovy
83 lines
2.1 KiB
Groovy
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
}
|
|
|
|
dependencies {
|
|
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2"
|
|
}
|
|
}
|
|
|
|
apply plugin: 'java'
|
|
apply plugin: 'groovy'
|
|
apply plugin: 'maven'
|
|
apply plugin: 'codenarc'
|
|
apply from: 'gradle/releasing.gradle'
|
|
|
|
version = '0.1.1'
|
|
group = 'com.github.jrubygradle'
|
|
description = 'A library for managing Ruby gems'
|
|
defaultTasks 'check', 'assemble'
|
|
|
|
repositories {
|
|
jcenter()
|
|
mavenLocal()
|
|
}
|
|
|
|
dependencies {
|
|
compile "org.codehaus.groovy:groovy-all:2.4.0+"
|
|
|
|
compile 'org.slf4j:slf4j-api:1.7.12+'
|
|
/* using the simple logger at runtime, no need for it at compile time though */
|
|
runtime 'org.slf4j:slf4j-simple:1.7.12+'
|
|
|
|
compile 'joda-time:joda-time:2.6+'
|
|
|
|
/* Used for processing yaml files inside of gems */
|
|
compile 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.5.4'
|
|
compile 'com.fasterxml.jackson.core:jackson-annotations:2.5.4'
|
|
compile 'com.fasterxml.jackson.core:jackson-databind:2.5.4'
|
|
|
|
/* shrinkwrap is used for digging into archives */
|
|
compile "org.jboss.shrinkwrap:shrinkwrap-bom:1.2.2+"
|
|
compile "org.jboss.shrinkwrap:shrinkwrap-depchain:1.2.2+"
|
|
|
|
codenarc "org.codenarc:CodeNarc:0.24"
|
|
|
|
testCompile "org.spockframework:spock-core:1.0-groovy-2.4"
|
|
testCompile 'org.apache.commons:commons-io:1.3.2+'
|
|
|
|
}
|
|
|
|
codenarc {
|
|
sourceSets = [sourceSets.main]
|
|
configFile = file("${projectDir}/gradle/codenarc.rules")
|
|
}
|
|
|
|
test {
|
|
testLogging {
|
|
showStandardStreams = true
|
|
exceptionFormat "full"
|
|
}
|
|
}
|
|
|
|
plugins.withType(JavaPlugin) {
|
|
sourceCompatibility = 1.7
|
|
targetCompatibility = 1.7
|
|
|
|
|
|
project.tasks.withType(JavaCompile) { task ->
|
|
task.sourceCompatibility = project.sourceCompatibility
|
|
task.targetCompatibility = project.targetCompatibility
|
|
}
|
|
|
|
project.tasks.withType(GroovyCompile) { task ->
|
|
task.sourceCompatibility = project.sourceCompatibility
|
|
task.targetCompatibility = project.targetCompatibility
|
|
}
|
|
}
|
|
|
|
assemble.dependsOn check
|
|
assemble.dependsOn groovydocJar
|
|
assemble.dependsOn sourcesJar
|