Skip to content

Commit

Permalink
Include .class files in API jar
Browse files Browse the repository at this point in the history
  • Loading branch information
micdoodle8 committed Aug 27, 2019
1 parent fbb5c29 commit 2c84cf6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,15 @@ task packApi(type: Jar, dependsOn: "classes") {
// Set the jar's base name
baseName = "Galacticraft-API"

from (sourceSets.main.output) {
includes.addAll(project.ext.apiFiles)
includes.addAll('LICENSE.txt')
excludes.addAll(project.ext.micdoodleCoreFiles)
excludes.addAll(project.ext.planetsFiles)
excludes.addAll('**/*.info')
excludes.addAll('assets')
}

from (sourceSets.main.allSource) {
// Add necessary files, remove unnecessary ones.
includes.addAll(project.ext.apiFiles)
Expand Down

0 comments on commit 2c84cf6

Please sign in to comment.