Skip to content

Commit 3f57a8d

Browse files
committed
Simplify build.gradle
1 parent 70e2185 commit 3f57a8d

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

build.gradle

+8-15
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
plugins {
2-
id "org.sonarqube" version "2.8"
2+
id 'java-library'
3+
id 'jacoco'
4+
id 'maven-publish'
5+
id 'signing'
36
id 'idea'
7+
id "org.sonarqube" version "2.8"
48
id "org.jetbrains.gradle.plugin.idea-ext" version "0.7"
59
}
610

7-
apply plugin: 'java-library'
8-
apply plugin: 'jacoco'
9-
apply plugin: 'maven-publish'
10-
apply plugin: 'signing'
11-
apply plugin: 'idea'
12-
1311
group = 'net.joshka'
1412
version = '5.5.1-r0'
1513
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
@@ -44,14 +42,9 @@ test {
4442
useJUnitPlatform()
4543
}
4644

47-
task sourcesJar(type: Jar) {
48-
classifier "sources"
49-
from sourceSets.main.allJava
50-
}
51-
52-
task javadocJar(type: Jar, dependsOn: javadoc) {
53-
classifier "javadoc"
54-
from javadoc.destinationDir
45+
java {
46+
withJavadocJar()
47+
withSourcesJar()
5548
}
5649

5750
javadoc {

0 commit comments

Comments
 (0)