Skip to content

Commit

Permalink
Fix build (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowerGamerBR committed Jan 14, 2025
1 parent 20b3821 commit 61b96df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Build
run: ./gradlew build
- name: Publish publications and dev bundle
run: ./gradlew -PpublishDevBundle publishDevBundlePublicationToPerfectDreamsRepository publishMavenPublicationToPerfectDreamsRepository
run: ./gradlew -PpublishDevBundle publishMavenPublicationToPerfectDreamsRepository
env:
ORG_GRADLE_PROJECT_PerfectDreamsUsername: ${{ secrets.PERFECTDREAMS_REPO_USERNAME }}
ORG_GRADLE_PROJECT_PerfectDreamsPassword: ${{ secrets.PERFECTDREAMS_REPO_PASSWORD }}
Expand Down
29 changes: 2 additions & 27 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,8 @@ subprojects {
}

extensions.configure<PublishingExtension> {
repositories {
/*
maven("https://repo.papermc.io/repository/maven-snapshots/") {
name = "paperSnapshots"
credentials(PasswordCredentials::class)
}
*/
}
}
}

allprojects {
// Publishing API:
// ./gradlew :SparklyPaper-API:publish[ToMavenLocal]
publishing {
// Publishing API:
// ./gradlew :sparklypaper-api:publish[ToMavenLocal]
repositories {
maven {
name = "PerfectDreams"
Expand All @@ -100,16 +87,4 @@ allprojects {
}
}
}
}

publishing {
// Publishing dev bundle:
// ./gradlew publishDevBundlePublicationTo(MavenLocal|MyRepoSnapshotsRepository) -PpublishDevBundle
if (project.hasProperty("publishDevBundle")) {
publications.create<MavenPublication>("devBundle") {
artifact(tasks.generateDevelopmentBundle) {
artifactId = "dev-bundle"
}
}
}
}

0 comments on commit 61b96df

Please sign in to comment.