Universal output directory

This commit is contained in:
embeddedt 2023-05-02 11:18:39 -04:00
parent a29ffb252c
commit 28f73454c3
No known key found for this signature in database
GPG Key ID: A69433EC199B5613
5 changed files with 17 additions and 7 deletions

View File

@ -22,9 +22,5 @@ jobs:
run: ./gradlew --no-daemon build run: ./gradlew --no-daemon build
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
name: Forge name: Package
path: forge/build/libs path: bin
- uses: actions/upload-artifact@v2
with:
name: Fabric
path: fabric/build/libs

1
.gitignore vendored
View File

@ -77,7 +77,6 @@ fabric.properties
### Eclipse ### ### Eclipse ###
*.pydevproject *.pydevproject
.metadata .metadata
bin/
tmp/ tmp/
*.tmp *.tmp
*.bak *.bak

1
bin/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.jar

View File

@ -61,6 +61,13 @@ remapJar {
classifier null classifier null
} }
task copyJarToBin(type: Copy) {
from remapJar // shortcut for createJar.outputs.files
into rootProject.file("bin")
}
tasks.build.dependsOn(copyJarToBin)
jar { jar {
classifier "dev" classifier "dev"
} }

View File

@ -80,6 +80,13 @@ remapJar {
classifier null classifier null
} }
task copyJarToBin(type: Copy) {
from remapJar // shortcut for createJar.outputs.files
into rootProject.file("bin")
}
tasks.build.dependsOn(copyJarToBin)
jar { jar {
classifier "dev" classifier "dev"
manifest { manifest {