File tree 1 file changed +8
-15
lines changed
1 file changed +8
-15
lines changed Original file line number Diff line number Diff line change 1
1
plugins {
2
- id " org.sonarqube" version " 2.8"
2
+ id ' java-library'
3
+ id ' jacoco'
4
+ id ' maven-publish'
5
+ id ' signing'
3
6
id ' idea'
7
+ id " org.sonarqube" version " 2.8"
4
8
id " org.jetbrains.gradle.plugin.idea-ext" version " 0.7"
5
9
}
6
10
7
- apply plugin : ' java-library'
8
- apply plugin : ' jacoco'
9
- apply plugin : ' maven-publish'
10
- apply plugin : ' signing'
11
- apply plugin : ' idea'
12
-
13
11
group = ' net.joshka'
14
12
version = ' 5.5.1-r0'
15
13
ext. isReleaseVersion = ! version. endsWith(" SNAPSHOT" )
@@ -44,14 +42,9 @@ test {
44
42
useJUnitPlatform()
45
43
}
46
44
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()
55
48
}
56
49
57
50
javadoc {
You can’t perform that action at this time.
0 commit comments