Skip to content

Commit a118c92

Browse files
committed
Fix
1 parent c6926b6 commit a118c92

File tree

8 files changed

+752
-13
lines changed

8 files changed

+752
-13
lines changed

.editorconfig

Lines changed: 673 additions & 0 deletions
Large diffs are not rendered by default.

.github/workflows/build-packages.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Release starter and migration packages on tag push
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags: [ '*' ]
7+
8+
jobs:
9+
zip-and-release-packages:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Set release version
16+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
17+
18+
- name: Prepare release folder
19+
run: |
20+
mkdir packages
21+
22+
- name: Zip starter
23+
uses: montudor/action-zip@v1
24+
with:
25+
args: >
26+
zip -r packages/starter.zip . \
27+
\
28+
-x "*.git/*" \
29+
-x ".github/*" \
30+
-x "spotless/*" \
31+
-x "docs/*" \
32+
\
33+
-x "CODEOWNERS" \
34+
-x "LICENSE" \
35+
-x "README.md" \
36+
\
37+
-x "packages/" \
38+
-x "packages/starter.zip" \
39+
-x "packages/migration.zip"
40+
41+
- name: Zip migration
42+
uses: montudor/action-zip@v1
43+
with:
44+
args: >
45+
zip -r packages/migration.zip . \
46+
\
47+
-x "*.git/*" \
48+
-x ".github/*" \
49+
-x "spotless/*" \
50+
-x "docs/*" \
51+
-x "src/*" \
52+
\
53+
-x "CODEOWNERS" \
54+
-x "LICENSE" \
55+
-x "README.md" \
56+
\
57+
-x "packages/" \
58+
-x "packages/starter.zip" \
59+
-x "packages/migration.zip"
60+
61+
- name: Release tag
62+
uses: marvinpinto/action-automatic-releases@latest
63+
with:
64+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
65+
automatic_release_tag: "${{ env.RELEASE_VERSION }}-packages"
66+
prerelease: false
67+
title: "${{ env.RELEASE_VERSION }} starter and migration packages"
68+
files: packages/*

.github/workflows/buildscript-maintenance.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
jobs:
1414
buildscript-maintenance:
1515
runs-on: ubuntu-latest
16+
# Avoid running this workflow on forks
17+
if: github.repository == 'GTModpackTeam/Buildscripts'
1618
permissions:
1719
contents: write
1820
pull-requests: write

CODEOWNERS

Lines changed: 0 additions & 4 deletions
This file was deleted.

build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* DO NOT CHANGE THIS FILE!
44
* Also, you may replace this file at any time if there is an update available.
5-
* Please check https://github.com/GregTechCEu/Buildscripts/blob/master/build.gradle for updates.
5+
* Please check https://github.com/GTModpackTeam/Buildscripts/blob/master/build.gradle for updates.
66
* You can also run ./gradlew updateBuildScript to update your buildscript.
77
*/
88

@@ -1423,11 +1423,11 @@ if (!project.getGradle().startParameter.isOffline() && !Boolean.getBoolean('DISA
14231423
}
14241424

14251425
static URL availableBuildScriptUrl() {
1426-
new URL("https://raw.githubusercontent.com/GregTechCEu/Buildscripts/master/build.gradle")
1426+
new URL("https://raw.githubusercontent.com/GTModpackTeam/Buildscripts/master/build.gradle")
14271427
}
14281428

14291429
static URL availableSettingsGradleUrl() {
1430-
new URL("https://raw.githubusercontent.com/GregTechCEu/Buildscripts/master/settings.gradle")
1430+
new URL("https://raw.githubusercontent.com/GTModpackTeam/Buildscripts/master/settings.gradle")
14311431
}
14321432

14331433
boolean performBuildScriptUpdate() {
@@ -1476,8 +1476,8 @@ tasks.register('faq') {
14761476
"To add new repositories to your project, place them in 'repositories.gradle'.\n" +
14771477
"If you need additional gradle code to run, you can place it in a file named 'addon.gradle' (or either of the above, up to you for organization).\n\n" +
14781478
"If your build fails to recognize the syntax of newer Java versions, enable Jabel in your 'gradle.properties' under the option name 'enableModernJavaSyntax'.\n" +
1479-
"To see information on how to configure your IDE properly for Java 17, see https://github.com/GregTechCEu/Buildscripts/blob/master/docs/jabel.md\n\n" +
1480-
"Report any issues or feature requests you have for this build script to https://github.com/GregTechCEu/Buildscripts/issues\n")
1479+
"To see information on how to configure your IDE properly for Java 17, see https://github.com/GTModpackTeam/Buildscripts/blob/master/docs/jabel.md\n\n" +
1480+
"Report any issues or feature requests you have for this build script to https://github.com/GTModpackTeam/Buildscripts/issues\n")
14811481
}
14821482
}
14831483

@@ -1495,7 +1495,7 @@ def getFile(String relativePath) {
14951495

14961496
def checkPropertyExists(String propertyName) {
14971497
if (!project.hasProperty(propertyName)) {
1498-
throw new GradleException("This project requires a property \"" + propertyName + "\"! Please add it your \"gradle.properties\". You can find all properties and their description here: https://github.com/GregTechCEu/Buildscripts/blob/main/gradle.properties")
1498+
throw new GradleException("This project requires a property \"" + propertyName + "\"! Please add it your \"gradle.properties\". You can find all properties and their description here: https://github.com/GTModpackTeam/Buildscripts/blob/main/gradle.properties")
14991499
}
15001500
}
15011501

dependencies.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
* - shadowImplementation("g:n:v:c"): effectively the same as API, but the dependency is included in your jar under a renamed package name
2323
* Requires you to enable usesShadowedDependencies in gradle.properties
24-
* For more info, see https://github.com/GregTechCEu/Buildscripts/blob/master/docs/shadow.md
24+
* For more info, see https://github.com/GTModpackTeam/Buildscripts/blob/master/docs/shadow.md
2525
*
2626
* You can exclude transitive dependencies (dependencies of the chosen dependency) by appending { transitive = false } if needed,
2727
* but use this sparingly as it can break using your mod as another mod's dependency if you're not careful.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ mavenArtifactGroup =
175175

176176
# Enable spotless checks
177177
# Enforces code formatting on your source code
178-
# By default this will use the files found here: https://github.com/GregTechCEu/Buildscripts/tree/master/spotless
178+
# By default this will use the files found here: https://github.com/GTModpackTeam/Buildscripts/tree/master/spotless
179179
# to format your code. However, you can create your own version of these files and place them in your project's
180180
# root directory to apply your own formatting options instead.
181181
enableSpotless = false

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ plugins {
2424

2525
blowdryerSetup {
2626
repoSubfolder 'spotless'
27-
github 'GregTechCEu/Buildscripts', 'tag', 'v1.0.7'
27+
github 'GTModpackTeam/Buildscripts', 'tag', '1.0.0'
2828
}
2929

3030
rootProject.name = rootProject.projectDir.getName()

0 commit comments

Comments
 (0)