Skip to content

Commit

Permalink
Update actions/gradle.props, sync templates, clean up build.gradle (#…
Browse files Browse the repository at this point in the history
…10184)

* Update actions/gradle.props, sync templates, clean up build.gradle

* Uncache language task

* Do we want manual trigger for release?

* Rename release.yml to release.yaml

* Update 11-log-report.yaml
  • Loading branch information
Nightenom authored Aug 30, 2024
1 parent ba52cef commit e6b157c
Show file tree
Hide file tree
Showing 10 changed files with 102 additions and 112 deletions.
38 changes: 22 additions & 16 deletions .github/ISSUE_TEMPLATE/10-bug-report.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
name: Bug Report
description: If you have a reproducible in-game issue
title: "[BUG] <title>"
labels: [Bug]
body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the bug you encountered.
options:
- label: I have searched the existing issues
- label: I have searched the existing issues.
required: true
- type: checkboxes
attributes:
label: Are you using the latest MineColonies Version?
description: Please check to see if any newer version fixes the issue you're experiencing.
description: |
Please check to see if any newer version fixes the issue you're experiencing.
[List of all MineColonies versions](https://www.curseforge.com/minecraft/mc-mods/minecolonies/files/all)
[List of all Structurize versions](https://www.curseforge.com/minecraft/mc-mods/structurize/files/all)
[List of all BlockUI versions](https://www.curseforge.com/minecraft/mc-mods/blockui/files/all)
options:
- label: I am running the latest **beta** version of MineColonies for my Minecraft version.
- label: |
I am running the latest **beta/release** version of MineColonies for my Minecraft version.
I am also running the latest versions of other mods that are part of my problem.
required: true
- type: checkboxes
attributes:
label: Did you check on the Wiki? or ask on Discord?
description: Please check on our wiki (https://wiki.minecolonies.ldtteam.com/) or ask on discord (https://discord.minecolonies.com/) if your issue is covered there.
description: Please check on our [wiki](https://wiki.minecolonies.ldtteam.com/) or ask on [discord](https://discord.minecolonies.com/) if your issue is covered there.
options:
- label: I checked the MineColonies Wiki and made sure my issue is not covered there. Or I was sent from discord to open an issue here.
required: true
Expand All @@ -31,16 +36,16 @@ body:
- label: Single Player
- label: Multi Player
- type: dropdown
id: mc_version
attributes:
label: Minecraft Version
description: Minecraft Version
options: [1.19.2, 1.20.1]
options: ["1.20", "1.21"]
validations:
required: true
- type: input
attributes:
label: MineColonies Version
description: MineColonies Version
description: Exact MineColonies version either from file name or in-game mod list.
placeholder: 1.xx.xx-XXXX
validations:
required: true
Expand Down Expand Up @@ -87,22 +92,23 @@ body:
- type: input
attributes:
label: Logs
description: Please provide your latest.log related to the time during which you experienced the issue. Upload to gist (https://gist.github.com/) or pastebin (https://pastebin.com/) and paste the link here.
description: Please provide your latest.log related to the time during which you experienced the issue. Upload to eg. [gist](https://gist.github.com/) or [pastebin](https://pastebin.com/) and paste the link here.
validations:
required: true
- type: textarea
attributes:
label: Anything else?
description: |
Links? References? Anything that will give us more context about the issue you are encountering!
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
Tip: You can attach images or log files by clicking any text area to highlight it and then dragging files in.
- type: textarea
attributes:
label: "Footer"
description: This is issue footer. Please leave this text as is.
value: |
---
## Viewers
* Add a thumbs-up to the bug report if you are also affected. This helps the bug report become more visible to the team and doesn't clutter the comments.
* Add a comment if you have any insights or background information that isn't already part of the conversation.
validations:
required: false
required: true
39 changes: 23 additions & 16 deletions .github/ISSUE_TEMPLATE/11-log-report.yaml
Original file line number Diff line number Diff line change
@@ -1,40 +1,46 @@
name: Log Report
description: If the console log told you to report sth to the Developers.
title: "[BUG] <title>"
title: AI log upload
labels: [Bug, AI log]
body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the bug you encountered.
options:
- label: I have searched the existing issues
- label: I have searched the existing issues.
required: true
- type: checkboxes
attributes:
label: Are you using the latest MineColonies Version?
description: Please check to see if any newer version fixes the issue you're experiencing.
description: |
Please check to see if any newer version fixes the issue you're experiencing.
[List of all MineColonies versions](https://www.curseforge.com/minecraft/mc-mods/minecolonies/files/all)
[List of all Structurize versions](https://www.curseforge.com/minecraft/mc-mods/structurize/files/all)
[List of all BlockUI versions](https://www.curseforge.com/minecraft/mc-mods/blockui/files/all)
options:
- label: I am running the latest **beta** version of MineColonies for my Minecraft version.
- label: |
I am running the latest **beta/release** version of MineColonies for my Minecraft version.
I am also running the latest versions of other mods that are part of my problem.
required: true
- type: checkboxes
attributes:
label: Did you check on the Wiki? or ask on Discord?
description: Please check on our wiki (https://wiki.minecolonies.ldtteam.com/) or ask on discord (https://discord.minecolonies.com/) if your issue is covered there.
description: Please check on our [wiki](https://wiki.minecolonies.ldtteam.com/) or ask on [discord](https://discord.minecolonies.com/) if your issue is covered there.
options:
- label: I checked the MineColonies Wiki and made sure my issue is not covered there. Or I was sent from discord to open an issue here.
required: true
- type: dropdown
id: mc_version
attributes:
label: Minecraft Version
description: Minecraft Version
options: [1.19.2, 1.20.1]
options: ["1.20", "1.21"]
validations:
required: true
- type: input
attributes:
label: MineColonies Version
description: MineColonies Version
description: Exact MineColonies version either from file name or in-game mod list.
placeholder: 1.xx.xx-XXXX
validations:
required: true
Expand Down Expand Up @@ -69,22 +75,23 @@ body:
- type: input
attributes:
label: Logs
description: Please provide your latest.log related to the time during which you experienced the issue. Upload to gist (https://gist.github.com/) or pastebin (https://pastebin.com/) and paste the link here.
description: Please provide your latest.log related to the time during which you experienced the issue. Upload to eg. [gist](https://gist.github.com/) or [pastebin](https://pastebin.com/) and paste the link here.
validations:
required: true
- type: textarea
attributes:
label: Anything else?
description: |
Links? References? Anything that will give us more context about the issue you are encountering!
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
Tip: You can attach images or log files by clicking any text area to highlight it and then dragging files in.
- type: textarea
attributes:
label: "Footer"
description: This is issue footer. Please leave this text as is.
value: |
---
## Viewers
* Add a thumbs-up to the bug report if you are also affected. This helps the bug report become more visible to the team and doesn't clutter the comments.
* Add a comment if you have any insights or background information that isn't already part of the conversation.
validations:
required: false
required: true
12 changes: 5 additions & 7 deletions .github/PULL_REQUEST_TEMPLATE
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
Closes #
Closes #
Closes #

# Changes proposed in this pull request:
-
# Changes proposed in this pull request
-
-

## Testing
- [ ] Yes I tested this before submitting it.
- [ ] I also did a multiplayer test.

[ ] Yes I tested this before submitting it.
[ ] I also did a multiplayer test.

Review please
Review please
29 changes: 13 additions & 16 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,28 @@
name: Build and Test PRs or General Branches
name: Build and Pre-release

on:
pull_request:
types:
- synchronize
- opened
- ready_for_review
- reopened
push:
branches:
- 'feature/**'
- 'bugfix/**'
- 'hotfix/**'
- 'fix/**'
- 'features/**'
- synchronize
- labeled
- unlabeled
workflow_dispatch:

permissions:
contents: write
contents: read
statuses: write
packages: write

jobs:
release:
build:
uses: ldtteam/operapublicacreator/.github/workflows/gradle.build.yaml@ng7
with:
java: 21
secrets:
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
secrets: inherit
pre-release:
uses: ldtteam/operapublicacreator/.github/workflows/gradle.prerelease.yaml@ng7
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && contains( github.event.pull_request.labels.*.name, 'Pre-release')
with:
java: 21
secrets: inherit
20 changes: 20 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release

on:
push:
branches:
- "version/*"
- "release/*"
- "testing/*"

permissions:
contents: write
statuses: write

jobs:
release:
uses: ldtteam/operapublicacreator/.github/workflows/gradle.publish.yaml@ng7
with:
java: 21
curse_release_type: ${{ contains(github.ref, 'release') && 'release' || 'beta' }}
secrets: inherit
27 changes: 0 additions & 27 deletions .github/workflows/release.yml

This file was deleted.

15 changes: 1 addition & 14 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,4 @@ plugins {
id "org.sonarqube" version "3.0"
}

apply from: 'https://raw.githubusercontent.com/ldtteam/OperaPublicaCreator/ng7/gradle/mod.gradle'

idea {
module {
downloadSources = true
downloadJavadoc = true
}
}

afterEvaluate {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xmaxerrs" << "5000"
}
}
apply from: 'https://raw.githubusercontent.com/ldtteam/OperaPublicaCreator/ng7/gradle/mod.gradle'
19 changes: 10 additions & 9 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.caching=true
org.gradle.configuration-cache=false
#TODO: config-cache requires update of language merging task in OPC

modId=minecolonies
modGroup=com.ldtteam
modVersion=0.0.11-LOCAL
modBaseName=minecolonies
modVersion=0.0.11

javaVersion=21
useJavaToolChains=true
Expand All @@ -24,10 +27,10 @@ additionalMinecraftVersions=1.21
minecraft_range=[1.21, 1.22)

dataGeneratorsVersion=1.20.4-0.1.57-ALPHA
blockUI_version=1.21.1-1.0.182-beta
structurize_version=1.0.750-1.21.1-beta
domumOrnamentumVersion=1.21.1-1.0.200-BETA
multiPistonVersion=1.21-1.2.47-BETA
blockUI_version=1.0.188-1.21.1-snapshot
structurize_version=1.0.751-1.21.1-snapshot
domumOrnamentumVersion=1.0.203-1.21.1-snapshot
multiPistonVersion=1.2.50-1.21.1-snapshot

jei_mcversion=1.21.1
jei_version=19.8.4.116
Expand Down Expand Up @@ -60,8 +63,6 @@ useDefaultTestSystem=false
runtimeSourceSets=main
librarySourceSets=main;datagen;
projectHasApi=false
primaryJarClassifier=
isFMLLibrary=false

extendDefaultSourceSetConfiguration=true
mainExcludedResources=assets/minecolonies/lang/manual_en_us.json;assets/minecolonies/lang/default.json;assets/minecolonies/lang/quests.json
Expand Down
6 changes: 0 additions & 6 deletions gradle/dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
repositories {
mavenLocal()
mavenCentral()
maven {
name "JEI"
url 'https://maven.blamejared.com/'
Expand All @@ -13,10 +11,6 @@ repositories {
name "Rei"
url "https://maven.shedaniel.me/"
}
maven {
name 'LDTTeam - Modding'
url 'https://ldtteam.jfrog.io/ldtteam/modding/'
}
}

dependencies {
Expand Down
9 changes: 8 additions & 1 deletion gradle/util.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
idea {
module {
downloadSources = true
downloadJavadoc = true
}
}

// Allow more than 400 errors.
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xmaxerrs" << "1000"
options.compilerArgs << "-Xmaxerrs" << "5000"
}
}

Expand Down

0 comments on commit e6b157c

Please sign in to comment.