Skip to content

Commit

Permalink
more src/api fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss committed Jan 7, 2024
1 parent cde73cd commit a06bc3d
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ jar {
from sourceSets.api.output
dependsOn apiClasses

include "${apiPackage}/**"
include "${modGroupPath}/**"
include "assets/**"
include "mcmod.info"
include "pack.mcmeta"
Expand All @@ -712,12 +712,21 @@ if (separateRunDirectories.toBoolean()) {
// Create API library jar
tasks.register('apiJar', Jar) {
archiveClassifier.set 'api'
from(sourceSets.main.java) {
include "${modGroupPath}/${apiPackagePath}/**"
}
if (useSrcApiPath) {
from(sourceSets.api.java) {
include "${modGroupPath}/${apiPackagePath}/**"
}
from(sourceSets.api.output) {
include "${modGroupPath}/${apiPackagePath}/**"
}
} else {
from(sourceSets.main.java) {
include "${modGroupPath}/${apiPackagePath}/**"
}

from(sourceSets.main.output) {
include "${modGroupPath}/${apiPackagePath}/**"
from(sourceSets.main.output) {
include "${modGroupPath}/${apiPackagePath}/**"
}
}
}

Expand Down

0 comments on commit a06bc3d

Please sign in to comment.