diff options
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/build.gradle b/build.gradle index 32bf228..0703a89 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ plugins { id 'java' id 'application' - id 'maven-publish' + id 'maven' } group = 'com.jsyn' @@ -21,30 +21,18 @@ dependencies { // 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 '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) } from { - configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } + configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } } } @@ -58,7 +46,15 @@ javadoc { } } +task javadocJar(type: Jar) { + classifier = 'javadoc' + from javadoc +} + +artifacts { + archives javadocJar +} + test { useJUnitPlatform() } - |