plugins { id 'java' id 'application' id 'maven' } group = 'com.jsyn' version = '17.0.0-SNAPSHOT' sourceCompatibility = '1.8' mainClassName = 'com.jsyn.apps.AboutJSyn' repositories { mavenCentral() mavenLocal() } dependencies { testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2' implementation fileTree(dir: 'libs', include: '*.jar') } jar { manifest { attributes('Main-Class': mainClassName) } from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } } } javadoc { exclude 'com/portaudio/**' exclude 'com/jsyn/devices/jportaudio/**' source = sourceSets.main.allJava options { addStringOption('Xdoclint:none', '-quiet') } } task javadocJar(type: Jar) { classifier = 'javadoc' from javadoc } artifacts { archives javadocJar } test { useJUnitPlatform() }