You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
922 B
Groovy
43 lines
922 B
Groovy
apply plugin: 'java'
|
|
apply plugin: 'idea'
|
|
|
|
compileJava.options.encoding = 'UTF-8'
|
|
|
|
project.ext.junitVersion = '5.3.1'
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
|
|
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
task abgabe(type: Zip) {
|
|
if(project.hasProperty("n")) {
|
|
includeEmptyDirs = false
|
|
from(".")
|
|
from("src/main/") {
|
|
into("src/main")
|
|
}
|
|
from("src/test/") {
|
|
into("src/test")
|
|
}
|
|
include "java/_$n/**/*"
|
|
include "resources/$n/**/*"
|
|
if(!project.hasProperty("p")) {
|
|
include "README.md"
|
|
include "java/provided/*"
|
|
include "java/provided/_$n/**/*"
|
|
}
|
|
archiveName "omp-uebung${n}-NeinNoNiet.zip"
|
|
}
|
|
}
|