Skip to content

Commit

Permalink
Simplify build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
joshka committed Dec 15, 2019
1 parent 70e2185 commit 3f57a8d
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions build.gradle
@@ -1,15 +1,13 @@
plugins {
id "org.sonarqube" version "2.8"
id 'java-library'
id 'jacoco'
id 'maven-publish'
id 'signing'
id 'idea'
id "org.sonarqube" version "2.8"
id "org.jetbrains.gradle.plugin.idea-ext" version "0.7"
}

apply plugin: 'java-library'
apply plugin: 'jacoco'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'idea'

group = 'net.joshka'
version = '5.5.1-r0'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
Expand Down Expand Up @@ -44,14 +42,9 @@ test {
useJUnitPlatform()
}

task sourcesJar(type: Jar) {
classifier "sources"
from sourceSets.main.allJava
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier "javadoc"
from javadoc.destinationDir
java {
withJavadocJar()
withSourcesJar()
}

javadoc {
Expand Down

0 comments on commit 3f57a8d

Please sign in to comment.