43 lines
668 B
Groovy
43 lines
668 B
Groovy
apply plugin: 'java'
|
|
apply plugin: 'eclipse'
|
|
|
|
sourceSets {
|
|
main {
|
|
java {
|
|
srcDir 'src'
|
|
}
|
|
resources {
|
|
srcDir 'src'
|
|
}
|
|
}
|
|
}
|
|
|
|
jar {
|
|
baseName = 'pbi'
|
|
manifest {
|
|
attributes(
|
|
"Main-Class": "edu.fichte.pbi.run.ConsoleMain",
|
|
"Compile-Date": new java.text.SimpleDateFormat("yyyyMMdd HHmmss").format(new java.util.Date())
|
|
)
|
|
}
|
|
}
|
|
|
|
targetCompatibility = "1.7"
|
|
sourceCompatibility = "1.7"
|
|
|
|
task srcZip (type: Zip){
|
|
baseName = 'src'
|
|
from ('src') {
|
|
exclude '**/.*'
|
|
}
|
|
}
|
|
|
|
task dist(type: Zip) {
|
|
baseName = 'pbi'
|
|
from jar
|
|
from srcZip
|
|
from 'shellscripts'
|
|
from 'src/META-INF/license.txt'
|
|
}
|
|
|
|
assemble.dependsOn dist |