OSDN Git Service

Gradle: update javadoc and sourcejar generation config
authorHiroshi Miura <miurahr@linux.com>
Tue, 12 May 2020 22:50:26 +0000 (07:50 +0900)
committerHiroshi Miura <miurahr@linux.com>
Tue, 12 May 2020 22:50:26 +0000 (07:50 +0900)
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
build.gradle

index 781f06c..77a5986 100644 (file)
@@ -44,16 +44,13 @@ subprojects {
         options.compilerArgs << "-Xlint:deprecation" << "-Xlint:unchecked"
     }
 
-    javadoc {
-        options.locale = 'en_US'
-    }
-
-    task sourcesJar(type: Jar, dependsOn: classes) {
-        from sourceSets.main.allSource
+    java {
+        withSourcesJar()
+        withJavadocJar()
     }
 
-    task javadocJar(type: Jar, dependsOn: javadoc) {
-        from javadoc.destinationDir
+    javadoc {
+        options.locale = 'en_US'
     }
 
     artifacts {