Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ jobs:
if-no-files-found: error
retention-days: 30
path: |
build/libs/OreSpawn-1.13.2-4.0.8.113021.jar
build/libs/OreSpawn-1.13.2-4.0.8.113021-sources.jar
build/libs/OreSpawn-1.13.2-4.0.8.113021-javadoc.jar
build/libs/OreSpawn-4.0.8.113021.jar
build/libs/OreSpawn-4.0.8.113021-sources.jar
build/libs/OreSpawn-4.0.8.113021-javadoc.jar
build/release/SHA256SUMS
CHANGELOG.txt

Expand Down
17 changes: 16 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ plugins {

group = project.mod_group
version = project.mod_version
base.archivesName = "OreSpawn-${project.minecraft_version}"
base.archivesName = 'OreSpawn'

def versionParts = project.mod_version.toString().tokenize('.')
if (versionParts.size() != 4 || !versionParts.every { it ==~ /\d+/ }) {
Expand Down Expand Up @@ -739,6 +739,21 @@ tasks.register('verifyReleaseConfiguration') {
|| project.java_toolchain_version != '8.0.502+7') {
throw new GradleException('Unexpected dispatcher or Java target metadata')
}
List<String> expectedPublicArtifacts = [
'OreSpawn-4.0.8.113021.jar',
'OreSpawn-4.0.8.113021-sources.jar',
'OreSpawn-4.0.8.113021-javadoc.jar'
]
if (base.archivesName.get() != 'OreSpawn'
|| expectedReleaseFiles.get().collect { it.toString() } != expectedPublicArtifacts) {
throw new GradleException('Public artifacts must use the version-only OreSpawn filename contract')
}
String ciWorkflow = file('.github/workflows/ci.yml').getText('UTF-8')
expectedPublicArtifacts.each { artifactName ->
if (!ciWorkflow.contains("build/libs/${artifactName}")) {
throw new GradleException("CI does not upload expected public artifact ${artifactName}")
}
}
[
'src/main/java/zone/moddev/mc/orespawn/worldgen/LegacyConfigMigrator.java',
'src/main/java/zone/moddev/mc/orespawn/worldgen/LegacyMineralogyProfileMigration.java',
Expand Down
Loading