zeichenmaschine/build.gradle

98 lines
1.9 KiB
Groovy
Raw Normal View History

2022-07-10 22:45:33 +02:00
plugins {
id 'idea'
id 'java-library'
}
group 'schule.ngb'
2022-12-10 11:11:26 +01:00
version '0.0.34-SNAPSHOT'
2022-07-10 22:45:33 +02:00
java {
withSourcesJar()
withJavadocJar()
}
2022-07-10 22:45:33 +02:00
compileJava {
options.release = 11
}
repositories {
mavenCentral()
}
dependencies {
runtimeOnly 'com.googlecode.soundlibs:jlayer:1.0.1.4'
runtimeOnly 'com.googlecode.soundlibs:tritonus-share:0.3.7.4'
runtimeOnly 'com.googlecode.soundlibs:mp3spi:1.9.5.4'
compileOnlyApi 'colt:colt:1.2.0'
//api 'colt:colt:1.2.0'
//api 'net.sourceforge.parallelcolt:parallelcolt:0.10.1'
2022-07-10 22:45:33 +02:00
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
2022-07-10 22:45:33 +02:00
}
2022-12-14 20:36:24 +01:00
jar {
manifest {
attributes 'Class-Path': '.'
2022-12-11 13:34:40 +01:00
}
2022-07-10 22:45:33 +02:00
}
tasks.register('jarMP3SPI', Jar) {
2022-12-14 20:36:24 +01:00
group "build"
description "Build jar with MP3SPI included"
2022-12-11 16:34:41 +01:00
archiveClassifier = 'mp3spi'
2022-07-10 22:45:33 +02:00
duplicatesStrategy = 'exclude'
2022-12-11 16:34:41 +01:00
// archivesBaseName = 'zeichenmaschine-mp3spi'
2022-07-10 22:45:33 +02:00
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
2022-07-10 22:45:33 +02:00
}
2022-12-11 21:50:10 +01:00
task buildAll {
2022-12-14 20:36:24 +01:00
group "build"
description "Build all jar packages"
2022-12-11 21:50:10 +01:00
dependsOn 'jar'
dependsOn 'jarMP3SPI'
dependsOn 'sourcesJar'
dependsOn 'javadocJar'
}
2022-12-14 20:36:24 +01:00
javadoc {
options {
encoding = "UTF-8"
overview = "src/resources/java/overview.html"
// title = "Die Zeichenmaschine"
// options.links 'https://docs.oracle.com/javase/8/docs/api/'
// options.links 'https://docs.oracle.com/javaee/7/api'
options.links 'https://docs.oracle.com/en/java/javase/11/docs/api'
}
options.addStringOption("charset", "UTF-8")
}
task mkdocs(type: Exec) {
group "documentation"
description "Build MKDocs site"
workingDir "${projectDir}"
commandLine ".venv/bin/python", "-m", "mkdocs", "build"
}
task buildDocs {
group "documentation"
description "Run all documentation tasks"
dependsOn 'javadoc'
dependsOn 'javadocJar'
dependsOn 'mkdocs'
}
test {
useJUnitPlatform()
}