From 154e87a5519df0f2d55d75f385e9ae450b9f4626 Mon Sep 17 00:00:00 2001
From: dgelessus <dgelessus@users.noreply.github.com>
Date: Tue, 28 Apr 2020 14:13:49 +0200
Subject: [PATCH] Use Gradle default sources and javadoc jars instead of custom
 ones

---
 build.gradle | 17 +++--------------
 1 file changed, 3 insertions(+), 14 deletions(-)

diff --git a/build.gradle b/build.gradle
index 17fba94..7783315 100644
--- a/build.gradle
+++ b/build.gradle
@@ -26,14 +26,9 @@ repositories {
 
 mainClassName = "org.sablecc.sablecc.SableCC"
 
-task javadocJar(type: Jar) {
-  archiveClassifier.set("javadoc")
-  from javadoc
-}
-
-task sourcesJar(type: Jar) {
-  archiveClassifier.set("sources")
-  from sourceSets.main.allSource
+java {
+  withSourcesJar()
+  withJavadocJar()
 }
 
 jar {
@@ -42,10 +37,6 @@ jar {
   }
 }
 
-artifacts {
-  archives javadocJar, sourcesJar
-}
-
 task writeVersion() {
 
   doFirst {
@@ -71,8 +62,6 @@ publishing {
   publications {
     mavenJava(MavenPublication) {
       from components.java
-      artifact sourcesJar
-      artifact javadocJar
 
       pom {
         name = 'SableCC - Stups fork'
-- 
GitLab