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
|
group = 'de.regnis.q.sequence'
version = '1.0.2'
project.ext {
target = '1.4'
release = true
}
apply from: 'build.pom.gradle'
buildscript {
apply from: 'build.defaults.gradle'
configurations.all {
resolutionStrategy {
cacheChangingModulesFor 0, 'seconds'
cacheDynamicVersionsFor 0, 'seconds'
}
}
repositories {
maven {
url project.ext.buildPluginRepositoryURL
}
}
dependencies { classpath 'org.tmatesoft.build:build:0.9.9' }
}
task wrapper(type: Wrapper) {}
configure(rootProject) {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'signing'
apply plugin: 'build'
targetCompatibility = target
sourceCompatibility = target
dependencies {
testCompile 'junit:junit:3.8.2'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
description="Builds Javadoc Jar"
from "$docsDir/javadoc"
classifier = 'javadoc'
}
task sourcesJar(type: Jar) {
description = 'Builds Java Sources Jar'
from sourceSets.main.java.srcDirs
classifier = 'sources'
}
jar {
metaInf {
from rootProject.file('LICENSE.txt')
}
}
artifacts {
maven jar, sourcesJar, javadocJar
}
}
|