Skip to content

Commit 5d21245

Browse files
committed
update buildscript
1 parent 1975446 commit 5d21245

File tree

18 files changed

+521
-1695
lines changed

18 files changed

+521
-1695
lines changed

.gitattributes

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
* text eol=lf
2+
3+
*.[jJ][aA][rR] binary
4+
5+
*.[pP][nN][gG] binary
6+
*.[jJ][pP][gG] binary
7+
*.[jJ][pP][eE][gG] binary
8+
*.[gG][iI][fF] binary
9+
*.[tT][iI][fF] binary
10+
*.[tT][iI][fF][fF] binary
11+
*.[iI][cC][oO] binary
12+
*.[sS][vV][gG] text
13+
*.[eE][pP][sS] binary
14+
*.[xX][cC][fF] binary
15+
16+
*.[kK][aA][rR] binary
17+
*.[mM]4[aA] binary
18+
*.[mM][iI][dD] binary
19+
*.[mM][iI][dD][iI] binary
20+
*.[mM][pP]3 binary
21+
*.[oO][gG][gG] binary
22+
*.[rR][aA] binary
23+
24+
*.7[zZ] binary
25+
*.[gG][zZ] binary
26+
*.[tT][aA][rR] binary
27+
*.[tT][gG][zZ] binary
28+
*.[zZ][iI][pP] binary
29+
30+
*.[tT][cC][nN] binary
31+
*.[sS][oO] binary
32+
*.[dD][lL][lL] binary
33+
*.[dD][yY][lL][iI][bB] binary
34+
*.[pP][sS][dD] binary
35+
*.[tT][tT][fF] binary
36+
*.[oO][tT][fF] binary
37+
38+
*.[pP][aA][tT][cC][hH] -text
39+
40+
*.[bB][aA][tT] text eol=crlf
41+
*.[cC][mM][dD] text eol=crlf
42+
*.[pP][sS]1 text eol=crlf
43+
44+
*[aA][uU][tT][oO][gG][eE][nN][eE][rR][aA][tT][eE][dD]* binary
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Build and test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build-and-test:
13+
uses: FalsePattern/fpgradle-workflows/.github/workflows/build-and-test.yml@master
14+
with:
15+
timeout: 90
16+
workspace: setupCIWorkspace
17+
client-only: false

.github/workflows/release-tags.yml

Lines changed: 13 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,21 @@
1-
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3-
4-
name: Release tagged build
1+
name: Release Tags
52

63
on:
74
push:
85
tags:
96
- '*'
107

11-
jobs:
12-
build:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@v2
16-
with:
17-
fetch-depth: 0
18-
19-
- name: Set release version
20-
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
21-
22-
- name: Set up JDK 8
23-
uses: actions/setup-java@v2
24-
with:
25-
java-version: '8'
26-
distribution: 'adopt'
27-
cache: gradle
8+
permissions:
9+
contents: write
2810

29-
- name: Grant execute permission for gradlew
30-
run: chmod +x gradlew
31-
32-
- name: Setup the workspace
33-
run: ./gradlew setupCIWorkspace
34-
35-
- name: Publish to Maven, Modrinth, and CurseForge
36-
run: ./gradlew publish
37-
env:
38-
MAVEN_DEPLOY_USER: ${{ secrets.MAVEN_DEPLOY_USER }}
39-
MAVEN_DEPLOY_PASSWORD: ${{ secrets.MAVEN_DEPLOY_PASSWORD }}
40-
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
41-
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
11+
jobs:
12+
release-tags:
13+
uses: FalsePattern/fpgradle-workflows/.github/workflows/release-tags.yml@master
14+
with:
15+
workspace: "setupCIWorkspace"
16+
secrets:
17+
MAVEN_DEPLOY_USER: ${{ secrets.MAVEN_DEPLOY_USER }}
18+
MAVEN_DEPLOY_PASSWORD: ${{ secrets.MAVEN_DEPLOY_PASSWORD }}
19+
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
20+
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
4221

43-
- name: Release under current tag
44-
uses: "marvinpinto/action-automatic-releases@latest"
45-
with:
46-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
47-
automatic_release_tag: "${{ env.RELEASE_VERSION }}"
48-
prerelease: false
49-
title: "${{ env.RELEASE_VERSION }}"
50-
files: build/libs/*.jar

.gitignore

Lines changed: 166 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,168 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/gradle,forgegradle,kotlin,java,scala,intellij+all
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=gradle,forgegradle,kotlin,java,scala,intellij+all
3+
4+
### ForgeGradle ###
5+
# Minecraft client/server files
6+
run/
7+
8+
### Intellij+all ###
9+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
10+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
11+
12+
# User-specific stuff
13+
.idea/**/workspace.xml
14+
.idea/**/tasks.xml
15+
.idea/**/usage.statistics.xml
16+
.idea/**/dictionaries
17+
.idea/**/shelf
18+
19+
# AWS User-specific
20+
.idea/**/aws.xml
21+
22+
# Generated files
23+
.idea/**/contentModel.xml
24+
25+
# Sensitive or high-churn files
26+
.idea/**/dataSources/
27+
.idea/**/dataSources.ids
28+
.idea/**/dataSources.local.xml
29+
.idea/**/sqlDataSources.xml
30+
.idea/**/dynamic.xml
31+
.idea/**/uiDesigner.xml
32+
.idea/**/dbnavigator.xml
33+
34+
# Gradle
35+
.idea/**/gradle.xml
36+
.idea/**/libraries
37+
38+
# Gradle and Maven with auto-import
39+
# When using Gradle or Maven with auto-import, you should exclude module files,
40+
# since they will be recreated, and may cause churn. Uncomment if using
41+
# auto-import.
42+
# .idea/artifacts
43+
# .idea/compiler.xml
44+
# .idea/jarRepositories.xml
45+
# .idea/modules.xml
46+
# .idea/*.iml
47+
# .idea/modules
48+
# *.iml
49+
# *.ipr
50+
51+
# CMake
52+
cmake-build-*/
53+
54+
# Mongo Explorer plugin
55+
.idea/**/mongoSettings.xml
56+
57+
# File-based project format
58+
*.iws
59+
60+
# IntelliJ
61+
out/
62+
63+
# mpeltonen/sbt-idea plugin
64+
.idea_modules/
65+
66+
# JIRA plugin
67+
atlassian-ide-plugin.xml
68+
69+
# Cursive Clojure plugin
70+
.idea/replstate.xml
71+
72+
# SonarLint plugin
73+
.idea/sonarlint/
74+
75+
# Crashlytics plugin (for Android Studio and IntelliJ)
76+
com_crashlytics_export_strings.xml
77+
crashlytics.properties
78+
crashlytics-build.properties
79+
fabric.properties
80+
81+
# Editor-based Rest Client
82+
.idea/httpRequests
83+
84+
# Android studio 3.1+ serialized cache file
85+
.idea/caches/build_file_checksums.ser
86+
87+
### Intellij+all Patch ###
88+
# Ignore everything but code style settings and run configurations
89+
# that are supposed to be shared within teams.
90+
91+
.idea/*
92+
93+
!.idea/codeStyles
94+
!.idea/runConfigurations
95+
96+
### Java ###
97+
# Compiled class file
98+
*.class
99+
100+
# Log file
101+
*.log
102+
103+
# BlueJ files
104+
*.ctxt
105+
106+
# Mobile Tools for Java (J2ME)
107+
.mtj.tmp/
108+
109+
# Package Files #
110+
*.jar
111+
*.war
112+
*.nar
113+
*.ear
114+
*.zip
115+
*.tar.gz
116+
*.rar
117+
118+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
119+
hs_err_pid*
120+
replay_pid*
121+
122+
### Kotlin ###
123+
# Compiled class file
124+
125+
# Log file
126+
127+
# BlueJ files
128+
129+
# Mobile Tools for Java (J2ME)
130+
131+
# Package Files #
132+
133+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
134+
135+
### Scala ###
136+
137+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
138+
139+
### Gradle ###
1140
.gradle
2-
.settings
3-
/.idea/
4-
/run/
5-
/build/
6-
/eclipse/
7-
.classpath
141+
**/build/
142+
!src/**/build/
143+
144+
# Ignore Gradle GUI config
145+
gradle-app.setting
146+
147+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
148+
!gradle-wrapper.jar
149+
150+
# Avoid ignore Gradle wrappper properties
151+
!gradle-wrapper.properties
152+
153+
# Cache of project
154+
.gradletasknamecache
155+
156+
# Eclipse Gradle plugin generated files
157+
# Eclipse Core
8158
.project
9-
/bin/
10-
/config/
11-
/crash-reports/
12-
/logs/
13-
options.txt
14-
/saves/
15-
usernamecache.json
16-
banned-ips.json
17-
banned-players.json
18-
eula.txt
19-
ops.json
20-
server.properties
21-
servers.dat
22-
usercache.json
23-
whitelist.json
24-
/out/
25-
*.iml
26-
*.ipr
27-
*.iws
28-
src/main/resources/mixins.*.json
29-
*.bat
30-
*.DS_Store
31-
!gradlew.bat
159+
# JDT-specific (Eclipse Java Development Tools)
160+
.classpath
161+
162+
### Gradle Patch ###
163+
# Java heap dump
164+
*.hprof
165+
166+
# End of https://www.toptal.com/developers/gitignore/api/gradle,forgegradle,kotlin,java,scala,intellij+all
167+
168+
.idea/

0 commit comments

Comments
 (0)