aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle60
1 files changed, 60 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..047aba8
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,60 @@
+plugins {
+ id 'java'
+ id 'application'
+ id 'maven-publish'
+ id 'com.github.johnrengelman.shadow' version '6.0.0'
+}
+
+group = 'com.jsyn'
+version = '17.0.0-SNAPSHOT'
+sourceCompatibility = '11'
+mainClassName = 'com.jsyn.apps.AboutJSyn'
+
+repositories {
+ mavenCentral()
+ mavenLocal()
+}
+
+dependencies {
+ testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2'
+
+ implementation 'org.slf4j:slf4j-api:1.7.25'
+ implementation 'org.slf4j:slf4j-log4j12:1.7.25'
+
+ implementation fileTree(dir: 'libs', include: '*.jar')
+}
+
+publishing {
+ publications {
+ mavenJava(MavenPublication) {
+ from components.java
+ }
+ }
+ repositories {
+ mavenLocal()
+ }
+}
+
+jar {
+ manifest {
+ attributes('Main-Class': mainClassName)
+ }
+}
+shadowJar {
+ archiveFileName = "jysn-${version}.jar";
+}
+
+javadoc {
+ exclude 'com/portaudio/**'
+ exclude 'com/jsyn/devices/jportaudio/**'
+ source = sourceSets.main.allJava
+
+ options {
+ addStringOption('Xdoclint:none', '-quiet')
+ }
+}
+
+test {
+ useJUnitPlatform()
+}
+