From 8d66d28e9e9f53163a63a89421d5c5070c2e26d2 Mon Sep 17 00:00:00 2001 From: nbauma109 Date: Wed, 1 Jun 2022 20:54:59 +0200 Subject: [PATCH 1/2] added javadocJar and sourcesJar --- build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.gradle b/build.gradle index 550c0a4f..99377a22 100644 --- a/build.gradle +++ b/build.gradle @@ -124,6 +124,8 @@ subprojects { if (project.name == "Procyon.Decompiler") { artifacts { archives jar + archives javadocJar + archives sourcesJar } } else { From 372a8cefeaee4ba794827862c4f7f5c3d799a28b Mon Sep 17 00:00:00 2001 From: nbauma109 Date: Sun, 12 Jun 2022 10:19:34 +0200 Subject: [PATCH 2/2] added all sources to fat jar --- build.gradle | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 99377a22..db18f324 100644 --- a/build.gradle +++ b/build.gradle @@ -80,11 +80,6 @@ subprojects { from 'build/docs/javadoc' } - task sourcesJar(type: Jar, dependsOn: classes) { - classifier = 'sources' - from sourceSets.main.allSource - } - tasks.withType(Test) { testLogging { // set options for log level LIFECYCLE @@ -122,6 +117,14 @@ subprojects { } if (project.name == "Procyon.Decompiler") { + + task sourcesJar(type: Jar, dependsOn: classes) { + classifier = 'sources' + from sourceSets.main.allSource + from project(':Procyon.Core').collect { it.sourceSets.main.allSource } + from project(':Procyon.CompilerTools').collect { it.sourceSets.main.allSource } + } + artifacts { archives jar archives javadocJar @@ -129,6 +132,11 @@ subprojects { } } else { + task sourcesJar(type: Jar, dependsOn: classes) { + classifier = 'sources' + from sourceSets.main.allSource + } + javadoc { options.encoding = 'UTF-8' }