Skip to content

Commit d8c0592

Browse files
committed
update build system
1 parent acdf408 commit d8c0592

File tree

3 files changed

+48
-10
lines changed

3 files changed

+48
-10
lines changed

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Java CI with Gradle
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Set up JDK 8
14+
uses: actions/setup-java@v3
15+
with:
16+
java-version: '8'
17+
distribution: 'temurin'
18+
- name: Validate Gradle wrapper
19+
uses: gradle/wrapper-validation-action@v1
20+
- uses: actions/cache@v2
21+
with:
22+
path: |
23+
~/.gradle/caches
24+
~/.gradle/wrapper
25+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
26+
restore-keys: ${{ runner.os }}-gradle-
27+
- name: Build with Gradle
28+
run: ./gradlew build
29+
env:
30+
GPR_USER: ${{ secrets.GPR_USER }}
31+
GPR_KEY: ${{ secrets.GPR_KEY }}
32+
- name: Archive artifacts
33+
uses: actions/upload-artifact@v3
34+
with:
35+
name: BuildCraft Compat
36+
path: build/libs/*.jar

build.gradle

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,15 @@ buildscript {
1717
}
1818
}
1919
dependencies {
20-
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
20+
classpath 'com.github.GTNewHorizons:ForgeGradle:1.2.11'
2121
}
2222
}
2323

2424
repositories {
25+
maven {
26+
name 'Overmind Forge repo mirror'
27+
url 'https://gregtech.overminddl1.com/'
28+
}
2529
maven {
2630
name = "ChickenBones Maven"
2731
url = "http://chickenbones.net/maven/"
@@ -30,21 +34,19 @@ repositories {
3034
name = "tterrag Maven"
3135
url = "http://maven.tterrag.com"
3236
}
33-
maven {
34-
name = "Forestry/IC2 Maven"
35-
url = "http://maven.ic2.player.to"
36-
}
37-
maven {
38-
name = "ProfMobius Maven"
39-
url = "http://mobiusstrip.eu/maven"
40-
}
4137
ivy {
4238
name "BuildCraft"
4339
artifactPattern "http://www.mod-buildcraft.com/releases/BuildCraft/[revision]/[module]-[revision]-[classifier].[ext]"
40+
metadataSources {
41+
artifact()
42+
}
4443
}
4544
ivy {
4645
name 'asie dependency mirror'
4746
artifactPattern "http://asie.pl/javadeps/[module]-[revision](-[classifier]).[ext]"
47+
metadataSources {
48+
artifact()
49+
}
4850
}
4951
}
5052

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5.1-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.1-bin.zip

0 commit comments

Comments
 (0)