Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -122,11 +117,26 @@ 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
archives sourcesJar
}
}
else {
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

javadoc {
options.encoding = 'UTF-8'
}
Expand Down