aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle14
1 files changed, 9 insertions, 5 deletions
diff --git a/build.gradle b/build.gradle
index 863f7ce..32bf228 100644
--- a/build.gradle
+++ b/build.gradle
@@ -2,7 +2,6 @@ plugins {
id 'java'
id 'application'
id 'maven-publish'
- id 'com.github.johnrengelman.shadow' version '6.0.0'
}
group = 'com.jsyn'
@@ -17,10 +16,13 @@ repositories {
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2'
- testImplementation 'org.slf4j:slf4j-log4j12:1.7.25'
implementation 'org.slf4j:slf4j-api:1.7.25'
+ // I'm unsure weather or not to keep the logging implementation here and not as a 'testImplementation', as libraries
+ // aren't usually meant to be ran.
+ implementation 'org.slf4j:slf4j-log4j12:1.7.25'
+
implementation fileTree(dir: 'libs', include: '*.jar')
}
@@ -30,6 +32,7 @@ publishing {
from components.java
}
}
+
repositories {
mavenLocal()
}
@@ -39,9 +42,10 @@ jar {
manifest {
attributes('Main-Class': mainClassName)
}
-}
-shadowJar {
- archiveFileName = "jysn-${version}.jar";
+
+ from {
+ configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
+ }
}
javadoc {