Skip to content

Commit

Permalink
Merge pull request #4 from bloxgate/dev
Browse files Browse the repository at this point in the history
1.2.3
  • Loading branch information
bloxgate authored Dec 2, 2023
2 parents f2f81ed + 3def0b4 commit ebe2d17
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 43 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ jobs:
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }}
run: |
chmod a+x ./gradlew
./gradlew curseforge
./gradlew curseforge
- uses: actions/upload-artifact@v3
with:
name: output-jar
path: ${{ github.workspace }}/build/libs/*.jar
85 changes: 45 additions & 40 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ apply plugin: "com.modrinth.minotaur"
apply from: 'https://raw.githubusercontent.com/thedarkcolour/KotlinForForge/site/thedarkcolour/kotlinforforge/gradle/kff-3.3.2.gradle'

group = 'com.bloxgaming'
version = '1.2.2'
version = '1.2.3'
archivesBaseName = 'tagfoods'

java.toolchain.languageVersion = JavaLanguageVersion.of(17)
Expand All @@ -36,44 +36,6 @@ mixin {
add sourceSets.main, "tagfoods.refmap.json"
}

curseforge {
apiKey = System.getenv("CURSEFORGE_API_KEY") ?: "no-api-key"
project {
id = '504465'
changelogType = 'markdown'
changelog = file('changes.md')
releaseType = 'release'
addGameVersion '1.18.2'

mainArtifact(jar) {
displayName = "TagFoods v$project.version"
releaseType = 'release'
relations {
requiredDependency 'kotlin-for-forge'
optionalDependency 'jei'
}
}
}
options {
detectNewerJava = true
forgeGradleIntegration = true
}
}

modrinth {
token = System.getenv("MODRINTH_TOKEN") ?: "no-modrinth-token"
projectId = "AHIqijE1"
versionNumber = "$project.version"
versionName = "TagFoods v$project.version"
versionType = "release"
uploadFile = jar
gameVersions = ['1.18.2']
changelog = file('changes.md').text
dependencies {
required.project("ordsPcFz")
}
}

minecraft {
// The mappings can be changed at any time, and must be in the following format.
// Channel: Version:
Expand Down Expand Up @@ -193,6 +155,7 @@ dependencies {
// that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
minecraft 'net.minecraftforge:forge:1.18.2-40.1.25'
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'

// You may put jars on which you depend on in ./libs or you may define them like so..
// compile "some.group:artifact:version:classifier"
Expand All @@ -214,8 +177,12 @@ dependencies {

//Add JEI to allow search by tags at runtime
runtimeOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}")
}

annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
// Workaround for SpongePowered/MixinGradle#38
afterEvaluate {
tasks.configureReobfTaskForReobfJar.mustRunAfter(tasks.compileJava)
tasks.configureReobfTaskForReobfJarJar.mustRunAfter(tasks.compileJava)
}

// Example for how to get properties into the manifest for reading by the runtime..
Expand All @@ -237,3 +204,41 @@ jar {
}

jar.finalizedBy('reobfJar')

curseforge {
apiKey = System.getenv("CURSEFORGE_API_KEY") ?: "no-api-key"
project {
id = '504465'
changelogType = 'markdown'
changelog = file('changes.md')
releaseType = 'release'
addGameVersion '1.18.2'

mainArtifact(jar) {
displayName = "TagFoods v$project.version"
releaseType = 'release'
relations {
requiredDependency 'kotlin-for-forge'
optionalDependency 'jei'
}
}
}
options {
detectNewerJava = true
forgeGradleIntegration = true
}
}

modrinth {
token = System.getenv("MODRINTH_TOKEN") ?: "no-modrinth-token"
projectId = "AHIqijE1"
versionNumber = "$project.version"
versionName = "TagFoods v$project.version"
versionType = "release"
uploadFile = jar
gameVersions = ['1.18.2']
changelog = file('changes.md').text
dependencies {
required.project("ordsPcFz")
}
}
4 changes: 2 additions & 2 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version 1.2.2:
Version 1.2.3:

* Fix for broken jar on CurseForge
* Fix jar not being obfuscated due to Gradle issues

0 comments on commit ebe2d17

Please sign in to comment.